/
index.html
32 lines (32 loc) · 1.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/favicon.svg" type="image/x-icon" />
<title>Tailvue Starter</title>
</head>
<body>
<div id="app"></div>
<noscript>
<p>EN: Please enable JavaScript to use this application.</p>
<p>EN: If it's already enabled, try upgrading your browser.</p>
<hr />
<p>
RU: Пожалуйста, включите JavaScript чтобы использовать это приложение.
</p>
<p>RU: Если он уже включен, попробуйте обновить браузер.</p>
</noscript>
<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>