-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (54 loc) · 2.37 KB
/
index.html
File metadata and controls
59 lines (54 loc) · 2.37 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thread Mesh Visualizer</title>
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Thread Mesh Visualizer</h1>
<div id="controls">
<button id="btnImport" style="background-color: #6610f2; color: white;">Import CLI</button>
<input type="text" id="apiUrl" placeholder="OTBR URL (e.g. http://192.168.1.50)" value="">
<select id="linkFilter" style="margin-left: 10px; padding: 8px;">
<option value="0">Show All Links</option>
<option value="2">Medium & Strong Only (LQI 2+)</option>
<option value="3">Strong Only (LQI 3)</option>
</select>
<button id="btnStart">Start Crawl</button>
<button id="btnExport" style="background-color: #17a2b8; color: white;">Export JSON</button>
</div>
</header>
<div id="main">
<div id="network-container">
<div id="mynetwork" style="height: 100%; width: 100%;"></div>
<div class="legend">
<div><span class="dot" style="background:#28a745;"></span>High Quality Link</div>
<div><span class="dot" style="background:#ffc107;"></span>Medium Quality Link</div>
<div><span class="dot" style="background:#dc3545;"></span>Weak Link</div>
</div>
</div>
<div id="sidebar">
<strong>Activity Log</strong>
<div id="log-window"></div>
<strong>Node Details</strong>
<div id="details-panel">Click a node to see details...</div>
</div>
</div>
<div id="importModal">
<div id="importContent">
<h3>Import "ot-ctl meshdiag topology" Output</h3>
<p>Run <code>ot-ctl meshdiag topology children ip6-addrs</code> on your Border Router and paste the output below:</p>
<textarea id="cliInput" placeholder="Paste output here... id:01 rloc16:0x0400 ..."></textarea>
<div class="modal-footer">
<button id="btnCancelImport" style="background-color: #6c757d; color: white;">Cancel</button>
<button id="btnParseImport" style="background-color: #28a745; color: white;">Visualize!</button>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>