-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (65 loc) · 1.89 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<!-- <meta http-equiv="refresh" content="5"> -->
<title>{{ .title }}</title>
<style type="text/css">
p {font-size:20px;}
body {background-color:#e8e8e8}
table,th,td {border:1px solid blue;text-align:center}
table.singlineBorder {border-collapse:collapse;}
table.widthPercent30 {width:30%}
th.height50px {height:50px}
td.greenBg {color:#00aa00;background-color:#ccc}
table.niceTable
{
width:30%;
border-collapse:collapse;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
}
table.niceTable td,table.niceTable th
{
padding:3px 7px 2px 7px;
border:3px solid #98bf21;
}
table.niceTable th
{
color:white;
background-color:#A7C942;
}
table.niceTable tr.light td {background-color:#EAF2D3;}
</style>
</head>
<body style="background-color:#CCCCCC;">
<body><center>
<h1>Data Relay</h1>
<table cellpadding="10px" class="niceTable">
<tr>
<th><p>名称</p></th>
<th><p>类型</p></th>
<th><p>地址</p></th>
<th><p>端口</p></th>
<th><p>接收帧率</p></th>
<th><p>转发帧率</p></th>
</tr>
{{ with .states}}
{{ range . }}
{{ if gt .RecvFPS 0 }}
<tr class="light">
{{ else }}
<tr>
{{ end }}
<td><p>{{ .Key }}</p></td>
<td><p>{{ .Type }}</p></td>
<td><p>{{ .IP }}</p></td>
<td><p>{{ .Port }}</p></td>
<td><p>{{ .RecvFPS }}</p></td>
<td><p>{{ .RelayFPS }}</p></td>
</tr>
{{ end }}
{{ end }}
</table>
</center></body>
</html>