all repos — honk @ 945248ba00fc31554841e5f35381d7db03230a30

my fork of honk

revert honkpage changse
Anirudh Oppiliappan x@icyphox.sh
Sun, 03 Mar 2024 09:23:05 +0200
commit

945248ba00fc31554841e5f35381d7db03230a30

parent

b43fcd6fabcc6e407a4bf0374ffcea7cc3a89b7f

2 files changed, 8 insertions(+), 12 deletions(-)

jump to
M views/honkpage.htmlviews/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.jsviews/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") {