-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (29 loc) · 974 Bytes
/
index.html
File metadata and controls
30 lines (29 loc) · 974 Bytes
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
<!doctype html>
<html class="text-base" lang="en">
<head>
<title>Precise.ly</title>
<link href="~/assets/css/styles.css" rel="stylesheet" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" />
</head>
<body>
<noscript>JavaScript required.</noscript>
<div id="root"></div>
<script>
// deal with dark mode; must be done here to avoid FOUC
if (localStorage.theme === "dark"
// Dark Mode looks horrific
// Disable logic that selects dark mode based on system settings
// ||
// (!("theme" in localStorage) &&
// window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
}
else {
document.documentElement.classList.remove("dark");
}
</script>
<script type="module" src="~/src/Root.tsx"></script>
</body>
</html>