revert honkpage changse
Anirudh Oppiliappan x@icyphox.sh
Sun, 03 Mar 2024 09:23:05 +0200
2 files changed,
8 insertions(+),
12 deletions(-)
M
views/honkpage.html
→
views/honkpage.html
@@ -4,15 +4,11 @@ <div class="info" id="infobox">
<div id="srvmsg"> <div> {{ if .Name }} -<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span> +<p>{{ .Name }} <span class="left1em"><a href="/u/{{ .Name }}/rss">rss</a></span> <p>{{ .WhatAbout }} {{ end }} -<p>{{ .ServerMessage }} - -<form action="/q" method="GET"> -<input type="text" name="q" autocomplete=off size=10 id="searchbox" placeholder="search"> -</form> - +{{ .ServerMessage }} +</div> </div> {{ if .HonkCSRF }} {{ template "honkform.html" . }}@@ -23,7 +19,7 @@ <script src="/local.js{{ .LocalJSParam }}" defer></script>
{{ end }} </div> {{ if and .HonkCSRF (not .IsPreview) }} -<div id="refreshbox"> +<div class="info" id="refreshbox"> <p><button id="honkrefresher" class="refresh">refresh</button><span></span> <button id="newerscroller" class="scrolldown">scroll down</button> </div>
M
views/honkpage.js
→
views/honkpage.js
@@ -119,10 +119,10 @@ chatcount.innerHTML = ""
} var srvel = document.getElementById("srvmsg") - // while (srvel.children[0]) { - // srvel.children[0].remove() - // } - // srvel.prepend(srvmsg) + while (srvel.children[0]) { + srvel.children[0].remove() + } + srvel.prepend(srvmsg) var frontload = true if (curpagestate.name == "convoy") {