$(window).scroll(function() { /* some code */ });
var top = $('#filter_wrap').offset().top;
if ($(window).scrollTop() >= top) {
$('#filter_wrap').css({
posiotion: "fixed"
});
} else {
$('#filter_wrap').css({
posiotion: "static"
});
}
var result = null, list = Array.from(document.querySelectorAll('.id-tovara'))
if (!list.length) result = ''
else if (list.length === 1) result = list[0].textContent
else result = "['" + list.map(el=>el.textContent).join("','") + "']"
jQuery(document).ready(function () {
$(document).click(function () {
if(event.target.className != "btn1" && event.target.className != "btn2" ) {
console.log("Кликнута не кнопка")
}
});
});
if(!$(".overlay").hasClass("open")){}
var used=[];
function checkIt(e){
if( !~used.indexOf( this)) used.push( this), e.preventDefault();
}
$('.notsofast').on('click',checkIt);
var used;
$(".categoriesPage .categoryBox .textBox").on("click", function(){
if( used !== this) used = this, e.preventDefault();
}