diff options
author | FChannel <> | 2021-07-31 12:10:31 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-31 12:10:31 -0700 |
commit | 4a9452985a127a53572358c3b86a425a5df616e1 (patch) | |
tree | f83f0a0ee92e8167195f06f286bff28fe892581d /static/ncatalog.html | |
parent | ac288d40da3235b9382d685c9958ad167a758bcd (diff) |
removed javascript causing errors and updated readme with xmpp room
Diffstat (limited to 'static/ncatalog.html')
-rw-r--r-- | static/ncatalog.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/static/ncatalog.html b/static/ncatalog.html index 8ce418a..65a7d84 100644 --- a/static/ncatalog.html +++ b/static/ncatalog.html @@ -44,7 +44,8 @@ <script> media = document.getElementById("media-{{ .Id }}") - if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || (isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}"))){ sensitive = document.getElementById("sensitive-{{ .Id }}") + if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || ({{ isOnion .Id }} && !{{ isOnion $board.Domain }}){ + sensitive = document.getElementById("sensitive-{{ .Id }}") hide = document.getElementById("hide-{{ .Id }}") sensitive.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: block;"; document.getElementById("sensitive-{{ .Id }}").style="display: none;"; document.getElementById("hide-{{ .Id }}").style="display: block; cursor: pointer;"} hide.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: none;"; document.getElementById("sensitive-{{ .Id }}").style="display: block;"; document.getElementById("hide-{{ .Id }}").style="display: none;"} @@ -52,7 +53,7 @@ media.style = "display: none;" } - if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}")) { + if({{ isOnion .Id }} && !{{ isOnion $board.Domain }}) { sensitive = document.getElementById("sensitive-{{ .Id }}") document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance" |