This commit is contained in:
Ted Unangst 2019-11-15 17:25:43 -05:00
commit a8344470b8
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,7 @@
changelog
-- next
-- 0.8.2
++ Import command to preserve those embarssassing old posts from Twitter.

View File

@ -15,6 +15,7 @@
{{ if and .HonkCSRF (not .IsPreview) }}
<div class="info" id="refreshbox">
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
<button onclick="oldestnewest(this)">scroll down</button>
</div>
{{ end }}
<div id="honksonpage">

View File

@ -67,6 +67,12 @@ function flogit(el, how, xid) {
var lehonkform = document.getElementById("honkform")
var lehonkbutton = document.getElementById("honkingtime")
function oldestnewest(btn) {
var els = document.getElementsByClassName("glow")
if (els.length) {
els[els.length-1].scrollIntoView()
}
}
function removeglow() {
var els = document.getElementsByClassName("glow")
while (els.length) {