aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/script.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index 579f4980..a172a94f 100644
--- a/static/script.js
+++ b/static/script.js
@@ -186,6 +186,15 @@ window.onload = function () {
}
}
+ /* Popup script replaces need for anchors to events.
+ On mobile they also have the problem that they make
+ the whole page scroll there.
+ */
+ for (let el of document.getElementsByClassName("event")) {
+ el.parentElement.removeAttribute("href");
+
+ }
+
document.onkeydown = function (evt) {
evt = evt || window.event;
if (! evt.key) return;