Remove non-working javascript

master
Bob Mottram 2019-08-25 14:36:43 +01:00
parent f2c6769c90
commit c2920629ed
1 changed files with 12 additions and 12 deletions

View File

@ -991,19 +991,19 @@ def clickToDropDownScript() -> str:
script= \ script= \
'function dropdown() {' \ 'function dropdown() {' \
' document.getElementById("myDropdown").classList.toggle("show");' \ ' 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 return script
def contentWarningScript() -> str: def contentWarningScript() -> str: