lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

commit 92bf364671ef557e59c7c4b4ee2c1b503836b8fb
parent 335643c598c3a225e8cd634dac4069705688ff46
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat, 21 Nov 2020 18:06:43 +0100

Start dark theme earlier

Diffstat:
Mtemplates/base.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/base.html b/templates/base.html @@ -8,7 +8,7 @@ var hour = new Date().getHours(); var css = document.createElement("link"); css.setAttribute("rel", "stylesheet"); - css.setAttribute("href", (hour >= 19 || hour < 7) ? "/dark.css" : "/light.css"); + css.setAttribute("href", (hour >= 18 || hour < 7) ? "/dark.css" : "/light.css"); document.head.appendChild(css); </script> {% block scripts %}{% endblock scripts %}