generated

This commit is contained in:
forgejo-actions 2024-01-08 16:15:11 +00:00
parent 818c0d8f09
commit 1691df4e77
2 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,5 @@
window.onload = (event) => {
if ((document.documentElement.scrollHeight / window.screen.availHeight ) > 1.5) {
window.addEventListener("scroll", () => {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
@ -10,3 +12,5 @@ window.addEventListener("scroll", () => {
toTop.classList.toggle("show");
}
});
}
}

Binary file not shown.