From c2920629ed975e288d0b64f99e71b7a34c6b963f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Aug 2019 14:36:43 +0100 Subject: [PATCH] Remove non-working javascript --- webinterface.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/webinterface.py b/webinterface.py index 852848511..882f9395c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -991,19 +991,19 @@ def clickToDropDownScript() -> str: script= \ 'function dropdown() {' \ ' document.getElementById("myDropdown").classList.toggle("show");' \ - '}' \ - 'window.onclick = function(event) {' \ - " if (!event.target.matches('.dropbtn')) {" \ - ' var dropdowns = document.getElementsByClassName("dropdown-content");' \ - ' var i;' \ - ' for (i = 0; i < dropdowns.length; i++) {' \ - ' var openDropdown = dropdowns[i];' \ - " if (openDropdown.classList.contains('show')) {" \ - " openDropdown.classList.remove('show');" \ - ' }' \ - ' }' \ - ' }' \ '}' + #'window.onclick = function(event) {' \ + #" if (!event.target.matches('.dropbtn')) {" \ + #' var dropdowns = document.getElementsByClassName("dropdown-content");' \ + #' var i;' \ + #' for (i = 0; i < dropdowns.length; i++) {' \ + #' var openDropdown = dropdowns[i];' \ + #" if (openDropdown.classList.contains('show')) {" \ + #" openDropdown.classList.remove('show');" \ + #' }' \ + #' }' \ + #' }' \ + #'}' return script def contentWarningScript() -> str: