0.0.135 scroll search route results

This commit is contained in:
SBD
2025-01-25 21:37:23 +03:00
parent cd55111003
commit ec55fa787f
5 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
$(document).ready(function() {
let header_height = $("#header_bg")[0].offsetHeight;
let _scroll = new scroll({
attach_top: header_height + 10,
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();
}
})