-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
214 lines (181 loc) · 6.08 KB
/
index.html
File metadata and controls
214 lines (181 loc) · 6.08 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网站维护中(完成不了) - 即将跳转</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
text-align: center;
}
.container {
max-width: 800px;
background: rgba(0, 0, 0, 0.7);
border-radius: 15px;
padding: 40px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.status {
font-size: 1.2rem;
margin: 20px 0;
padding: 15px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.countdown {
font-size: 1.5rem;
font-weight: bold;
margin: 25px 0;
color: #fdbb2d;
}
.buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 30px;
flex-wrap: wrap;
}
button {
padding: 12px 25px;
font-size: 1rem;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: bold;
}
.primary-btn {
background: #fdbb2d;
color: #1a2a6c;
}
.primary-btn:hover {
background: #ffcc44;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(253, 187, 45, 0.4);
}
.secondary-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
}
.secondary-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-3px);
}
.info-box {
margin-top: 30px;
padding: 15px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
font-size: 0.9rem;
}
.loader {
width: 50px;
height: 50px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fdbb2d;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
@media (max-width: 600px) {
.container {
padding: 25px;
}
h1 {
font-size: 1.8rem;
}
button {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<h1>网站维护中</h1>
<div class="status">
当前主站域名没了,我们无法修复问题。
</div>
<div class="loader"></div>
<div class="countdown" id="countdown">
5秒后自动跳转到备用站点...
</div>
<div class="buttons">
<button class="primary-btn" id="jumpNow">立即跳转</button>
</div>
<div class="info-box">
<p>您将被跳转到: <strong>https://old.uslng.eu.org/</strong></p>
<p>如果跳转没有自动发生,请点击"立即跳转"按钮。</p>
</div>
</div>
<script>
// 目标URL
const targetUrl = "https://old.uslng.eu.org/";
// 获取DOM元素
const countdownElement = document.getElementById('countdown');
const jumpNowButton = document.getElementById('jumpNow');
const stayLongerButton = document.getElementById('stayLonger');
// 倒计时初始值
let countdown = 5;
// 更新倒计时显示
function updateCountdown() {
countdownElement.textContent = `${countdown}秒后自动跳转到备用站点...`;
}
// 跳转函数
function redirect() {
window.location.href = targetUrl;
}
// 倒计时函数
function startCountdown() {
updateCountdown();
const countdownInterval = setInterval(() => {
countdown--;
updateCountdown();
if (countdown <= 0) {
clearInterval(countdownInterval);
redirect();
}
}, 1000);
// 立即跳转按钮事件
jumpNowButton.addEventListener('click', () => {
clearInterval(countdownInterval);
redirect();
});
// 停留更长时间按钮事件
stayLongerButton.addEventListener('click', () => {
clearInterval(countdownInterval);
countdown = 30;
countdownElement.textContent = `已延长停留时间,${countdown}秒后自动跳转...`;
startCountdown();
});
}
// 页面加载后开始倒计时
window.addEventListener('load', startCountdown);
</script>
</body>
</html>