update mecount style in js
Anirudh Oppiliappan x@icyphox.sh
Thu, 21 Sep 2023 10:49:55 +0300
2 files changed,
2 insertions(+),
1 deletions(-)
M
views/header.html
→
views/header.html
@@ -25,7 +25,7 @@ {{ if .UserInfo }}
<nav> <ul class="easylinks"> <li><a id="homelink" href="/">home</a> - <li><a id="atmelink" href="/atme">@me<span style="padding-left:3px;margin:0;" id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a> + <li><a id="atmelink" href="/atme">@me<span id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a> <li><a href="/account">account</a> <li><a href="/honkers">honkers</a> <li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">{{ .UserInfo.Name }}</a>
M
views/honkpage.js
→
views/honkpage.js
@@ -106,6 +106,7 @@
var mecount = document.getElementById("mecount") if (resp.MeCount) { mecount.innerHTML = resp.MeCount + mecount.style.width = "18px" } else { mecount.innerHTML = "" }