aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-05-14 21:24:24 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-05-14 21:24:24 -0500
commit372756dcfaf98e2e1995c69d563695805b24e933 (patch)
tree804ae363f5a201722b0a9c44c32f744ca8fb2fc9 /static
parent7155ffcb5ef169bdc4e7cccc475ce83102edc329 (diff)
downloadembedtube-372756dcfaf98e2e1995c69d563695805b24e933.tar.xz
embedtube-372756dcfaf98e2e1995c69d563695805b24e933.zip
return to top of page after clicking timestamp
Diffstat (limited to 'static')
-rw-r--r--static/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/index.js b/static/index.js
index b852619..ef3a097 100644
--- a/static/index.js
+++ b/static/index.js
@@ -179,6 +179,7 @@ function timestampLinkClick(e) {
return
player.seekTo(t)
window.history.replaceState({}, "", url) /* reflect time in url bar */
+ window.scrollTo(0, 0) /* return to page top */
}
document.addEventListener("click", timestampLinkClick)