mirror of https://gitlab.com/bashrc2/epicyon
Remove non-working javascript
parent
f2c6769c90
commit
c2920629ed
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue