Unlock Smarter IT Solutions with Computing Technologies
Ready to improve your IT? Contact us for a free, no-obligation consultation. Experience enhanced security, performance, and support—starting today. Let us help your business thrive!
document.addEventListener("DOMContentLoaded", function () {
const offset = 156; // same as your TOC scroll offset
const { hash } = window.location;
// If the page loads with a hash in the URL
if (hash) {
// Wait a bit to ensure layout/sticky header is ready
setTimeout(() => {
const target = document.querySelector(hash);
if (target) {
const top = target.getBoundingClientRect().top + window.scrollY - offset;
window.scrollTo({ top, behavior: "smooth" });
}
}, 400); // adjust delay if needed
}
});