From 36395c31961c26199fb4f0cde912a110cda72846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 28 Apr 2020 01:49:50 +0200 Subject: Ensured event creation drag and drop works. --- static/script.js | 13 ++++++++----- static/style.css | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/static/script.js b/static/script.js index 5b4a4b99..e6f2737e 100644 --- a/static/script.js +++ b/static/script.js @@ -211,11 +211,14 @@ window.onload = function () { // once a minute for now, could probably be slowed to every 10 minutes window.setInterval(update_current_time_bar, 1000 * 60) - // for (let c of document.getElementsByClassName("events")) { - // c.onmousedown = onmousedownhandler; - // c.onmouseup = onmouseuphandler; - // c.onmousemove = onmousemovehandler; - // } + /* Is event creation active? */ + if (false) { + for (let c of document.getElementsByClassName("events")) { + c.onmousedown = onmousedownhandler; + c.onmouseup = onmouseuphandler; + c.onmousemove = onmousemovehandler; + } + } // for (let e of document.getElementsByClassName("event-inner")) { // e.onclick = toggle_event_pupup; diff --git a/static/style.css b/static/style.css index b692d5b9..8d0197fd 100644 --- a/static/style.css +++ b/static/style.css @@ -560,6 +560,7 @@ along with their colors. .event.generated { background-color: #55FF5550; + transition: none; } .clock-0 { top: calc(100%/24 * 0); } -- cgit v1.2.3