Files
hideck/web/index.html
T

46 lines
843 B
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HiDeck</title>
<script>
try {
const theme = localStorage.getItem('theme')
if (theme === 'dark') {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
} catch { }
</script>
<style>
:root {
color-scheme: light dark;
}
html,
body {
height: 100%;
margin: 0;
}
body {
background: #f4f7f8;
}
html.dark body {
background: #0d1518;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>