Reduced spacing

This commit is contained in:
netop:// ウェッブ 2019-01-25 10:11:41 -06:00 committed by GitHub
parent 5ebacee422
commit 4406726b16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ document.querySelectorAll("a[href^='#']").forEach(anchor => {
if (document.getElementById(element)) {
elementOffset = document.getElementById(element).offsetTop - 74;
window.scroll({ top: elementOffset, behavior: "smooth" });
history.replaceState({}, "", `#${element}`); // Add hash to URL bar
history.replaceState({}, "", `#${element}`); // Add hash to URL bar
}
});
});