diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-05-14 21:24:24 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-05-14 21:24:24 -0500 |
| commit | 372756dcfaf98e2e1995c69d563695805b24e933 (patch) | |
| tree | 804ae363f5a201722b0a9c44c32f744ca8fb2fc9 /static | |
| parent | 7155ffcb5ef169bdc4e7cccc475ce83102edc329 (diff) | |
| download | embedtube-372756dcfaf98e2e1995c69d563695805b24e933.tar.xz embedtube-372756dcfaf98e2e1995c69d563695805b24e933.zip | |
return to top of page after clicking timestamp
Diffstat (limited to 'static')
| -rw-r--r-- | static/index.js | 1 |
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) |
