-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpage.html
445 lines (437 loc) · 11.3 KB
/
cpage.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title id="title"></title>
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, maximum-scale = 1.0, minimum-scale=1.0,initial-scale=1.0">
<script src="js/jquery.min.js"></script>
<style>
html {
font-size:125%;
}
body {
font-family:'Segoe UI',sans-serif;
/*font-size:93.75%*/ /*It won't display as my expectation.*/
font-size:75%;
color:rgb(95,99,104);
word-wrap:break-word;
}
article {
box-sizing:border-box;
font-size:1em;
line-height:1.6em;
margin:14vh auto 0;
max-width:600px;
width:100%;
}
.dinosaur-icon {
display:inline-block;
width:72px;
height:72px;
margin:0 0 40px;
position:relative;
content: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAENJREFUeF7tzbEJACEQRNGBLeAasBCza2lLEGx0CxFGG9hBMDDxRy/72O9FMnIFapGylsu1fgoBdkXfUHLrQgdfrlJN1BdYBjQQm3UAAAAASUVORK5CYII=) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQAQMAAADdiHD7AAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAFJJREFUeF7t0cENgDAMQ9FwYgxG6WjpaIzCCAxQxVggFuDiCvlLOeRdHR9yzjncHVoq3npu+wQUrUuJHylSTmBaespJyJQoObUeyxDQb3bEm5Au81c0pSCD8HYAAAAASUVORK5CYII=) 2x);
}
.icon-generic {
content: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAENJREFUeF7tzbEJACEQRNGBLeAasBCza2lLEGx0CxFGG9hBMDDxRy/72O9FMnIFapGylsu1fgoBdkXfUHLrQgdfrlJN1BdYBjQQm3UAAAAASUVORK5CYII=) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQAQMAAADdiHD7AAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAFJJREFUeF7t0cENgDAMQ9FwYgxG6WjpaIzCCAxQxVggFuDiCvlLOeRdHR9yzjncHVoq3npu+wQUrUuJHylSTmBaespJyJQoObUeyxDQb3bEm5Au81c0pSCD8HYAAAAASUVORK5CYII=) 2x);
}
article>h1 {
margin-top:0;
word-wrap:break-word;
color:rgb(32,33,36);
font-size:1.6em;
font-weight:500;
line-height:1.25em;
margin-bottom:16px;
}
.hint-text {
margin-bottom:0;
}
article>.hint-text+ul {
margin-top:0;
}
article a {
text-decoration:none;
color:rgb(26,115,232);
}
.sitename {
display:block;
font-size:.8em;
color:#646464;
text-transform:uppercase;
margin:12px 0 0 0;
}
article>footer {
margin-top:51px;
}
.button {
border:1px solid rgb(154,160,166);
border-radius:4px;
box-sizing:border-box;
color:rgb(95,99,104);
background:#fff;
cursor:pointer;
font-size:.875em;
margin:0;
padding:8px 16px;
transition:box-shadow 150ms cubic-bezier(0.4,0,0.2,1);
outline:none;
}
.button:active {
border-color:white;
}
.button:hover {
background:rgb(250,250,250);
border-color:rgb(128,134,139);
text-decoration:none;
}
.button__colored {
background:rgb(26,115,232);
color:#fff;
border:none;
}
.button__colored:hover {
background:rgb(26,115,232);
}
.button__colored:active {
background:rgb(23,103,210);
}
article>aside {
display:none;
}
article>aside>:first-child {
margin-top:20px;
}
article>aside>h2 {
font-weight:bold;
margin-top:18px;
margin-bottom:4px;
font-size:1em;
line-height:1.6em;
}
article>aside>p {
color:#777;
margin:0;
}
article.debugging>aside {
display:block;
}
/*Support devices in distinct resolutions.*/
@media (min-height:299px) {
article>footer {
padding-bottom:16px;
/*原本是16px*/
}
}
@media (max-width:700px) {
article {
padding:0 10%;
}
}
@media (max-width:420px) {
article {
padding:0 5%;
}
.button {
font-size:.825em;
font-weight:500;
margin:0;
width:100%;
display:block;
padding:16px 24px;
}
#debug-switch {
display:block;
text-align:center;
width:100%;
border:0;
margin:12px 0 6px 0;
padding-bottom:16px;
padding-top:16px;
}
article>aside {
margin:20px 0 20px 0;
}
}
@media (orientation:portrait) {
/*
* For vertical screens: * /------\
* |Status|
* |Title |
* | CON |
* | TENT |
* |< 0 ~ |
* \______/
*
*/
@media (max-width:420px) {
article {
box-sizing:border-box;
margin:7vh auto 12px;
padding:0 24px;
position:relative;
}
article>h1 {
font-size:1.5em;
margin-bottom:8px;
}
}
@media (max-width:414px) {
@media (min-height:650px) {
article {
margin-top:10vh;
}
}
@media (min-height:500px) and (max-height:650px) {
article {
margin-top:7vh;
}
}
}
@media (min-height:400px) {
article {
margin-bottom:145px;
}
}
}
@media (max-width:420px) and (orientation:portrait),(max-height:560px) {
article {
box-sizing:border-box;
/*margin:7vh auto 12px;*/
padding:0 24px;
position:relative;
}
article>h1 {
font-size:1.5em;
margin-bottom:8px;
}
.dinosaur-icon {
margin-bottom:5.69vh;
}
body {
margin:0 auto;
}
article>summary,article>p{
font-size:.95em;
line-height:1.61em;
margin-top:17px;
}
.hint-text {
font-size:.95em;
line-height:1.61em;
margin-top:8px;
}
.button {
font-family:Roboto,'Noto Sans CJK SC',sans-serif;
font-size:.933em;
margin:0 0 0 0;
}
article:not(.debugging)>aside {
display:block;
height:0;
opacity:0;
overflow:hidden;
padding-bottom:0;
transition:none;
}
article>aside {
box-sizing:border-box;
height:auto;
margin:0;
opacity:1;
transition:opacity 250ms cubic-bezier(0.4,0,0.2,1);
}
article>:not(aside):not(footer) {
transition:opacity 100ms cubic-bezier(0.4,0,0.2,1);
}
article.debugging>:not(aside):not(footer) {
margin:0;
display:block;
height:0;
opacity:0;
overflow:hidden;
padding-bottom:0;
transition:none;
}
body {
margin:0 auto;
}
.sitename {
margin:18px 0 0 0;
}
}
@media (max-width:640px),(max-height:640px) {
article>h1 {
margin:0 0 15px 0;
}
article>aside>:first-child {
margin-top:10px;
}
article>aside>h2 {
margin-top:10px;
margin-bottom:0;
}
}
@media (max-width:420px) and (min-height:401px) and (min-width:240px),(max-height:560px) and (min-height:240px) and (min-width:421px) {
article>footer {
box-sizing:border-box;
background:#fff;
bottom:0;
box-shadow:0 -22px 40px #fff;
left:0;
margin:0 auto;
max-width:736px;
padding-left:24px;
padding-right:24px;
position:fixed;
right:0;
width:100%;
z-index:2;
}
article>aside {
padding-bottom:40px;
padding-top:5.5vh;
}
article {
padding-bottom:40px;
}
}
@media (max-height:420px) and (max-width:736px) and (min-height:240px) and (min-width:420px) and (orientation:landscape) {
article {
margin-bottom:100px;
}
}/*Snackbar*/
.notification {
background:#323232;
color:white;
height:48px;
position:fixed;
left:24px;
bottom:0;
line-height:48px;
display:block;
border:none;
padding:0;
border-radius:2px;
min-width:288px;
max-width:568px;
padding-left:24px;
padding-right:24px;
z-index:3;
}
@keyframes appear {
from {
transform:translateY(100%);
}
to {
transform:translateY(0%);
}
}
@keyframes disappear {
from {
transform:translateY(0);
}
to {
transform:translateY(100%);
}
}
.notification.appear {
animation:appear .325s ease;
transform:translateY(0);
}
.notification.disappear:not(.appear) {
animation:disappear .325s ease-out;
transform:translateY(100%);
}
.notification.default {
transform:translateY(100%);
}
@media (max-width:640px) {
.notification {
width:100%;
max-width:none;
min-width:none;
border-radius:0;
left:0;
right:0;
}
}
</style>
</head>
<body>
<article id="frame">
<img class="dinosaur-icon" alt="">
<h1>无法访问此网站</h1>
<summary>
<strong id="ip"></strong>拒绝了我们的连接请求。
</summary>
<p class="hint-text">请试试以下办法:</p>
<ul>
<li>检查网络连接</li>
<li>检查代理服务器和防火墙</li>
<!--<li>发布者自主删除</li>-->
<li><a href="" >运行 Windows 网络诊断</a></li>
</ul>
<p class="sitename" style="text-align: left;">ERR_CONNECTION_REFUSED</p>
<footer>
<button id="reload" class="button button__colored">重新加载</button>
<button style="float: right;" class="button" id="debug-switch">详情</button>
</footer>
<aside>
<h2 >请检查您的互联网连接是否正常</h2>
<p>请检查所有网线是否都已连好,然后重新启动您可能正在使用的任何路由器、调制解调器或其他网络设备。</p>
<h2>在防火墙或防病毒设置部分设为允许 Chrome 访问网络。</h2>
<p>如果它已在可访问网络的程序列表中,请尝试将它从该列表中移除,然后重新添加到其中。</p>
<h2>如果您使用代理服务器…</h2>
<p>请检查您的代理服务器设置或与网络管理员联系,以确保代理服务器正常运行。如果您认为自己不需要使用代理服务器,请执行以下操作: 依次转到 Chrome 菜单 >“设置”>“显示高级设置…”>“更改代理服务器设置…”>“LAN 设置”,然后取消选中“为 LAN 使用代理服务器”<a href="javascript:void(0)" onclick="window.top.location.href='https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4'" style="cursor:text; color: inherit; text-decoration: none;" >。</a></p>
</aside>
</article>
<dialog id="notification" class="notification default"></dialog>
<script>
const notifications = {
_queue: [],
_interval: null,
_shift() {
document.querySelector('#notification').innerText = this._queue.shift();
document.querySelector("#notification").setAttribute("class", "notification appear");
this._interval = setTimeout(() => {
document.querySelector("#notification").setAttribute("class", "notification disappear");
if (this._queue.length)
setTimeout(() => this._shift(), 325);
else
this._interval = null;
}, 4000);
},
add(content) {
if (content && content.length) this._queue.push(content);
if (!this._interval && this._queue.length)
this._shift();
}
};
//I'm tired to support dinosaur game.
const dinosaurGameIncompatible = () => notifications.add('nice try');
window.addEventListener('keypress', dinosaurGameIncompatible);
document.querySelector('.dinosaur-icon').addEventListener('click', dinosaurGameIncompatible);
//Display and hide details.
document.querySelector('#debug-switch').addEventListener('click', () => {
if (document.querySelector('#debug-switch').hasAttribute('displayed')) {
document.querySelector('#debug-switch').removeAttribute('displayed');
document.querySelector('#debug-switch').innerHTML = "详情";
document.querySelector('#frame').removeAttribute('class');
} else {
document.querySelector('#debug-switch').setAttribute('displayed', 'displayed');
document.querySelector('#debug-switch').innerHTML = "隐藏详细信息";
document.querySelector('#frame').setAttribute('class', 'debugging');
}
});
//Reload the page.
document.querySelector('#reload').addEventListener('click', () => location.reload());
document.getElementById("ip").innerText = window.location.hostname + " ";
document.getElementById("title").innerText = window.location.hostname;
</script>
</body>
</html>