-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
37 lines (34 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Topology - Canvas</title>
</head>
<body>
<div style="margin-bottom: 10px">
<p>Connected to <span id="peerId"></span></p>
<p>peers: <span id="peers"></span></p>
<p>discovery_peers: <span id="discovery_peers"></span></p>
<p>object_peers: <span id="object_peers"></span></p>
<input id="croId" type="text" placeholder="Insert CRO ID" />
<button id="connect">Connect</button>
<button id="create">Create new ColorCRO</button>
<p>
Connected to Color CRO ID:
<span id="gridId" style="text-decoration: underline;"></span>
<button id="copyGridId" style="margin-left: 10px; display: none;">Copy</button>
</p>
</div>
<div>
<button id="paintRed" style="display:none;">Paint Red</button>
<button id="paintGreen" style="display:none;">Paint Green</button>
<button id="paintBlue" style="display:none;">Paint Blue</button>
<svg id="dag-svg" height="200" style="position: absolute; left: 75%; top: 50%; transform: translate(-50%, -50%);">
<g />
</svg>
<script type="module" src="/src/index.ts"></script>
</div>
</body>
</html>