From 969e89c9e0ed3331b4254916f78d4ac9772e4c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 11 Jul 2020 01:55:30 +0200 Subject: Change bar class to eventlike. This allows binding of properties and similar to work better, since they can simply target everything that is .event. --- static/script.js | 2 +- static/style.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/script.js b/static/script.js index cb914e54..f99c4ef2 100644 --- a/static/script.js +++ b/static/script.js @@ -185,7 +185,7 @@ function update_current_time_bar () { bar_object.parentNode.removeChild(bar_object) } else { bar_object = document.createElement("div") - bar_object.className = "event current-time" + bar_object.className = "eventlike current-time" bar_object.id = "bar" } diff --git a/static/style.css b/static/style.css index 23af6830..86444fc3 100644 --- a/static/style.css +++ b/static/style.css @@ -439,7 +439,7 @@ along with their colors. * This makes the borders of the object be part of the size. * Making placing it on the correct line much simpler. */ -.clock, .days .event { +.clock, .days .event, .eventlike { position: absolute; box-sizing: border-box; margin: 0; -- cgit v1.2.3