PageSourceSearch

https://domforte.pl/wp-content/themes/settlements-theme/assets/js/component_widgets.js

js domforte.pl collected 2026-09-26 08:02:05 UTC 1,073 bytes, 47 lines download raw bytes

1jQuery(document).ready(function ($) {
2  //Widgety
3  var didScroll;
4  var lastScrollTop = 0;
5  var delta = 0;
6  var navbarHeight = $('#ikony_fix').outerHeight();
7
8  $(window).scroll(function (event) {
9    didScroll = true;
10  });
11
12  setInterval(function () {
13    if (didScroll) {
14      hasScrolled();
15      didScroll = false;
16    }
17  }, 250);
18
19  function hasScrolled() {
20    var st = $(this).scrollTop();
21
22    if (Math.abs(lastScrollTop - st) <= delta) {
23      return;
24    }
25
26    if (st > lastScrollTop && st > navbarHeight) {
27      $('#ikony_fix').removeClass('nav-down').addClass('nav-up');
28    }
29    else {
30      if (st + $(window).height() < $(document).height()) {
31        $('#ikony_fix').removeClass('nav-up').addClass('nav-down');
32      }
33    }
34
35    lastScrollTop = st;
36  }
37});
38
39jQuery(document).ready(function($) {
40 jQuery('#ikony_fix2').click(function () {
41  if(jQuery('#ikony_fix2').hasClass('active')){
42    jQuery('#ikony_fix2').removeClass('active')
43  }else{
44    jQuery('#ikony_fix2').addClass('active');
45  }
46 });
47});

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.