{
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
isWindowScrolled = (scrollTop < 150) ? false : true
if (isMenuOpen) return
setTimeout(function(){
if (scrollTop > lastScrollTop && scrollTop > 50){
isHeaderHidden = true
} else {
isHeaderHidden = false
}
lastScrollTop = scrollTop;
}, 100);
}"
>