smooth scroll

This commit is contained in:
Ted Unangst 2023-08-30 03:03:10 -04:00
parent 8380a32139
commit 99aed03a36
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ var lehonkbutton = document.getElementById("honkingtime")
function oldestnewest(btn) { function oldestnewest(btn) {
var els = document.getElementsByClassName("glow") var els = document.getElementsByClassName("glow")
if (els.length) { if (els.length) {
els[els.length-1].scrollIntoView() els[els.length-1].scrollIntoView({ behavior: "smooth" })
} }
} }
function removeglow() { function removeglow() {