PageSourceSearch

https://sacra.it/wp-content/themes/lf_tds_custom/js/menu-sticky.js?ver=7.0.6

js sacra.it collected 2026-10-02 13:01:10 UTC 884 bytes, 40 lines download raw bytes

1$(document).ready(function(){
2
3  var header = $("header");
4  var isAPost = $("article");
5  var isAPostLength = isAPost.length;
6  var nav = $('nav');
7
8  if (isAPostLength !== 0) {
9    header.addClass("sticky");
10  }
11
12  window.onscroll = function() {stick()};
13
14  function stick () {
15
16    if (window.pageYOffset >= 80) {
17      header.addClass("sticky");
18      nav.removeClass("navbar-dark");
19      nav.addClass("navbar-light");
20    } else if (isAPostLength !== 0) {
21      header.addClass("sticky");
22      nav.removeClass("navbar-dark");
23      nav.addClass("navbar-light");
24    } else {
25      header.removeClass("sticky");
26      nav.addClass("navbar-dark");
27      nav.removeClass("navbar-light");
28    }
29
30  };
31
32  const it = $('li.wpml-ls-item-it span');
33  const en = $('li.wpml-ls-item-en span');
34
35  $(it).html('IT');
36  $(en).html('EN');
37
38  const firstEl = $('li.wpml-ls-first-item');
39
40});

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.