-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (63 loc) · 1.83 KB
/
index.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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="在线进行心理学/教育学统计检验和数据可视化" />
<link rel="icon" href="/favicon.ico" />
<title>PsychPen</title>
<script defer type="module" src="./src/main.tsx"></script>
</head>
<body style="overflow: hidden;">
<style id="loading-style">
#loading-content {
display: flex;
justify-content: center;
align-items: center;
width: 100dvw;
height: 100dvh;
position: fixed;
top: 0;
left: 0;
background-color: #f3f4f6;
color: black;
}
@media (prefers-color-scheme: dark) {
#loading-content {
background-color: #111827;
color: white;
}
}
#loading-animation {
display: inline-block;
width: 1em;
height: 1em;
border-radius: 50%;
border: 0.1em solid currentColor;
border-top-color: transparent;
animation: loading 0.6s infinite linear;
margin-left: 0.3rem;
}
@keyframes loading {
to {
transform: rotate(1turn);
}
}
</style>
<div id="loading-content">
<span style="font-size: 1.2rem;">加载中</span>
<span id="loading-animation"></span>
</div>
<script id="loading-script">
window.onload = () => {
const loadingStyle = document.getElementById('loading-style')
const loadingContent = document.getElementById('loading-content')
const loadingScript = document.getElementById('loading-script')
loadingStyle?.remove()
loadingContent?.remove()
loadingScript?.remove()
}
</script>
<div id="root"></div>
</body>
</html>