From 6424e10be5a89f175a74c71c55660412a169b8b8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 23 Jun 2026 18:04:37 +0200 Subject: Update deployed state to what's currently running --- public/javascripts/public.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'public/javascripts') diff --git a/public/javascripts/public.js b/public/javascripts/public.js index 0919360..10f04e8 100644 --- a/public/javascripts/public.js +++ b/public/javascripts/public.js @@ -18,6 +18,13 @@ $(document).ready(function(){ $("div#headline_image a img").bind("click", function(){ $(".shadowbox_image:first").trigger("click"); }); + + document.getElementById("light-mode").addEventListener("change", () => { + if (document.getElementById("light-mode").checked) + localStorage.setItem("override-prefers-color-scheme", 1); + else + localStorage.removeItem("override-prefers-color-scheme"); + }); }); @@ -38,4 +45,4 @@ var image_handler = { path = path_name.replace(/\/(de|en)*\/*/, ""); gallery_path = ""; } -}; \ No newline at end of file +}; -- cgit v1.3