add a scroll down button
This commit is contained in:
parent
008a4d1284
commit
645ba3bfa9
|
@ -1,5 +1,7 @@
|
||||||
changelog
|
changelog
|
||||||
|
|
||||||
|
-- next
|
||||||
|
|
||||||
-- 0.8.2
|
-- 0.8.2
|
||||||
|
|
||||||
++ Import command to preserve those embarssassing old posts from Twitter.
|
++ Import command to preserve those embarssassing old posts from Twitter.
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
{{ if and .HonkCSRF (not .IsPreview) }}
|
{{ if and .HonkCSRF (not .IsPreview) }}
|
||||||
<div class="info" id="refreshbox">
|
<div class="info" id="refreshbox">
|
||||||
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
|
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
|
||||||
|
<button onclick="oldestnewest(this)">scroll down</button>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div id="honksonpage">
|
<div id="honksonpage">
|
||||||
|
|
|
@ -67,6 +67,12 @@ function flogit(el, how, xid) {
|
||||||
var lehonkform = document.getElementById("honkform")
|
var lehonkform = document.getElementById("honkform")
|
||||||
var lehonkbutton = document.getElementById("honkingtime")
|
var lehonkbutton = document.getElementById("honkingtime")
|
||||||
|
|
||||||
|
function oldestnewest(btn) {
|
||||||
|
var els = document.getElementsByClassName("glow")
|
||||||
|
if (els.length) {
|
||||||
|
els[els.length-1].scrollIntoView()
|
||||||
|
}
|
||||||
|
}
|
||||||
function removeglow() {
|
function removeglow() {
|
||||||
var els = document.getElementsByClassName("glow")
|
var els = document.getElementsByClassName("glow")
|
||||||
while (els.length) {
|
while (els.length) {
|
||||||
|
|
Loading…
Reference in New Issue