forked from tenianon/lithe-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (39 loc) · 973 Bytes
/
index.html
File metadata and controls
39 lines (39 loc) · 973 Bytes
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link
rel="icon"
href="/favicon.ico"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<link
href="/assets/preloader.css"
rel="stylesheet"
/>
<title>%VITE_APP_TITLE%</title>
</head>
<body>
<div id="appLoader">
<div id="clock"></div>
</div>
<div id="app"></div>
<script>
document.documentElement.classList.toggle(
'dark',
localStorage.getItem('theme-mode') === 'dark' ||
(!localStorage.getItem('theme-mode') &&
window.matchMedia('(prefers-color-scheme: dark)').matches),
)
window.loaderElement = document.getElementById('appLoader')
window.loaderElement.style = `--clock-color: ${localStorage.getItem('theme-color') || '#8e51ff'}`
</script>
<script
type="module"
src="/src/main.ts"
></script>
</body>
</html>