✨ (scroll) add param scroll to be able to scroll…
This commit is contained in:
6
main.ts
6
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" })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user