summaryrefslogtreecommitdiffstats
path: root/src/webapp/index.html
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-01-22 22:43:38 +0100
committerivarlovlie <git@ivarlovlie.no>2022-01-22 22:43:38 +0100
commit88110f536f9c3843ecf5016122e101f8a424af77 (patch)
treee8be4e77ccfb5ad37f49f89adad59ff12b4c85ea /src/webapp/index.html
downloadbookmark-thing-88110f536f9c3843ecf5016122e101f8a424af77.tar.xz
bookmark-thing-88110f536f9c3843ecf5016122e101f8a424af77.zip
Initial commit
Diffstat (limited to 'src/webapp/index.html')
-rw-r--r--src/webapp/index.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/webapp/index.html b/src/webapp/index.html
new file mode 100644
index 0000000..490ab50
--- /dev/null
+++ b/src/webapp/index.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en"
+ theme="white">
+<head>
+ <meta charset="UTF-8"/>
+ <link rel="icon"
+ href="/favicon.ico"/>
+ <meta name="viewport"
+ content="width=device-width, initial-scale=1.0"/>
+ <script>
+ const prefs = sessionStorage.getItem("preferences");
+ const prefsObj = JSON.parse(prefs ?? "{}");
+ if (prefsObj?.theme === 1 || window.matchMedia("(prefers-color-scheme: dark)").matches) {
+ document.documentElement.setAttribute("theme", "g100");
+ } else {
+ document.documentElement.setAttribute("theme", "white");
+ }
+ </script>
+ <title>Bookmark thing</title>
+</head>
+<body>
+<div id="app"></div>
+<script type="module"
+ src="/src/main.ts"></script>
+</body>
+</html>