mirror of https://gitlab.com/bashrc2/epicyon
cw script
parent
9084c9d906
commit
af403dd253
|
@ -1167,9 +1167,6 @@ def clickToDropDownScript() -> str:
|
||||||
"""Function run onclick to create a dropdown
|
"""Function run onclick to create a dropdown
|
||||||
"""
|
"""
|
||||||
script= \
|
script= \
|
||||||
'function toggler(divId) {' \
|
|
||||||
' $("#" + divId).toggle();' \
|
|
||||||
'}' \
|
|
||||||
'function dropdown() {' \
|
'function dropdown() {' \
|
||||||
' document.getElementById("myDropdown").classList.toggle("show");' \
|
' document.getElementById("myDropdown").classList.toggle("show");' \
|
||||||
'}'
|
'}'
|
||||||
|
@ -1191,13 +1188,8 @@ def contentWarningScript() -> str:
|
||||||
"""Returns a script used for content warnings
|
"""Returns a script used for content warnings
|
||||||
"""
|
"""
|
||||||
script= \
|
script= \
|
||||||
'function showContentWarning(postID) {' \
|
'function toggler(divId) {' \
|
||||||
' var x = document.getElementById(postID);' \
|
' $("#" + divId).toggle();' \
|
||||||
' if (x.style.display === "none") {' \
|
|
||||||
' x.style.display = "block";' \
|
|
||||||
' } else {' \
|
|
||||||
' x.style.display = "none";' \
|
|
||||||
' }' \
|
|
||||||
'}'
|
'}'
|
||||||
return script
|
return script
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue