I think you may have a better chance of getting a response if you put your code in a familiar location. (Github, Codepen, JSFiddle, etc) Me, and some others out there, aren’t super comfortable visiting servers we’ve never heard of before.
With that said, I’m going to make a guess that you’re hitting this issue: Navbar hides initial content when jumping to in-page anchor
// -55 compensates for 55px navbar height, modify as needed
window.addEventListener("hashchange", () => scrollBy(0, -55));
But, read that link above to see if there is another solution you prefer. Also, see this related topic: