PageSourceSearch

https://stanley-wallacelaw.com/wp-content/themes/stanley-theme/js/custom.js

js stanley-wallacelaw.com collected 2026-10-08 03:28:05 UTC 2,864 bytes, 134 lines download raw bytes

1
2 
3jQuery(document).ready(function() {
4	jQuery('.dropdown-toggle').click(function() {
5		var location = jQuery(this).attr('href');
6		window.location.href = location;
7		return false;
8	});
9});
10
11jQuery(document).ready(function(){
12	
13		if(jQuery('.service-carousel').length){
14		var owl = jQuery(".service-carousel");
15		owl.owlCarousel({ 
16		 autoPlay: 15000, //Set AutoPlay to 3 seconds
17		 rewindNav:true,		
18		  itemsCustom : [
19		  [0, 1],
20		  [450, 1],
21		  [600, 1],
22		  [800, 1],
23		  [1000, 3],
24		  [1200, 4],
25		  [1300, 5],
26		  [1440, 5]
27		  ],
28		  navigation : true
29
30		});
31	  } 		
32
33	});	 
34
35jQuery(document).ready(function(){
36	
37		if(jQuery('.inner-service-carousel').length){
38		var owl = jQuery(".inner-service-carousel");
39		owl.owlCarousel({ 
40		 autoPlay: 15000, //Set AutoPlay to 3 seconds		
41		 rewindNav:false,
42		  itemsCustom : [
43		  [0, 1],
44		  [450, 1],
45		  [600, 1],
46		  [800, 1],
47		  [1000, 3],
48		  [1200, 4],
49		  [1300, 5],
50		  [1440, 5]
51		  ],
52		  navigation : true
53
54		});
55	  } 		
56
57	});	 	
58	
59	
60	
61	
62	
63jQuery(document).ready(function(){
64		var singleitem;
65		if (jQuery(window).width() < 800) {
66		   singleitem = true;
67		}		
68		else{
69			singleitem = false;
70		}
71		if(jQuery('.testimonial-carousel').length){
72		var owl = jQuery(".testimonial-carousel");
73		owl.owlCarousel({ 
74		 autoPlay: 15000, //Set AutoPlay to 3 seconds
75		  autoHeight : true,
76		  singleItem : singleitem,
77		  itemsCustom : [
78		  [0, 1],
79		  [450, 1],
80		  [600, 1],
81		  [800, 1],
82		  [1000, 2],
83		  [1200, 2],
84		  [1300, 2],
85		  [1440, 2]
86		  ],
87		  navigation : true
88
89		});
90	  } 		
91
92	  
93	});	 	
94		
95	jQuery().ready(function(){
96	con_stab();
97	})
98	jQuery(window).resize(function(){
99	con_stab();   
100	})
101	function con_stab(){
102	win_w = jQuery(window).width();
103	var align_con = win_w - jQuery('.container.chk_wid').width();
104	jQuery('.container-align-left').css({"margin-left":align_con/2});
105	jQuery('.container-align-right').css({"padding-right":align_con/2}); 
106	jQuery('.content_left').css({"padding-left":align_con/2});
107	jQuery('.content_right').css({"padding-right":align_con/2}); 	
108	}
109		  
110		  
111jQuery(document).ready(function(){
112  // Add smooth scrolling to all links
113  jQuery("a.arrow-scroll").on('click', function(event) {
114
115    // Make sure this.hash has a value before overriding default behavior
116    if (this.hash !== "") {
117      // Prevent default anchor click behavior
118      event.preventDefault();
119
120      // Store hash
121      var hash = this.hash;
122
123      // Using jQuery's animate() method to add smooth page scroll
124      // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
125      jQuery('html, body').animate({
126        scrollTop: jQuery(hash).offset().top
127      }, 800, function(){
128   
129        // Add hash (#) to URL when done scrolling (default click behavior)
130        window.location.hash = hash;
131      });
132    } // End if
133  });
134});	  

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.