-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
43 lines (43 loc) · 1.37 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
<!--
* @Author: shaohang-shy
* @Date: 2022-08-11 11:04:24
* @LastEditors: shaohang-shy
* @LastEditTime: 2023-01-30 17:47:24
* @Description:
-->
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/resource/loading.css" />
<link rel="stylesheet" href="/resource/reset.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
<meta name="naive-ui-style" />
</head>
<body>
<div id="app">
<div class="loading">
<div class="loading-item loading-6">
<div class="verticalbox">
<span class="vertical"></span>
<span class="vertical"></span>
<span class="vertical"></span>
<span class="vertical"></span>
<span class="vertical"></span>
</div>
</div>
</div>
</div>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('color-schema') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
})()
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>