diff --git a/views/webpage_about.tpl b/views/webpage_about.tpl index 483a036..2722e3a 100644 --- a/views/webpage_about.tpl +++ b/views/webpage_about.tpl @@ -62,5 +62,5 @@

This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.

- + \ No newline at end of file diff --git a/views/webpage_add_spot.tpl b/views/webpage_add_spot.tpl index 3fa2b45..a92c076 100644 --- a/views/webpage_add_spot.tpl +++ b/views/webpage_add_spot.tpl @@ -68,6 +68,6 @@ - - + + \ No newline at end of file diff --git a/views/webpage_alerts.tpl b/views/webpage_alerts.tpl index f39925f..7548ce9 100644 --- a/views/webpage_alerts.tpl +++ b/views/webpage_alerts.tpl @@ -165,6 +165,6 @@ - - + + \ No newline at end of file diff --git a/views/webpage_bands.tpl b/views/webpage_bands.tpl index c9daaa6..addda42 100644 --- a/views/webpage_bands.tpl +++ b/views/webpage_bands.tpl @@ -128,7 +128,7 @@ - - - + + + \ No newline at end of file diff --git a/views/webpage_map.tpl b/views/webpage_map.tpl index d71ba37..7bc7994 100644 --- a/views/webpage_map.tpl +++ b/views/webpage_map.tpl @@ -146,7 +146,7 @@ - - - + + + \ No newline at end of file diff --git a/views/webpage_spots.tpl b/views/webpage_spots.tpl index fa821fe..f6e8e63 100644 --- a/views/webpage_spots.tpl +++ b/views/webpage_spots.tpl @@ -208,7 +208,7 @@ - - - + + + \ No newline at end of file diff --git a/views/webpage_status.tpl b/views/webpage_status.tpl index 5dde65b..9699c15 100644 --- a/views/webpage_status.tpl +++ b/views/webpage_status.tpl @@ -2,6 +2,6 @@
- - + + \ No newline at end of file diff --git a/webassets/js/common.js b/webassets/js/common.js index a631b72..e04933a 100644 --- a/webassets/js/common.js +++ b/webassets/js/common.js @@ -24,7 +24,6 @@ function loadURLParams() { // Handle other params updateCheckboxFromParam(params, "dark-mode", "darkMode"); - enableDarkMode($("#darkMode")[0].checked); updateSelectFromParam(params, "time-zone", "timeZone"); // Only on Spots and Alerts pages updateSelectFromParam(params, "limit", "spots-to-fetch"); // Only on Spots page updateSelectFromParam(params, "limit", "alerts-to-fetch"); // Only on Alerts page @@ -42,6 +41,10 @@ function updateCheckboxFromParam(params, paramName, checkboxID) { let v = params.get(paramName); if (v != null) { $("#" + checkboxID).prop("checked", (v === "true") ? true : false); + // Extra check if this is the "dark mode" toggle + if (checkboxID == "darkMode") { + enableDarkMode((v === "true") ? true : false); + } } }