-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (92 loc) · 2.3 KB
/
index.html
File metadata and controls
93 lines (92 loc) · 2.3 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/icon" href="/icons/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>SPlayer Next</title>
<style>
html,
body {
margin: 0;
height: 100%;
}
body {
background: #101014;
}
html.light body {
background: #f6f6f6;
}
#app-loading {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: inherit;
color: #aaa;
transition: opacity 0.3s;
}
html.light #app-loading {
color: #666;
}
#app-loading.hidden {
opacity: 0;
pointer-events: none;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
<script>
// 确定明暗模式
(function () {
let mode = "system";
try {
const raw = localStorage.getItem("theme");
if (raw) mode = JSON.parse(raw).mode || "system";
} catch (e) {}
const isDark =
mode === "dark" ||
(mode === "system" && window.matchMedia("(prefers-color-scheme: dark)").matches);
if (!isDark) document.documentElement.classList.add("light");
})();
</script>
</head>
<body>
<div id="app-loading">
<svg
width="28"
height="28"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
style="animation: spin 0.8s linear infinite"
>
<circle
cx="12"
cy="12"
r="10"
stroke="currentColor"
stroke-width="3"
stroke-linecap="round"
opacity="0.2"
/>
<path
d="M12 2a10 10 0 0 1 10 10"
stroke="currentColor"
stroke-width="3"
stroke-linecap="round"
/>
</svg>
</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>