scroll-up button is not there
a button should be present when some one scroll down the page and then it appears so that user cand directly move to the top of the page
and this should be implemented on all pages
i have fixes #28 by adding this.
HTML code to add in every page.
// Scroll btn JavaScript const scrollBtn = document.getElementById("scrollBtn");
window.addEventListener("scroll", () => { if (window.scrollY > 700) { scrollBtn.style.display = "block"; } else { scrollBtn.style.display = "none"; } }); scrollBtn.addEventListener("click", () => { window.scrollTo({ top: 0, behavior: "smooth", }); }); // Scroll btn JavaScript ends
JavaScript Code to add in main.js file.