-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (46 loc) · 1.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>沃德工具箱</title>
<style>
body {
padding: 0;
margin: 0;
}
.loading {
box-sizing: border-box;
height: 100vh;
text-align: center;
padding: 40vh 0;
color: #888;
background-color: #fff;
font-size: 14px;
}
.loading.dark {
background-color: rgb(24, 24, 28);
color: rgba(255, 255, 255, 0.82);
}
</style>
</head>
<body>
<div id="app">
<div class="loading">玩命加载中...</div>
</div>
<script>
try {
let cls = 'light'
var appConfig = JSON.parse(localStorage.getItem('appConfig'))
if (appConfig.themeType === 'dark' || (appConfig.themeType === 'os' && appConfig.os === "dark")) {
cls = 'dark'
}
document.querySelector('.loading').classList.add(cls)
} catch (e) {
console.log(e)
}
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>