-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.html
114 lines (93 loc) · 2.42 KB
/
error.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
<!DOCTYPE html>
<html>
<head>
<style>
@keyframes fade_in_page {
0% {
opacity: 0;
}
100% {
opacity: 1;
size: 1;
}
}
html {
height: 100%;
}
body {
background-color: #171717;
display: flex;
height: calc(100% - 16px);
flex-direction: column;
align-items: center;
color: azure;
animation-duration: 0.5s;
animation-delay: 0s;
animation-name: fade_in_page;
transform: display 0s !important;
font-family: sans-serif;
}
h1 {
font-size: xx-large;
font-weight: bold;
text-align: center;
}
hr {
width: 95%;
}
.button:hover {
background-color: #202020;
}
.button,
.label {
transition-duration: 0.5s;
background-color: #272727;
width: 80%;
margin-bottom: 10px;
display: flex;
justify-content: center;
padding: 10px;
border-radius: 5px;
font-size: large;
font-style: bold;
font-weight: bold;
border: 2px solid #202020;
transition: all 0s, background-color 0.5s, transform 0.5s !important;
flex-direction: column;
align-items: center;
max-width: 600px;
}
.label {
pointer-events: none;
}
.button {
cursor: pointer;
}
h6 {
margin: 0;
}
.button:hover {
background-color: #555;
border: 2px solid #222;
transform: scale(1.1);
}
</style>
</head>
<body>
<h1>Error {code} : {message}</h1>
<script>
let a = [...JSON.parse(`{json}`)];
function button(title, func) {
const div = document.createElement("div");
div.innerText = title;
div.onclick = func;
div.className = "button";
document.body.appendChild(div);
return div;
}
a.forEach(e => {
button(`${location.protocol}//${e.host}/`, () => location.href = `${location.protocol}//${e.host}:${location.port}/`)
})
</script>
</body>
</html>