From 725c6acca025918e28a82936b9f49f06e456300f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 7 May 2017 21:36:59 +0200 Subject: [PATCH] Inline style-switching JS into --- public/js/main.js | 6 ------ templates/index.html | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 657a4909..4d5b47d7 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,10 +1,4 @@ // Night mode -var night = localStorage.getItem("night"); -if (night == "true") { - $("#style")[0].href = "/css/style-night.css"; - $("#nighticon")[0].src = "/img/sun.png"; -} - function toggleNightMode() { var night = localStorage.getItem("night"); if(night == "true") { diff --git a/templates/index.html b/templates/index.html index 9b6c3391..eef8f1d1 100755 --- a/templates/index.html +++ b/templates/index.html @@ -27,6 +27,15 @@ +