-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (82 loc) · 3.41 KB
/
index.html
File metadata and controls
84 lines (82 loc) · 3.41 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
<!doctype html>
<html lang="zh-cn" class="mdui-theme-auto">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=contain"
/>
<link rel="stylesheet" href="/MaterialIcons/regular.css" />
<link rel="manifest" href="/manifest.json" />
<link rel="stylesheet" href="//res-cf.realtvop.top/mdui/fonts/roboto.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap"
rel="stylesheet"
/>
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1b1b1f" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#fefbff" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="description" content="SaltNet: 舞萌DX查分器" />
<meta name="keyword" content="舞萌DX, 水鱼, b50" />
<meta name="author" content="realtvop" />
<title>SaltNet</title>
<script>
window.spec = {
currentVersionBuildTime: "%buildTime%",
};
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MSZDDD7P09"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-MSZDDD7P09");
</script>
</head>
<body>
<div id="rescue" style="height: 0">
<a
href="javascript:void(0)"
onclick="
event.preventDefault();
(async () => {
if ('caches' in window) {
const cacheName = 'SaltNetv0-Main';
try {
const hasCache = await caches.has(cacheName);
if (hasCache) {
await caches.delete(cacheName);
console.log(`Cache "${cacheName}" cleared.`);
}
} catch (e) {
console.error('Rescue error:', e);
}
}
location.reload();
})();
"
>
救砖
</a>
</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
if (
[80, 443, 1443, "1443", "", "1145"].includes(location.port) ||
location.hostname == "saltnet-cachedev.localhost"
)
navigator.serviceWorker
.register("/sw.js", { scope: "/" })
.then(reg => console.log("SW_Reg_Success: ", reg.scope))
.catch(err => console.log("SW_Reg_Failed: ", err));
</script>
</body>
</html>