Browse Source

Enable big nodes

Pete Shadbolt 11 months ago
parent
commit
7e12230ce9
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      static/scripts/api.js
  2. 1
    0
      templates/index.html

+ 1
- 0
static/scripts/api.js View File

@@ -18,6 +18,7 @@ api.poll = function() {
18 18
 
19 19
 api.update = function(s) {
20 20
     json = JSON.parse(s);
21
+    materials.qubit.size = big.checked ? 2 : 0.4;
21 22
     graph.update(json);
22 23
 }
23 24
 

+ 1
- 0
templates/index.html View File

@@ -48,6 +48,7 @@
48 48
         <li><a onclick="share()">Share</a></li>
49 49
         <li><a href="/{{uuid}}/download">Download</a></li>
50 50
         <li><input id=curvy type="checkbox" checked></input> Curved edges</li>
51
+        <li><input id=big type="checkbox"></input> Big nodes</li>
51 52
         <li><a href="/doc" id=help>Documentation</a></li>
52 53
     </ul>
53 54
 </div>