diff --git a/epicyon-profile.css b/epicyon-profile.css index 6ddf12b4..67f1781c 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -57,7 +57,7 @@ a:link { margin: 5px; } -.hidden { +.cwText { display: none; } diff --git a/webinterface.py b/webinterface.py index 31aabfbe..226f5980 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1188,8 +1188,13 @@ def contentWarningScript() -> str: """Returns a script used for content warnings """ script= \ - 'function toggler(divId) {' \ - ' $("#" + divId).toggle();' \ + 'function showContentWarning(postID) {' \ + ' var x = document.getElementById(postID);' \ + ' if (x.style.display !== "block") {' \ + ' x.style.display = "block";' \ + ' } else {' \ + ' x.style.display = "none";' \ + ' }' \ '}' return script @@ -1685,10 +1690,8 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ containerClass='container report' else: contentStr+='Sensitive ' - #contentStr+='SHOW MORE' - #contentStr+='' - contentStr+='SHOW MORE' - contentStr+='