From c83e9ad52c833fd35355924f3287521883229c37 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Tue, 17 Oct 2017 15:40:28 -0700 Subject: [PATCH] Nicer interface --- static/main.css | 9 +++++++++ static/scripts/main.js | 4 ++++ templates/index.html | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/static/main.css b/static/main.css index a8006e3..3169fec 100644 --- a/static/main.css +++ b/static/main.css @@ -34,6 +34,15 @@ html, body { left: 10px; } +#help { + background-color: orange; + color: black; +} + +#help:hover { + background-color: white; +} + div { background-color: black; color:white; diff --git a/static/scripts/main.js b/static/scripts/main.js index ef08587..a237d56 100644 --- a/static/scripts/main.js +++ b/static/scripts/main.js @@ -9,3 +9,7 @@ window.onload = function() { api.poll(); gui.loop(); }; + +share = function() { + alert("Copy/paste this link to collaborate:\n\n"+window.location.href); +}; diff --git a/templates/index.html b/templates/index.html index 4ebdd57..26a190f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -45,8 +45,9 @@