all repos — honk @ f6841be8c997c563df8d94eb125b5b6b3cfa196f

my fork of honk

m
Ted Unangst tedu@tedunangst.com
Fri, 15 Nov 2019 17:25:43 -0500
commit

f6841be8c997c563df8d94eb125b5b6b3cfa196f

parent

e848ded8c2e0be24d6f63cddc7dc7a074f2b2641

3 files changed, 9 insertions(+), 0 deletions(-)

jump to
M docs/changelog.txtdocs/changelog.txt

@@ -1,5 +1,7 @@

changelog +-- next + -- 0.8.2 ++ Import command to preserve those embarssassing old posts from Twitter.
M views/honkpage.htmlviews/honkpage.html

@@ -15,6 +15,7 @@ </div>

{{ 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">
M views/honkpage.jsviews/honkpage.js

@@ -67,6 +67,12 @@

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) {