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: