PageSourceSearch

https://www.radiomoto.net/wp-content/themes/covernews/assets/fixed-header-script.js?ver=7.1.2

js radiomoto.net collected 2026-10-02 12:47:59 UTC 1,424 bytes, 60 lines download raw bytes

1jQuery(document).ready(function($){
2
3    // Here You can type your custom JavaScript...
4
5window.onscroll = function() {myFunction()};
6
7var header = document.getElementById("site-navigation");
8var sticky = header.offsetTop;
9
10function myFunction() {
11  if (window.pageYOffset > sticky) {
12    header.classList.add("aft-sticky-navigation");
13  } else {
14    header.classList.remove("aft-sticky-navigation");
15  }
16}
17
18});
19
20jQuery(document).ready(function($){
21
22var didScroll;
23var lastScrollTop = 0;
24var delta = 5;
25var navbarHeight = $('#site-navigation').outerHeight();
26
27$(window).scroll(function(event){
28    didScroll = true;
29});
30
31setInterval(function() {
32    if (didScroll) {
33        hasScrolled();
34        didScroll = false;
35    }
36}, 250);
37
38function hasScrolled() {
39    var st = $(this).scrollTop();
40    
41    // Make sure they scroll more than delta
42    if(Math.abs(lastScrollTop - st) <= delta)
43        return;
44    
45    // If they scrolled down and are past the navbar, add class .nav-up.
46    // This is necessary so you never see what is "behind" the navbar.
47    if (st > lastScrollTop && st > navbarHeight){
48        // Scroll Down
49        $('#site-navigation').removeClass('nav-down').addClass('nav-up');
50    } else {
51        // Scroll Up
52        if(st + $(window).height() < $(document).height()) {
53            $('#site-navigation').removeClass('nav-up').addClass('nav-down');
54        }
55    }
56    
57    lastScrollTop = st;
58}
59
60});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.