const anchors = document.querySelectorAll('a[href*="#"]');
for( let anchor of anchors) {
anchor.addEventListener("click", function(e){
e.preventDefault();
const blockID = anchor.getAttribute('href')
document.querySelector('' + blockID).scrollIntoView({
behavior: "smooth",
block: "start",
})
})
}
window.scrollBy({
top: -10,
left: 0,
behavior: 'smooth'
}); //