|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <!DOCTYPE html>
-
- <html lang="en">
- <head>
- <title>abp</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
- <link rel="stylesheet" href="{{ url_for("static", filename="main.css") }}">
- <script src="{{ url_for("static", filename="scripts/three.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/orbitcontrols.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/anders_briegel.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/mouse.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/materials.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/graph.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/gui.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/editor.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/api.js") }}"></script>
- <script src="{{ url_for("static", filename="scripts/main.js") }}"></script>
- </head>
-
- <body>
- <img id=ball src="{{url_for("static", filename="img/ball.png") }}" style=display:none;>
- <img id=tip src="{{url_for("static", filename="img/tip.png") }}" style=display:none;>
- <div id=node_info class=hidden> </div>
- <div id=server_info class=hidden> </div>
-
- <div id=version>ABP version 0.4.27</div>
-
- <div id=node_data class=hidden>
- <div id=node_name></div>
- <ul>
- <li id=node_vop></li>
- <li>Measure in
- <a href="#" onclick="editor.measureX()">X</a> /
- <a href="#" onclick="editor.measureY()">Y</a> /
- <a href="#" onclick="editor.measureZ()">Z</a></li>
- <li>Act
- <a href="#" onclick="editor.hadamard()">Hadamard</a> /
- <a href="#" onclick="editor.phase()">Phase</a></li>
- <li><a href="#" onclick="editor.localComplementation()">Invert neighbourhood</a></li>
- <li><a href="#" onclick="editor.deleteNode()">Delete</a></li>
- </ul>
- </div>
-
-
- <div id=help>
- <h3>Usage:</h3>
- Click on the grid to make a new node
- Ctrl-click a node to do a Hadamard
- Select a node, then shift-click another node to do a CZ
- Press space to rotate the grid
-
-
- <h3>API usage:</h3>
- GET https://abv.peteshadbolt.co.uk/graph -> JSON<br/>
- POST JSON -> https://abv.peteshadbolt.co.uk/graph
-
- <h3>TODO:</h3>
- GET https://abv.peteshadbolt.co.uk/hadamard/0<br/>
- GET https://abv.peteshadbolt.co.uk/cz/0/1<br/>
- GET https://abv.peteshadbolt.co.uk/measure/10/x<br/>
- etc.
-
- <p>See <a href="/doc">here</a> for docs.</p>
- </div>
-
- </body>
- </html>
|