aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-21 00:34:59 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-21 00:34:59 +0100
commit3fbfd2b20adb64c200f6fbae948cb46fad287766 (patch)
tree577336e10c9d31f0146d2b7018816e0045ce63c0 /static/script.js
parentReintroduce horizontal-time-markers. (diff)
downloadcalp-3fbfd2b20adb64c200f6fbae948cb46fad287766.tar.gz
calp-3fbfd2b20adb64c200f6fbae948cb46fad287766.tar.xz
Add rudementary popup system.
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index bc20cb07..dcc7285f 100644
--- a/static/script.js
+++ b/static/script.js
@@ -95,8 +95,15 @@ function update_current_time_bar () {
event_area.append(bar_object)
}
+function toggle_event_pupup () {
+ console.log(this);
+ this.getElementsByClassName("popup")[0].classList.toggle("show");
+}
+
window.onload = function () {
+ console.log("Running");
+ /*
update_current_time_bar()
// once a minute for now, could probably be slowed to every 10 minutes
window.setInterval(update_current_time_bar, 1000 * 60)
@@ -106,4 +113,9 @@ window.onload = function () {
c.onmouseup = onmouseuphandler;
c.onmousemove = onmousemovehandler;
}
+ */
+
+ for (let e of document.getElementsByClassName("event-inner")) {
+ e.onclick = toggle_event_pupup;
+ }
}