PageSourceSearch

https://www.aquadulci.com/wp-content/themes/aquadulci/js/sticky-menu-home.js

js aquadulci.com collected 2026-09-26 15:25:54 UTC 2,585 bytes, 92 lines download raw bytes

1$(window).resize(function() {
2   stickySidebar = $(window).height();
3});
4
5$(window).trigger('resize');
6
7
8
9// Sticky Header for different sizes
10$(document).ready(function() {
11    function checkWidth() {
12        var windowSize = $(window).width();
13        if (windowSize <= 320) {
14		//Sticky Header        
15		$(window).scroll(function() { 		
16		if ($(window).scrollTop() >= stickySidebar) {
17		$('#header').addClass('navbar-fixed-top');
18		$('.spacer-header').css('margin-bottom', '65px');
19		$('#splash').css('opacity', '0');
20		$('#splash').css('visibility', 'hidden');
21		}  else {
22		$('#header').removeClass('navbar-fixed-top');
23		$('.spacer-header').css('margin-bottom','0px');
24		$('#splash').css('opacity', '1');
25		$('#splash').css('visibility', 'visible');
26		}});
27		// End Sticky Header 
28     //End if   
29	 }
30		
31		else if (windowSize >= 321 && windowSize <= 767) {       
32		//Sticky Header 
33		$(window).scroll(function() { 		
34		if ($(window).scrollTop() > stickySidebar) {
35		$('#header').addClass('navbar-fixed-top');
36		$('.spacer-header').css('margin-bottom', '75px');
37		$('#splash').css('opacity', '0');
38		$('#splash').css('visibility', 'hidden');
39		}  else {
40		$('#header').removeClass('navbar-fixed-top');
41		$('.spacer-header').css('margin-bottom','0px');
42		$('#splash').css('opacity', '1');
43		$('#splash').css('visibility', 'visible');
44		}});
45		// End Sticky Header
46 
47     //End if   
48	 }
49		
50        else if (windowSize > 767) {
51		//Sticky Header  
52		$(window).scroll(function() { 		
53		if ($(window).scrollTop() > stickySidebar) {
54		$('#header').addClass('navbar-fixed-top');
55		$('.spacer-header').css('margin-bottom', '110px');
56		$('#splash').css('opacity', '0');
57		$('#splash').css('visibility', 'hidden');
58		}  else {
59		$('#header').removeClass('navbar-fixed-top');
60		$('.spacer-header').css('margin-bottom','0px');
61		$('#splash').css('opacity', '1');
62		$('#splash').css('visibility', 'visible');
63		}});
64		// End Sticky Header
65     //End if   
66	 }
67       
68	    else {     
69		//Sticky Header
70		$(window).scroll(function() { 		
71		if ($(window).scrollTop() > stickySidebar) {
72		$('#header').addClass('navbar-fixed-top');
73		$('.spacer-header').css('margin-bottom', '110px');
74		$('#splash').css('opacity', '0');
75		$('#splash').css('visibility', 'hidden');
76		}  else {
77		$('#header').removeClass('navbar-fixed-top');
78		$('.spacer-header').css('margin-bottom','0px');
79		$('#splash').css('opacity', '1');
80		$('#splash').css('visibility', 'visible');
81		}});
82		// End Sticky Header
83     //End if   
84	 }
85	 
86    }
87    // Execute on load
88    checkWidth();
89    // Bind event listener
90		
91});
92

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.