This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path1xxxerror.html
111 lines (109 loc) · 4.04 KB
/
1xxxerror.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<meta name="backend-renderer" content="ejs" />
<meta name="custom-page" content="186526/CloudflareCustomErrorPage" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500&family=Fira+Mono&family=Ubuntu&display=swap"
rel="stylesheet" />
<title>1xxx | Cloudflare 侧错误</title>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"
rel="stylesheet" />
<link href="./index.css" rel="stylesheet" />
<script defer>
document.head.innerHTML += `<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">`;
</script>
</head>
<body class="item">
<header>
<main>1xxx</main>
<description> Cloudflare 侧错误 </description>
</header>
<status>
<card class="green-card" id="client-status-card">
<icon class="material-icons-outlined green-text">web_assets</icon>
<main>您所运行的客户端</main>
<status-text class="green-text">正常</status-text>
</card>
<statusnext>
<icon class="material-icons-outlined green-text">east</icon>
<icon class="material-icons-outlined red-text">west</icon>
</statusnext>
<card class="red-card" id="client-status-card">
<icon class="material-icons-outlined red-text">cloud</icon>
<main>Cloudflare 边缘网络</main>
<status-text class="red-text">错误</status-text>
</card>
<statusnext>
<icon class="material-icons-outlined red-text">east</icon>
<icon class="material-icons-outlined green-text">west</icon>
</statusnext>
<card class="yellow-card" id="client-status-card">
<icon class="material-icons-outlined yellow-text">dns</icon>
<main>该站点服务器</main>
<status-text class="yellow-text">未知</status-text>
</card>
</status>
<reason>
<explain>
<main>发生了什么?</main>
<p>Cloudflare 汇报了一个错误。</p>
</explain>
<howtodo>
<main>我该做什么?</main>
<p>请在几分钟后重试。</p>
</howtodo>
</reason>
<hr />
</body>
<footer>
<text>
您的 IP 是 <code> ::CLIENT_IP:: </code>
<br />
Ray ID 是 <code>::RAY_ID::</code>
<br />
</text>
<provider class="footer-right">与 <a href='https://cloudflare.com'>Cloudflare</a> 一同运行。</provider>
</footer>
<none> ::CLOUDFLARE_ERROR_1000S_BOX:: ::CLOUDFLARE_ERROR_500S_BOX:: </none>
<script>
(function () {
const baseDetils = document.querySelector(".cf-error-details");
const ErrorMessage = baseDetils.querySelector("h1").innerText;
const Explain =
baseDetils.querySelector("p").innerText +
document.querySelector("ul").innerText;
let ErrorNumber = "5xx";
let POP = "undefined";
baseDetils.querySelector("ul.cferror_details").childNodes.forEach((e) => {
if (e.innerText !== undefined) {
let check = e.innerText.replace("Error reference number: ", "");
if (check !== e.innerText) {
ErrorNumber = check;
return;
}
check = e.innerText.replace("Cloudflare Location: ", "");
if (check !== e.innerText) {
POP = check;
return;
}
}
});
document.querySelector("header main").innerText = ErrorNumber;
document.querySelector("header description").innerText = ErrorMessage;
document.querySelector("explain p").innerText = Explain;
document.querySelector(
"title"
).innerText = `${ErrorNumber} | ${ErrorMessage}`;
})();
</script>
</html>