diff --git a/web/_includes/navbar.html b/web/_includes/navbar.html index b663683..c88def2 100644 --- a/web/_includes/navbar.html +++ b/web/_includes/navbar.html @@ -17,6 +17,10 @@ diff --git a/web/_layouts/default.html b/web/_layouts/default.html index 7a28648..c402ba2 100644 --- a/web/_layouts/default.html +++ b/web/_layouts/default.html @@ -29,7 +29,11 @@ - + + diff --git a/web/main.js b/web/main.js deleted file mode 100644 index 172e363..0000000 --- a/web/main.js +++ /dev/null @@ -1,14 +0,0 @@ -const darkStorage = localStorage.getItem("dark"); -const darkTheme = darkStorage === null ? window.matchMedia("(prefers-color-scheme: dark)").matches : darkStorage === "true"; - -$(function () { - $(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide")); - - let mode = $("#dark-mode"); - mode.prop("checked", darkTheme); - mode.on("click", function () { - localStorage.setItem("dark", $(this).prop("checked")); - location.hash = ""; - location.reload(); - }); -});