diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-14 16:40:19 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-14 16:40:49 +0200 |
commit | 20920524b7bd1650e6ed15e497d7cbbb5db1a4ed (patch) | |
tree | dd4c064dab3c0dea7e2303b9fdd5d1986fd70a37 /static/script.js | |
parent | Add some TODO's. (diff) | |
download | calp-20920524b7bd1650e6ed15e497d7cbbb5db1a4ed.tar.gz calp-20920524b7bd1650e6ed15e497d7cbbb5db1a4ed.tar.xz |
Add UI sliders to tune CSS.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 4 |
1 files changed, 4 insertions, 0 deletions
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) |