aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-11 01:55:30 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-11 02:05:00 +0200
commit969e89c9e0ed3331b4254916f78d4ac9772e4c63 (patch)
treefab49986e21e8190124f1d9c49ac0bdb951e8e78
parentTODO tz. (diff)
downloadcalp-969e89c9e0ed3331b4254916f78d4ac9772e4c63.tar.gz
calp-969e89c9e0ed3331b4254916f78d4ac9772e4c63.tar.xz
Change bar class to eventlike.
This allows binding of properties and similar to work better, since they can simply target everything that is .event.
-rw-r--r--static/script.js2
-rw-r--r--static/style.css2
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;