-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
24 lines (24 loc) · 829 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<script defer>
// Add an event listener to ensure the script runs before page load
document.addEventListener("DOMContentLoaded", function () {
/* get the darkMode on local if true set bgcolor to dark */
if (localStorage.getItem("Dark") === "true") {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
});
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/chat.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React Chat</title>
</head>
<body class="bg-slate-200 dark:bg-gray-900">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>