blob: e846b90bd663963e243446d2a5d6c8cffdf55ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function make_results_header_sticky( ) {
element = $(".results-header-actions");
var pos = element.position();
$(window).scroll( function() {
var windowPos = $(window).scrollTop();
if (windowPos > pos.top) {
element.addClass("sticky");
} else {
element.removeClass("sticky");
}
});
}
|