-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
30 lines (27 loc) · 1005 Bytes
/
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
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.png" type="image/png">
<title>Just Imgs</title>
<meta name="description" content="图床什么的,连接 Cloudflare Worker + R2 使用。">
</head>
<body class="font-sans">
<div id="app"></div>
<noscript>
<div>请启用 JavaScript 以使用本站点程序。</div>
<div>Please enable JavaScript to use this application.</div>
</noscript>
<script>
(function () {
// const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const prefersDark = false
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>