window.addEventListener('scroll', e => {
let scrollHeight = window.pageYOffset;
let scrollHeight2 = scrollHeight+300;
console.log(scrollHeight);
console.log(scrollHeight2);
if (scrollHeight < scrollHeight+300) {
$('.jq_search').hide();
}
});