2022-01-28 05:27:12 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
2023-05-01 06:01:24 +00:00
|
|
|
<head>
|
2023-07-03 06:04:33 +00:00
|
|
|
<meta name="robots" content="noindex, nofollow" />
|
2023-05-01 06:01:24 +00:00
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="description" content="Bored? Find a game! Bored Game!" />
|
|
|
|
|
<link rel="icon" href="%sveltekit.assets%/favicon-bored.png" />
|
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
|
|
|
|
<script>
|
2023-07-01 23:12:17 +00:00
|
|
|
// const htmlElement = document.documentElement;
|
|
|
|
|
// const userTheme = localStorage.theme;
|
|
|
|
|
// const userFont = localStorage.font;
|
2023-05-01 06:01:24 +00:00
|
|
|
|
2023-07-01 23:12:17 +00:00
|
|
|
// const prefersDarkMode = window.matchMedia('prefers-color-scheme: dark').matches;
|
|
|
|
|
// const prefersLightMode = window.matchMedia('prefers-color-scheme: light').matches;
|
2023-05-01 06:01:24 +00:00
|
|
|
|
2023-07-01 23:12:17 +00:00
|
|
|
// // check if the user set a theme
|
|
|
|
|
// if (userTheme) {
|
|
|
|
|
// htmlElement.dataset.theme = userTheme;
|
|
|
|
|
// }
|
2023-05-01 06:01:24 +00:00
|
|
|
|
2023-07-01 23:12:17 +00:00
|
|
|
// // otherwise check for user preference
|
|
|
|
|
// if (!userTheme && prefersDarkMode) {
|
|
|
|
|
// htmlElement.dataset.theme = '🌛 Night';
|
|
|
|
|
// localStorage.theme = '🌛 Night';
|
|
|
|
|
// }
|
2023-05-01 06:01:24 +00:00
|
|
|
|
2023-07-01 23:12:17 +00:00
|
|
|
// if (!userTheme && prefersLightMode) {
|
|
|
|
|
// htmlElement.dataset.theme = '☀️ Daylight';
|
|
|
|
|
// localStorage.theme = '☀️ Daylight';
|
|
|
|
|
// }
|
2023-05-01 06:01:24 +00:00
|
|
|
|
2023-07-01 23:12:17 +00:00
|
|
|
// // if nothing is set default to dark mode
|
|
|
|
|
// if (!userTheme && !prefersDarkMode && !prefersLightMode) {
|
|
|
|
|
// htmlElement.dataset.theme = '🌛 Night';
|
|
|
|
|
// localStorage.theme = '🌛 Night';
|
|
|
|
|
// }
|
2023-05-01 06:01:24 +00:00
|
|
|
</script>
|
|
|
|
|
%sveltekit.head%
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div id="svelte">%sveltekit.body%</div>
|
|
|
|
|
</body>
|
2022-10-29 17:10:24 +00:00
|
|
|
</html>
|