commit c3655aceda966f03bd5943001cb68bc70c789b9e
parent 121923f6e4caac1a943d096d64f0e2b6ce4afdf6
Author: Alex Balgavy <alex@balgavy.eu>
Date: Mon, 26 Oct 2020 19:17:40 +0100
Start dark theme an hour earlier
Diffstat:
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 >= 20 || hour < 7) ? "/dark.css" : "/light.css");
+ css.setAttribute("href", (hour >= 19 || hour < 7) ? "/dark.css" : "/light.css");
document.head.appendChild(css);
</script>
{% block scripts %}{% endblock scripts %}