Files
tripwithbonus/static/v2/js/pages/p_search_route_results.js
2025-02-03 16:45:42 +03:00

19 lines
574 B
JavaScript

$(document).ready(function() {
if (window.innerWidth < 800) {
$(".b_filter_routes").addClass('modal');
return;
}
let header_height = $("#header_bg")[0].offsetHeight;
let _scroll = new scroll({
attach_top: header_height + 20,
top: header_height + 20,
el: $(".b_filter_routes")[0],
recover_el_view: true,
ghost_block:{name: 'route_filters'},
$unnatach_bottom_el: $("footer")[0]
})
_scroll.init()
$('body')[0].onscroll = function() {
_scroll.attachElementWhenScroll();
}
})