From 645ba3bfa969ea195b60135b4dffb6b194bed512 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 15 Nov 2019 15:54:24 -0500 Subject: [PATCH] add a scroll down button --- docs/changelog.txt | 2 ++ views/honkpage.html | 1 + views/honkpage.js | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index 7c682c3..f750a3c 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,5 +1,7 @@ changelog +-- next + -- 0.8.2 ++ Import command to preserve those embarssassing old posts from Twitter. diff --git a/views/honkpage.html b/views/honkpage.html index 342e1bb..b3aeb5c 100644 --- a/views/honkpage.html +++ b/views/honkpage.html @@ -15,6 +15,7 @@ {{ if and .HonkCSRF (not .IsPreview) }}

+

{{ end }}
diff --git a/views/honkpage.js b/views/honkpage.js index bba7591..d2fb8b2 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -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) {