From 8c01aac1a65aa05029ae7d9a4751ab25f886da66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 4 May 2020 12:03:40 +0200 Subject: Re-add removal of href on event with js. --- static/script.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- cgit v1.2.3