/
lan_cc.html
50 lines (44 loc) · 1.31 KB
/
lan_cc.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
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LAN Statistics</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Display Router Ethernet Port Status">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/monro.css">
</head>
<body>
<div class="container">
<h1 id="lan_status">LAN Status</h1>
<p>
<table class="table table-striped">
<thead>
<tr>
<td>Client</td>
<td>IP</td>
</tr>
</thead>
<tbody>
## for field in data.clients
<tr>
<td>{{ field.mac }}</td>
<td>{{ field.ip_address }}</td>
</tr>
## endfor
</tbody>
</table>
</p>
<div id="graph1">
</div>
<div id="graph2">
</div>
<div id="graph3">
</div>
</div>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="/js/graph.js"></script>
<script src="/js/lan.js"></script>
</body>
</html>