diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-13 22:48:42 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-13 22:48:42 +0100 |
commit | 45b2adc1fd8d0555b23a41fcbfde273f7a979067 (patch) | |
tree | 7efffef4c381e08e7c7183082b1fa79354dd09b2 /static/script.js | |
parent | Fix repo-url in HTML. (diff) | |
download | calp-45b2adc1fd8d0555b23a41fcbfde273f7a979067.tar.gz calp-45b2adc1fd8d0555b23a41fcbfde273f7a979067.tar.xz |
Repair timebar.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/static/script.js b/static/script.js index 3a3148b5..312da431 100644 --- a/static/script.js +++ b/static/script.js @@ -228,8 +228,8 @@ function place_in_edit_mode (event) { } window.onload = function () { - let start_time = document.querySelector("meta[name='start-time']").content; - let end_time = document.querySelector("meta[name='end-time']").content; + // let start_time = document.querySelector("meta[name='start-time']").content; + // let end_time = document.querySelector("meta[name='end-time']").content; const button_updater = new ButtonUpdater( document.getElementById("today-button"), @@ -239,9 +239,10 @@ window.onload = function () { const sch = new SmallcalCellHighlight( document.querySelector('.small-calendar')) - const timebar = new Timebar(start_time, end_time); + const timebar = new Timebar(/*start_time, end_time*/); timebar.update(new Date); + sch.update(new Date); window.setInterval(() => { let d = new Date; timebar.update(d); |