-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
175 lines (174 loc) · 5.45 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>随意之光状态监控 - 随意之光个人分享</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
.footer {
text-align: center;
padding-top: 16px;
width: 100%;
height: 50px;
}
.wname {
font-size:16px;
}
.label-status {
margin-right: 5px;
}
.check>tbody>tr>td {
padding-top: 11px;
padding-bottom: 11px;
}
.check th {
text-align: center;
}
.check .center {
text-align: center;
vertical-align: middle;
}
.check .sertitle {
vertical-align: middle;
}
.status-success {
color: #5cb85c
}
.status-warning {
color: #f0ad4e
}
.status-danger {
color: #d9534f
}
#server-container {
border-bottom: 1px solid #ddd;
}
.barl > td {
border-top: none !important;
padding: 0 !important;
}
.barl .progress {
margin:0;
border-radius:0;
height: 8px;
box-shadow: none;
}
.barl .progress .progress-bar {
box-shadow: none;
opacity: 0.7;
}
.barl .progress .progress-bar:hover {
opacity: 1;
}
.barl .progress .progress-bar-default {
background-color: #EFEFEF;
}
.progress .tooltip .tooltip-inner .ttime {
color: #A3A3A3;
font-size: 11px;
}
.credit {
font-size: 12px;
color: #BBB;
}
.credit a {
color: #999;
}
.credit .pipe {
padding-left: 6px;
padding-right: 6px;
color: #DDD;
}
</style>
</head>
<body>
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">切换导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">状态监控</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="https://blog.suiyil.cn">随意之光博客</a></li>
<li><a href="https://www.suiyil.cn">随意之光主页</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div id="stattip-err" class="alert alert-warning hide" role="alert">
<b>当前状态:</b>随意之光部分服务连通发生异常,我们将尽快修复。电子邮箱 website@suiyil.cn
</div>
<div id="stattip-ok" class="alert alert-success hide" role="alert">
<b>当前状态:</b>随意之光所有服务连通正常,如有其他问题欢迎联系 website@suiyil.cn
</div>
<div id="stattip-load" class="alert alert-info" role="alert">
<b>当前状态:</b>正在检测连通状态,请稍候..
</div>
<div class="table-responsive">
<table class="table table-hover check">
<thead>
<tr id="server-title">
</tr>
</thead>
<tbody id="server-container"></tbody>
</table>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<p><span class="glyphicon glyphicon-refresh"></span> <span id="last-update"></span></p>
<p class="credit">Powered by <a href="https://github.com/CoolQ/Cup" target="_blank">Cup</a> | Modified by <a href="https://github.com/Suiyi-Light-Web/status-suiyi" target="_blank">status-suiyi</a> | data from <a href="https://uptimerobot.com/">UptimeRobot</a></p>
<p class="credit">随意之光个人分享</p>
</div>
</div>
<script type="template/mustache" id="server-template">
<tr class="{{alert}}">
<td rowspan="2" class="sertitle">
<span class="label label-status label-{{label}}"><span class="glyphicon glyphicon-{{statusicon}}"></span> {{statustext}}</span>
<span class="wname">{{friendly_name}}</span>
</td>
{{#charts}}
<td class="center">
<span class="status-{{uptype}} set-tooltip" data-toggle="tooltip" data-placement="top" title="{{uptimetext}}"><span class="glyphicon glyphicon-{{upsign}}"></span></span>
</td>
{{/charts}}
</tr>
<tr class="{{alert}} barl">
<td colspan="8" class="barls">
<div class="progress">
{{#progress}}
<div class="progress-bar progress-bar-{{types}} set-tooltip" style="width: {{len}}%" data-toggle="tooltip" data-placement="top" title="{{stattip}}"></div>
{{/progress}}
</div>
</td>
</tr>
</script>
<script src="js/jquery-1.12.4.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/mustache.min.js" type="text/javascript"></script>
<script src="js/config.js" type="text/javascript"></script>
<script src="js/cup.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(myApp.dashboard.init);
</script>
</body>
</html>