aboutsummaryrefslogtreecommitdiff
path: root/static/npost.html
diff options
context:
space:
mode:
authorFChannel0 <77419041+FChannel0@users.noreply.github.com>2021-07-03 16:17:15 -0700
committerGitHub <noreply@github.com>2021-07-03 16:17:15 -0700
commita3f45e6a5cb85a43364756bd28a14936d1d95ae7 (patch)
tree248da60cd32e9b65b96c9e89e2cc3b804d27e63e /static/npost.html
parent875ee4c53d79918ac87d1ce3e208ad27db6c0a90 (diff)
parent8e3e745c2a8e9f1db6d15a67829b2aa320731c3f (diff)
Merge pull request #32 from the-sageman/autoreload
Implement auto-reload
Diffstat (limited to 'static/npost.html')
-rw-r--r--static/npost.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/npost.html b/static/npost.html
index 740018b..3df4090 100644
--- a/static/npost.html
+++ b/static/npost.html
@@ -17,6 +17,7 @@
{{ end }}
<script src="/static/js/posts.js"></script>
+<script src="/static/js/timer.js"></script>
{{ end }}
{{ define "content" }}
@@ -39,6 +40,7 @@
<li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li>
<li style="display: inline"><a id="bottom" href="#top">[Top]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
+ <li style="display: inline"><input id="autoreload-checkbox" type="checkbox" onclick="autoTimer()"> Auto refresh <span id="autoreload-countdown" style="visibility: hidden;">0</span></li>
</ul>
{{ $replies := (index .Posts 0).Replies }}
<span style="float: right;">{{ $replies.TotalItems }} / {{ $replies.TotalImgs }}</span>