33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<!doctype html>
|
|||
|
|
<html lang="en" class="dark">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8" />
|
||
|
|
<meta
|
||
|
|
name="viewport"
|
||
|
|
content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=5"
|
||
|
|
/>
|
||
|
|
<meta name="theme-color" content="#09090b" />
|
||
|
|
<meta name="color-scheme" content="light dark" />
|
||
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
||
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||
|
|
<title>OpenGFW</title>
|
||
|
|
<script>
|
||
|
|
// Apply the stored theme before first paint to avoid a flash.
|
||
|
|
;(function () {
|
||
|
|
try {
|
||
|
|
var t = localStorage.getItem('opengfw.theme') || 'system'
|
||
|
|
var dark =
|
||
|
|
t === 'dark' ||
|
||
|
|
(t === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)
|
||
|
|
document.documentElement.classList.toggle('dark', dark)
|
||
|
|
} catch (e) {}
|
||
|
|
})()
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="app"></div>
|
||
|
|
<script type="module" src="/src/main.ts"></script>
|
||
|
|
</body>
|
||
|
|
</html>
|