-
Notifications
You must be signed in to change notification settings - Fork 817
/
reload.html
executable file
·76 lines (70 loc) · 3.27 KB
/
reload.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
<!DOCTYPE html>
<html lang="zh"> <!-- 优化:添加 lang 属性以指定页面语言为中文 -->
<head>
<meta charset="UTF-8"> <!-- 优化:指定字符集为UTF-8 -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- 优化:添加 viewport meta 标签 -->
<title>Win12 - 重启中</title> <!-- 优化:修改页面标题以包含关键词 -->
<meta name="description" content="Win12正在重启,请稍候..."> <!-- 优化:修正 meta 描述内容 -->
<style>
body {
background: linear-gradient(130deg, #ad6ecaee, #3b91d8ee);
margin: 0; /* 优化:添加 margin 样式,确保页面外边距为0 */
}
loading>svg>circle:first-child {
stroke: #fff;
fill: none;
stroke-width: 2px;
stroke-linecap: round;
animation: spin-infinite 1.8s linear 0s infinite normal none running;
transform-origin: 50% 50%;
transition: all .2s ease-in-out 0s;
}
loading>svg>circle:last-child {
fill: transparent; /* 优化:将填充颜色设置为透明 */
}
loading>svg {
background-color: transparent; /* 优化:将背景颜色设置为透明 */
border-radius: 50%;
}
@keyframes spin-infinite {
0% {
stroke-dasharray: 0.01px, 43.97px;
transform: rotate(0deg);
}
50% {
stroke-dasharray: 21.99px, 21.99px;
transform: rotate(450deg);
}
to {
stroke-dasharray: 0.01px, 43.97px;
transform: rotate(3turn);
}
}
</style>
<meta http-equiv="refresh" content="5;boot.html">
</head>
<body onload="initReboot()"> <!-- 优化:将JavaScript函数添加到 onload 事件中 -->
<div id="backdrop" style="transition: 1.5s; backdrop-filter: blur(30px); width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: rgba(111, 111, 111, 0.5); opacity: 0;"></div> <!-- 优化:修改背景颜色,添加透明度 -->
<loading id="ld" style="transition: 2s; opacity: 0;">
<svg style="position: absolute; left: calc(50% - 25px); top: calc(50% - 35px); width: 50px; height: 50px;" width="50px" height="50px" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7"></circle> <!-- 优化:修改SVG元素 -->
<circle cx="8" cy="8" r="6"></circle> <!-- 优化:修改SVG元素 -->
</svg>
</loading>
<p id="ldt" style="transition: 1.5s; opacity: 0; width: 100px; left: calc(50% - 50px); text-align: center; position: absolute; top: calc(50% + 5px); color: #fff; font-size: 20px;">
正在重启
</p>
<script>
function initReboot() {
document.getElementById('backdrop').style.opacity = 1;
document.getElementById('ld').style.opacity = 1;
document.getElementById('ldt').style.opacity = 1;
setTimeout(() => {
document.getElementById('backdrop').style.display = 'none';
document.getElementById('ld').style.display = 'none';
document.getElementById('ldt').style.display = 'none';
}, 3000);
}
</script>
</body>
</html>