diff --git a/main.ts b/main.ts index 1c3d738..19b832b 100644 --- a/main.ts +++ b/main.ts @@ -41,3 +41,9 @@ if (textHide === "hide") { const focusables = document.querySelectorAll(".focusable") focusables.forEach((focusable) => focusable.classList.add("text-hide")) } + +const scrollParam = params.get("scroll") + +if (scrollParam === "end") { + window.scrollTo({ top: document.body.scrollHeight, behavior: "smooth" }) +}