aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-09-30 01:47:38 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-09-30 01:47:38 +0200
commite28b54810bb42b21a069a1257cf5e59e06c735a0 (patch)
tree8a6c9722ee761a48a0853e16628ba00558f41a20 /static/script.js
parentStart rework on js setup. (diff)
downloadcalp-e28b54810bb42b21a069a1257cf5e59e06c735a0.tar.gz
calp-e28b54810bb42b21a069a1257cf5e59e06c735a0.tar.xz
Replace today-button with web component.
Diffstat (limited to '')
-rw-r--r--static/script.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/static/script.js b/static/script.js
index 05ae61c5..580ee520 100644
--- a/static/script.js
+++ b/static/script.js
@@ -82,7 +82,7 @@
// }
//
// /*
-// round_to: what start and end times should round to when dragging, in fractions
+// round_to: what start and end times should round to when dragging, in fractionsb
// of the width of the containing container.
//
// TODO limit this to only continue when on the intended event_container.
@@ -258,11 +258,6 @@ window.addEventListener('load', function () {
// 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"),
- (e, d) => e.href = d.format('~Y-~m-~d') + ".html"
- );
-
const sch = new SmallcalCellHighlight(
document.querySelector('.small-calendar'))
@@ -273,7 +268,6 @@ window.addEventListener('load', function () {
window.setInterval(() => {
let d = new Date;
timebar.update(d);
- button_updater.update(d);
sch.update(d);
}, 1000 * 60);
@@ -372,7 +366,6 @@ window.addEventListener('load', function () {
href: target_href,
innerHTML: gotodatebtn.innerHTML,
});
- document.getElementById("today-button").href = target_href;
gotodatebtn.replaceWith(golink);
document.querySelector("#jump-to input[name='date']").onchange = function () {