Browse Source

Nicer interface

master
Pete Shadbolt 6 years ago
parent
commit
c83e9ad52c
3 changed files with 15 additions and 1 deletions
  1. +9
    -0
      static/main.css
  2. +4
    -0
      static/scripts/main.js
  3. +2
    -1
      templates/index.html

+ 9
- 0
static/main.css View File

@@ -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;


+ 4
- 0
static/scripts/main.js View File

@@ -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);
};

+ 2
- 1
templates/index.html View File

@@ -45,8 +45,9 @@
<ul>
<li><a onclick="editor.clear()">Clear</a></li>
<li><a onclick="editor.raussendorf()">Raussendorf</a></li>
<li><a onclick="share()">Share</a></li>
<li><a href="/{{uuid}}/download">Download</a></li>
<li><a href="/doc">Help</a></li>
<li><a href="/doc" id=help>Help</a></li>
</ul>
</div>



Loading…
Cancel
Save