« Back to History
smooth-scroll.min.js
|
20260722_120325.php
Initial Domain Snapshot
Copy Code
const links=document.querySelectorAll("a");if(links)for(const a of links)""!==a.hash&&a.addEventListener("click",clickHandler);function clickHandler(e){e.preventDefault();e=this.getAttribute("href"),e=document.querySelector(e).offsetTop;scroll({top:e,behavior:"smooth"})}