diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-02-14 19:02:54 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-02-14 19:02:54 +0100 |
| commit | 1d482a4ec2cf24dbe7cc6cb02e192e1b9545f796 (patch) | |
| tree | 9b0a26b7d3efeecd5ec20a6e5624857624bc53a6 /src/webapp-old/index.html | |
| parent | da4c22abbbf04566891976d01f5cf629857f8d0b (diff) | |
| download | bookmark-thing-1d482a4ec2cf24dbe7cc6cb02e192e1b9545f796.tar.xz bookmark-thing-1d482a4ec2cf24dbe7cc6cb02e192e1b9545f796.zip | |
feat: Experiment with tailwind
Diffstat (limited to 'src/webapp-old/index.html')
| -rw-r--r-- | src/webapp-old/index.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/webapp-old/index.html b/src/webapp-old/index.html new file mode 100644 index 0000000..490ab50 --- /dev/null +++ b/src/webapp-old/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> |
