-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (74 loc) · 2.64 KB
/
index.html
File metadata and controls
76 lines (74 loc) · 2.64 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/app.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#09090b" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="TypeType" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="preload" as="image" href="/loader.gif" />
<script>
(() => {
const STORAGE_KEY = "typed-theme";
const DARK = "dark";
const LIGHT = "light";
function readStoredTheme() {
try {
const raw = window.localStorage.getItem(STORAGE_KEY);
if (!raw) return DARK;
const parsed = JSON.parse(raw);
if (!parsed || typeof parsed !== "object") return DARK;
const state = parsed.state;
if (!state || typeof state !== "object") return DARK;
const theme = state.theme;
return theme === LIGHT || theme === DARK ? theme : DARK;
} catch (_error) {
return DARK;
}
}
const theme = readStoredTheme();
const root = document.documentElement;
root.dataset.theme = theme;
root.style.colorScheme = DARK;
})();
</script>
<title>TypeType</title>
<style>
.vds-quality-menu > .vds-menu-item,
.vds-quality-menu > .vds-menu-items { order: 0; }
.vds-format-menu > .vds-menu-item,
.vds-format-menu > .vds-menu-items { order: 1; }
.vds-audio-menu > .vds-menu-item,
.vds-audio-menu > .vds-menu-items { order: 2; }
.vds-playback-menu > .vds-menu-item,
.vds-playback-menu > .vds-menu-items { order: 3; }
.vds-accessibility-menu > .vds-menu-item,
.vds-accessibility-menu > .vds-menu-items { order: 4; }
.vds-captions-menu > .vds-menu-item,
.vds-captions-menu > .vds-menu-items { order: 5; }
</style>
<style>
#app-loader {
position: fixed;
inset: 0;
background: #000000;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
</style>
</head>
<body>
<div id="app-loader">
<img src="/loader.gif" width="160" height="160" alt="" />
</div>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>