diff options
-rw-r--r-- | static/faq.html | 2 | ||||
-rw-r--r-- | static/onion.png | bin | 0 -> 107039 bytes | |||
-rw-r--r-- | static/posts.html | 6 |
3 files changed, 3 insertions, 5 deletions
diff --git a/static/faq.html b/static/faq.html index 12bf284..2365c3e 100644 --- a/static/faq.html +++ b/static/faq.html @@ -37,7 +37,7 @@ <p>coming soon(tm).</p> <h4>Server Version</h4> - <p>v0.0.2</p> + <p>v0.0.3</p> </div> <div style="width: 500px; margin:0 auto; margin-top: 50px; text-align: center;"> <a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a> diff --git a/static/onion.png b/static/onion.png Binary files differnew file mode 100644 index 0000000..0cb9527 --- /dev/null +++ b/static/onion.png diff --git a/static/posts.html b/static/posts.html index 194c273..a086bdb 100644 --- a/static/posts.html +++ b/static/posts.html @@ -34,7 +34,7 @@ if(isOnion("{{ .Id }}")) { sensitive = document.getElementById("sensitive-{{ .Id }}") - document.getElementById("sensitive-img-{{ .Id }}").src = "/static/clover.png" + document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Node" 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;"} @@ -107,10 +107,8 @@ <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a> {{ end }} <span style="display: block;">File <a id="{{ .Id }}-img" href="{{ (index .Attachment 0).Href}}">{{ (index .Attachment 0).Name }}</a> <span id="{{ .Id }}-size">({{ (index .Attachment 0).Size }})</span></span> - {{ if and .Sensitive $board.Actor.Restricted }} <div id="hide-{{ .Id }}" style="display: none;">[Hide]</div> <div id="sensitive-{{ .Id }}" style="display: none;"><div style="position: relative; text-align: center;"><img style="float: left; margin-right: 10px; margin-bottom: 10px; max-width: 250px; max-height: 250px;" src="/static/sensitive.png"><div style="width: 240px; position: absolute; margin-top: 110px; padding: 5px; background-color: black; color: white; cursor: default; ">NSFW Content</div></div></div> - {{ end }} <div> </div> <div id="media-{{ .Id }}" sensitive="0"></div> <script> @@ -127,7 +125,7 @@ if(isOnion("{{ .Id }}")) { sensitive = document.getElementById("sensitive-{{ .Id }}") - document.getElementById("sensitive-img-{{ .Id }}").src = "/static/clover.png" + document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Node" 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;"} |