This repository was archived by the owner on Oct 5, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (52 loc) · 2.05 KB
/
Copy pathindex.html
File metadata and controls
52 lines (52 loc) · 2.05 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content" />
<title>Vim Course | freeCodeCamp.org</title>
<script>
// Pre-paint theme stamp. Runs before the stylesheet applies so a light-theme
// learner never sees a dark flash. The key is duplicated from THEME_STORAGE_KEY
// in src/hooks/useTheme.ts because inline scripts cannot import.
try {
const stored = localStorage.getItem('vim-course:theme');
if (stored === 'light' || stored === 'dark') {
document.documentElement.dataset.theme = stored;
} else {
// No stored preference; check system theme.
document.documentElement.dataset.theme = window.matchMedia(
'(prefers-color-scheme: light)'
).matches
? 'light'
: 'dark';
}
} catch {
// Storage unavailable; check system theme as fallback.
document.documentElement.dataset.theme = window.matchMedia('(prefers-color-scheme: light)')
.matches
? 'light'
: 'dark';
}
try {
if (localStorage.getItem('vim-course:animationsEnabled') === 'false') {
document.documentElement.setAttribute('data-reduced-motion', '');
}
} catch {
// Storage unavailable; skip reduced-motion stamping.
}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Roboto+Mono:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/png" href="/favicon-32x32.png" />
<link rel="preload" href="/data/curriculum-tree.json" as="fetch" crossorigin />
<!-- SEO_META_PLACEHOLDER -->
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>