-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (58 loc) · 1.16 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="robots" content="none">
<title>空荧酒馆</title>
<style>
@supports (width: 100dvw) {
html {
width: 100dvw;
height: 100dvh;
}
}
@supports not (width: 100dvw) {
html {
width: 100vw;
height: 100vh;
}
}
html {
overflow: hidden;
cursor: url('/icons/GensinMouse.svg') 0 0, auto;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body, #app {
width: 100%;
height: 100%;
}
#app {
display: grid;
place-items: center;
overflow: hidden;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module">
const text = (() => {
if (!window?.isSecureContext)
return '网站处于非安全上下文中,Web 应用无法正常运行。'
return ''
})()
if (text) {
const app = document.getElementById('app')
app.innerText = text
}
else {
import('./src/main.ts')
}
</script>
</body>
</html>