From 1691df4e77a8679df48934415df98f4029c04933 Mon Sep 17 00:00:00 2001 From: forgejo-actions <> Date: Mon, 8 Jan 2024 16:15:11 +0000 Subject: [PATCH] generated --- js/scroll.js | 22 +++++++++++++--------- public.zip | Bin 769008 -> 769052 bytes 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/js/scroll.js b/js/scroll.js index 738c470..6fd7033 100644 --- a/js/scroll.js +++ b/js/scroll.js @@ -1,12 +1,16 @@ -window.addEventListener("scroll", () => { - var winScroll = document.body.scrollTop || document.documentElement.scrollTop; - var height = document.documentElement.scrollHeight - document.documentElement.clientHeight; - var scrolled = (winScroll / height) * 100; - document.getElementById('progress').style.width = scrolled + "%"; +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; + var scrolled = (winScroll / height) * 100; + document.getElementById('progress').style.width = scrolled + "%"; - const toTop = document.getElementById('totop'); + const toTop = document.getElementById('totop'); - if ((window.scrollY > 0 && !toTop.classList.contains("show")) || (window.scrollY <= 0 && toTop.classList.contains("show"))) { - toTop.classList.toggle("show"); + if ((window.scrollY > 0 && !toTop.classList.contains("show")) || (window.scrollY <= 0 && toTop.classList.contains("show"))) { + toTop.classList.toggle("show"); + } + }); } -}); \ No newline at end of file +} \ No newline at end of file diff --git a/public.zip b/public.zip index ca4fa4e011efb45faedd0d65326e12f104110101..45c80b03180af152eb1eb27ec844dee9762f7480 100644 GIT binary patch delta 2828 zcmZux2~bm46#YrqPYpJ=l)j(%qMhDDYKmIxjrs<7;*z7*7A&dW`n8%!X=~ZUuO8OY z4{Le1B^XB+2Mmhzn*m-6VWZYeexP209?j%mVo=&n;Ki*6y|EKW^u&FO>;?Fk;A4u9 z89wItSl}}aA4__XJ-CuaQA9NO8-(mECOyJ|!*d>?Kb9F#gi#MVG6wPl zBs3Tc?gk~HHL)Xf&U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