Compare commits

...

2 commits

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");
}
});
}
}