-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (32 loc) · 1.11 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
33
34
35
<!doctype html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="Wizard101, timer, plants">
<meta name="author" content="RyanHx">
<title>Wizard101 Plant Tracker</title>
<meta name="description"
content="Create timers to track your Wizard101 plants. Supports multiple profiles (accounts)." />
<script>
const theme = localStorage.getItem('theme');
if (theme !== null) {
document.documentElement.setAttribute('data-bs-theme', theme);
} else {
const isDarkThemePreferred = window.matchMedia('(prefers-color-scheme: dark)').matches;
document.documentElement.setAttribute('data-bs-theme', isDarkThemePreferred ? 'dark' : 'light');
}
</script>
</head>
<body>
<div id="root"></div>
<script>
if (!localStorage.getItem('apiVersion')) {
localStorage.clear();
localStorage.setItem('apiVersion', 2);
}
</script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>