PageSourceSearch

https://www.aquasmith.co.uk/wp-content/themes/Astra/js/plugins.js?ver=5.6.21

js aquasmith.co.uk collected 2026-10-06 20:30:38 UTC 8,478 bytes, 309 lines download raw bytes

1jQuery(document).ready(function(){
2	"use strict";
3
4	if (jQuery.magnificPopup)
5	{
6		jQuery('.w-gallery-tnails-h').magnificPopup({
7			type: 'image',
8			delegate: 'a',
9			gallery: {
10				enabled: true,
11				navigateByImgClick: true,
12				preload: [0,1]
13			},
14			removalDelay: 300,
15			fixedBgPos: true,
16			fixedContentPos: false,
17			mainClass: 'mfp-fade'
18
19		});
20
21		jQuery('a[ref=magnificPopup][class!=direct-link]').magnificPopup({
22			type: 'image'
23		});
24	}
25
26	// Carousel
27	if (jQuery().carousello){
28		jQuery(".w-listing.type_carousel, .w-clients.type_carousel, .w-portfolio.type_carousel").carousello({use3d: false});
29	}
30
31	if (jQuery().isotope){
32		var portfolioContainer = jQuery('.w-portfolio.type_sortable .w-portfolio-list-h');
33		if (portfolioContainer) {
34			portfolioContainer.imagesLoaded(function(){
35				portfolioContainer.isotope({
36					itemSelector : '.w-portfolio-item',
37					layoutMode : 'fitRows'
38				});
39			});
40
41			jQuery('.w-filters-item').each(function() {
42				var item = jQuery(this),
43					link = item.find('.w-filters-item-link');
44				link.click(function(){
45					if ( ! item.hasClass('active')) {
46						jQuery('.w-filters-item').removeClass('active');
47						item.addClass('active');
48						var selector = jQuery(this).attr('data-filter');
49						portfolioContainer.isotope({ filter: selector });
50						return false;
51					}
52
53				});
54			});
55			jQuery('.w-portfolio-item-meta-tags a').each(function() {
56
57				jQuery(this).click(function(){
58					var selector = jQuery(this).attr('data-filter'),
59						topFilterLink = jQuery('a[class="w-filters-item-link"][data-filter="'+selector+'"]'),
60						topFilter = topFilterLink.parent('.w-filters-item');
61					if ( ! topFilter.hasClass('active')) {
62						jQuery('.w-filters-item').removeClass('active');
63						topFilter.addClass('active');
64						portfolioContainer.isotope({ filter: selector });
65						return false;
66					}
67
68				});
69			});
70
71		}
72
73		var postsContainer = jQuery('.w-blog.type_masonry .w-blog-list');
74
75		if (postsContainer.length) {
76			postsContainer.imagesLoaded(function(){
77				postsContainer.isotope({
78					itemSelector : '.w-blog-entry',
79					layoutMode : 'masonry'
80				});
81			});
82
83			var postsResizeTimer;
84
85			jQuery(window).resize(function(){
86				window.clearTimeout(postsResizeTimer);
87				postsResizeTimer = window.setTimeout(function(){
88					postsContainer.isotope('reLayout');
89				}, 50);
90
91			});
92		}
93
94		var galleryContainer = jQuery('.w-gallery.type_masonry .w-gallery-tnails-h');
95
96		if (galleryContainer.length) {
97			galleryContainer.imagesLoaded(function(){
98				galleryContainer.isotope({
99					layoutMode : 'masonry'
100				});
101			});
102
103			var galleryResizeTimer;
104
105			jQuery(window).resize(function(){
106				window.clearTimeout(galleryResizeTimer);
107				galleryResizeTimer = window.setTimeout(function(){
108					galleryContainer.isotope('reLayout');
109
110				}, 50);
111
112			});
113		}
114
115	}
116
117	if (jQuery().revolution){
118		if (jQuery.fn.cssOriginal !== undefined) {
119			jQuery.fn.css = jQuery.fn.cssOriginal;
120		}
121		jQuery('.fullwidthbanner').revolution({
122			delay: 9000,
123			startwidth: 1000,
124			startheight: 500,
125			soloArrowLeftHOffset: 20,
126			soloArrowLeftVOffset: 0,
127			soloArrowRightHOffset: 20,
128			soloArrowRightVOffset: 0,
129			onHoverStop:"on",						// Stop Banner Timet at Hover on Slide on/off
130			fullWidth:"on",
131			hideThumbs: false,
132			shadow:0								//0 = no Shadow, 1,2,3 = 3 Different Art of Shadows -  (No Shadow in Fullwidth Version !)
133		});
134	}
135
136	if (jQuery().waypoint){
137		jQuery('.animate_afc, .animate_afl, .animate_afr, .animate_aft, .animate_afb, .animate_wfc, .animate_hfc, .animate_rfc, .animate_rfl, .animate_rfr').waypoint(function() {
138			if ( ! jQuery(this).hasClass('animate_start')){
139				var elm = jQuery(this);
140				setTimeout(function() {
141					elm.addClass('animate_start');
142				}, 20);
143			}
144		}, {offset:'85%', triggerOnce: true});
145
146	}
147
148	var scrollHandlerPageTO = false,
149		scrollHandlerPage = function(){
150			var scrollPosition	= parseInt(jQuery(window).scrollTop(), 10),
151				windowHeight = jQuery(window).height()- 0,
152				windowWidth = jQuery(window).width()- 0;
153
154			if (scrollPosition >= windowHeight) {
155				jQuery('.w-toplink').addClass('active');
156			} else {
157				jQuery('.w-toplink').removeClass('active');
158			}
159
160			if (jQuery('.l-canvas').hasClass('headerpos_fixed')) {
161				var topHeaderHeight, middleHeaderHeight;
162
163				if (scrollPosition > 0 && windowWidth > 1023) {
164					if ( ! jQuery('.l-header').hasClass('state_sticky')) {
165						jQuery('.l-header').addClass('state_sticky');
166					}
167
168					if (jQuery('.l-canvas').hasClass('headertype_extended')) {
169						if (scrollPosition > 40) {
170							topHeaderHeight = Math.max(76-scrollPosition, 0);
171							jQuery('.l-subheader.at_top').css({'height': topHeaderHeight+'px', 'overflow': 'hidden'});
172						} else {
173							jQuery('.l-subheader.at_top').css({'height': '', 'overflow': ''});
174						}
175
176					}
177
178					middleHeaderHeight = Math.max(Math.round(90-scrollPosition), 50);
179					jQuery('.l-subheader.at_middle').css({'height': middleHeaderHeight+'px', 'line-height': middleHeaderHeight+'px'});
180
181				} else {
182					if (jQuery('.l-header').hasClass('state_sticky')) {
183						jQuery('.l-header').removeClass('state_sticky');
184					}
185
186					jQuery('.l-subheader.at_middle').css({'height': '', 'line-height': ''});
187					jQuery('.l-subheader.at_top').css({'height': '', 'overflow': ''});
188				}
189
190
191			}
192		},
193		menuHandler = function(){
194			jQuery('.l-header .w-nav').each(function () {
195				var nav = jQuery(this),
196					navControl = nav.find('.w-nav-control'),
197					navList = nav.find('.w-nav-list.level_1'),
198					navSubLists = navList.find('.w-nav-item.with_sublevel .w-nav-list'),
199					windowWidth = jQuery(window).width()- 0,
200					navRunning = false,
201					mobileNavWidth = 1000;
202
203				if (window.mobileNavWidth !== undefined) {
204					mobileNavWidth = window.mobileNavWidth;
205				}
206
207				if (windowWidth < mobileNavWidth) {
208					var listHeight,
209						listOpen = false,
210						navSubControls = navList.find('.w-nav-item.with_sublevel .w-nav-hint');
211
212					if (! nav.hasClass('touch_enabled')) {
213						nav.addClass('touch_enabled');
214						navList.css({display: 'none'});
215						navSubLists.css({display: 'none'});
216					}
217
218					navControl.off('click').click(function() {
219						if (! navRunning) {
220							navRunning = true;
221							if (listOpen) {
222								navList.slideUp(250, function(){
223									navRunning = false;
224								});
225								listOpen = false;
226							} else {
227								navList.slideDown(250, function(){
228									navRunning = false;
229								});
230								listOpen = true;
231							}
232						}
233					});
234
235					navSubControls.off('click').click(function() {
236						if (! navRunning) {
237							navRunning = true;
238							var subList = jQuery(this).closest('.w-nav-item-h').find('.w-nav-list').first(),
239								subListOpen = subList.data('subListOpen'),
240								subListHeight = subList.data('subListHeight');
241
242							if (subListOpen) {
243								subList.slideUp(250, function(){
244									navRunning = false;
245								});
246								subListOpen = false;
247							} else {
248								subList.slideDown(250, function(){
249									navRunning = false;
250								});
251								subListOpen = true;
252							}
253
254							subList.data('subListOpen', subListOpen);
255							subList.data('subListHeight', subListHeight);
256						}
257
258						return false;
259					});
260
261				} else {
262					nav.removeClass('touch_enabled');
263					navList.css({height: '', display: ''});
264					navSubLists.css({height: '', display: ''});
265					navControl.off('click');
266
267                }
268			});
269		};
270
271	scrollHandlerPage();
272	menuHandler();
273
274	jQuery(window).scroll(function() {
275		scrollHandlerPage();
276	});
277
278	jQuery(window).resize(function() {
279		if (scrollHandlerPageTO !== false) {
280			window.clearTimeout(scrollHandlerPageTO);
281		}
282		scrollHandlerPageTO = window.setTimeout(function(){
283			scrollHandlerPage();
284			menuHandler();
285		}, 5);
286
287	});
288
289	jQuery('.w-toplink').click(function(event) {
290		event.preventDefault();
291		event.stopPropagation();
292		jQuery.smoothScroll({
293			scrollTarget: '#'
294		});
295	});
296
297	jQuery('iframe').each(function(){
298		var url = jQuery(this).attr("src"),
299			char = "?";
300		if(/youtu/i.test(url)){
301			if(jQuery.inArray("?", url) !== -1){
302				char = "&";
303			}
304
305			jQuery(this).attr("src",url+char+"wmode=transparent");
306		}
307	});
308
309});

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.