PageSourceSearch

https://www.settimananews.it/wp-content/themes/mts_interactive/js/sticky.js?ver=4.5.33

js settimananews.it collected 2026-09-24 09:45:23 UTC 1,050 bytes, 37 lines download raw bytes

1jQuery(document).ready(function() {
2	function isScrolledTo(elem,top) {
3		var docViewTop = jQuery(window).scrollTop(); //num of pixels hidden above current screen
4		var docViewBottom = docViewTop + jQuery(window).height();
5
6		var elemTop = jQuery(elem).offset().top - top; //num of pixels above the elem
7		var elemBottom = elemTop + jQuery(elem).height();
8
9		return ((elemTop <= docViewTop));
10	}
11
12	function stickThatMenu(sticky,catcher,top) {
13		if(isScrolledTo(sticky,top)) {
14			sticky.addClass('sticky-navigation-active');
15			catcher.height(sticky.height());
16		} 
17		var stopHeight = catcher.offset().top;
18		if ( stopHeight > sticky.offset().top) {
19			sticky.removeClass('sticky-navigation-active');
20			catcher.height(0);
21		}
22	}
23
24	var catcher = jQuery('#catcher'),
25		sticky  = jQuery('.sticky-navigation'),
26		bodyTop = jQuery('body').offset().top;
27
28	if ( sticky.length ) {
29	
30		jQuery(window).scroll(function() {
31			stickThatMenu(sticky,catcher,bodyTop);
32		});
33		jQuery(window).resize(function() {
34			stickThatMenu(sticky,catcher,bodyTop);
35		});
36	}
37});

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.