window.addEventListener('load', function () { history.scrollRestoration = 'manual'; setTimeout(() => { window.scrollTo(0, 0); document.body.scrollTop = 0; document.documentElement.scrollTop = 0; }, 10); AOS.init({ duration: 800, once: true, }); // Lenis Scroll // lenisScroll(); // Header Event headerEvent(); }) function prevPage(seq) { if (seq === 0) { alert("첫번째 페이지입니다."); return false; } location.href = "./view.php?seq=" + seq; } function nextPage(seq) { if (seq === 0) { alert("마지막 페이지입니다."); return false; } location.href = "./view.php?seq=" + seq; }