Thank you!
window.onscroll = function() {myFunction()};var navbar = document.querySelector(".main-header-bar-wrap");var sticky = navbar.offsetTop;function myFunction() { if (window.pageYOffset >= sticky) { navbar.classList.add("sticky")} else {navbar.classList.remove("sticky");}}
Thank you!