...

Duggan v. BDM Association Inc.

window.addEventListener("load", function () { if (location.hash) { const target = document.querySelector(location.hash); if (!target) return; setTimeout(() => { const header = document.querySelector("header"); const headerHeight = header ? header.offsetHeight : 0; const y = target.getBoundingClientRect().top + window.pageYOffset - headerHeight; window.scrollTo({ top: y, behavior: "auto" }); }, 60); } });