-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
56 lines (48 loc) · 1.48 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bandwidth usage report</title>
<meta name="author" content="Kian Kasad">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="Chart.min.js" integrity="sha256-t9UJPrESBeG2ojKTIcFLPGF7nHi2vEc7f5A2KpH/UBU="></script>
<script defer src="main.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h2>Bandwidth usage report</h2>
<form method=GET onchange="this.submit();">
<div>
<label for="ifname-select">Interface:</label>
<select name=ifname id="ifname-select">
</select>
</div>
<div>
<label for=stack-checkbox>Stack graphs</label>
<input type=checkbox name=stack id=stack-checkbox />
</div>
<div>
<label for=ts-select>Time scale:</label>
<select name=ts id="ts-select">
<option value=hour id=ts-h>Hourly</option>
<option value=day id=ts-d>Daily</option>
<option value=month id=ts-m>Monthly</option>
<option value=year id=ts-y>Yearly</option>
<option value=top id=ts-t>Top (daily)</option>
</select>
</div>
<div>
<label for=nr-box>Time slots:</label>
<input type=number name=nr id=nr-box min=1 max=50 />
</div>
</form>
</header>
<noscript>
<p>JavaScript is required to render the graphs</p>
</noscript>
<div class="canvas-container">
<canvas id="graph-canvas">Your browser does not support canvas elements.</canvas>
</div>
</body>
</html>