');
}
});
if (typeof jQuery.fn.slider === 'undefined') {
jQuery.getScript('catalog/view/javascript/jquery-ui.slider.min.js', function(){
def.resolve();
jQuery('head').append('
');
BrainyFilter.init();
});
} else {
def.resolve();
BrainyFilter.init();
}
}
});
BrainyFilter.sliderValues = BrainyFilter.sliderValues || {};
});
if (window.innerWidth < 768) {
window.addEventListener("load", (event) => {
/** Patch patch patch **/
var blck = document.querySelector('.bf-panel-wrapper .box');
blck.style.display = 'block';
h1 = $('header').css('height');
h2 = $('.category-page .category-title').css('height');
h3 = 10;
th = parseInt(h1)+parseInt(h2)+h3;
th = th.toString() + 'px';
var elm = document.querySelector('.bf-panel-wrapper.bf-responsive');
elm.style.top = th;
});
}