From 6ea7b8deb1554a0451b9d089bf2435cd281774ec Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Sep 2019 19:39:46 +0100 Subject: [PATCH] Another cw test --- epicyon-profile.css | 2 +- webinterface.py | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) 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+='