Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Jul 10, 2023
1 parent 876722d commit bd0bed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/js/miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function adjustScrollingToId() {
let links = document.querySelectorAll("a[href^='#'].md-nav__link");

function adjustClick() {
let offset = header.offsetHeight;
links.forEach(link => link.addEventListener('click', e => {
e.preventDefault();
let offset = header.offsetHeight
window.scrollTo(0, document.querySelector(link.hash).offsetTop - offset);
}))
}
Expand Down

0 comments on commit bd0bed9

Please sign in to comment.