var $header = $('.header,.main');
var scrollPos = 0;
window.addEventListener('scroll', () => {
/* let st = $(window).scrollTop();
let scrollDown = true;
if ($page_index && (document.body.getBoundingClientRect()).top > scrollPos) {
scrollDown = false;
}*/
if ($(window).scrollTop() > 480 /*&& scrollDown*/) {
$header.addClass('scroll');
} else {
$header.removeClass('scroll');
}
scrollPos = (document.body.getBoundingClientRect()).top;
});