0.0.135 scroll search route results
This commit is contained in:
15
static/v2/js/pages/p_search_route_results.js
Normal file
15
static/v2/js/pages/p_search_route_results.js
Normal 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();
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user