mirror of
https://github.com/priyanshujain/margin.git
synced 2026-10-02 11:07:04 +00:00
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
<link rel="icon" type="image/png" href="/margin-mark.png" />
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var t = localStorage.getItem("margin-theme");
|
|
if (t !== "light" && t !== "dark")
|
|
t = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
document.documentElement.setAttribute("data-theme", t);
|
|
var w = localStorage.getItem("margin-width");
|
|
var m = { narrow: "38em", medium: "46em", wide: "62em", full: "80em" }[w];
|
|
if (m) document.documentElement.style.setProperty("--measure", m);
|
|
[
|
|
["margin-pane-sidebar", "--pane-sidebar"],
|
|
["margin-pane-dock", "--pane-dock"],
|
|
].forEach(function (p) {
|
|
var v = parseInt(localStorage.getItem(p[0]), 10);
|
|
if (v > 0) document.documentElement.style.setProperty(p[1], v + "px");
|
|
});
|
|
} catch (e) {}
|
|
})();
|
|
</script>
|
|
<title>margin</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|