From 20920524b7bd1650e6ed15e497d7cbbb5db1a4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 14 Apr 2020 16:40:19 +0200 Subject: Add UI sliders to tune CSS. --- static/script.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index 45a8c8d0..a5a5093d 100644 --- a/static/script.js +++ b/static/script.js @@ -174,6 +174,10 @@ function new_popup () { } +function setVar(str, val) { + document.documentElement.style.setProperty("--" + str, val); +} + window.onload = function () { start_time.setTime(document.querySelector("meta[name='start-time']").content * 1000) end_time.setTime(document.querySelector("meta[name='end-time']").content * 1000) -- cgit v1.2.3