PageSourceSearch

https://orcawhalewatch.com/wp-content/themes/orca/js/functions.js?js_icv=de0b6d

js orcawhalewatch.com collected 2026-09-25 18:42:30 UTC 9,939 bytes, 552 lines download raw bytes

1// Foundation
2
3$(document).foundation();
4
5window.addEventListener('load', function(event) {
6  if (window.AOS) {
7    AOS.refresh();
8  }
9  //$('.slick-initialized').slick('refresh').slick('resize');
10});
11
12$(document).ready(function() {
13
14  if (window.Rellax) {
15    var rellax = new Rellax('.rellax');
16  }
17
18  if (window.AOS) {
19    AOS.init({
20      duration: 600,
21      easing: 'ease-in-sine',
22      delay: 60,
23    });
24
25    $('.tabs-title > a').on('click', function() {
26      setTimeout(function() {
27        AOS.refresh();
28      }, 100);
29    });
30  }
31
32  // Prevent theft
33
34  $('body').on('contextmenu', 'img', function(e) {
35    return false;
36  });
37  $('body').on('dragstart', 'img', function(event) {
38    event.preventDefault();
39  });
40
41  // Center Stuff
42
43  $.fn.right_this = function() {
44
45    this.css("position", "fixed");
46    this.css("top", ($(window).height() - this.height()) / 2 + "px");
47    return this;
48  };
49
50  $(".right-this").right_this();
51
52  // Center Stuff
53
54  $.fn.center_this = function() {
55
56    this.css("position", "absolute");
57    this.css("top", ($(window).height() - this.height()) / 2 + "px");
58    this.css("left", ($(window).width() - this.width()) / 2 + "px");
59    return this;
60  };
61
62  $(".center-this").center_this();
63
64  $(window).resize(function() {
65    $(".center-this").center_this();
66    $(".right-this").right_this();
67  });
68
69  // Slider - Types
70
71  $('.flex-slider-1').slick({
72    autoplay: false,
73    slidesToShow: 1,
74    slidesToScroll: 1,
75    arrows: true,
76    responsive: [
77
78      {
79        breakpoint: 1015,
80        settings: {
81          arrows: false,
82          slidesToShow: 1,
83          slidesToScroll: 1,
84        }
85      },
86
87
88      {
89        breakpoint: 600,
90        settings: {
91          arrows: false,
92          slidesToShow: 1,
93          slidesToScroll: 1,
94        }
95      },
96
97      {
98        breakpoint: 480,
99        settings: {
100          slidesToShow: 1,
101          slidesToScroll: 1,
102          arrows: false,
103        }
104      }
105    ]
106
107  });
108
109  $('.flex-slider-2').slick({
110    autoplay: false,
111    slidesToShow: 2,
112    slidesToScroll: 2,
113    arrows: true,
114    responsive: [
115
116      {
117        breakpoint: 1015,
118        settings: {
119          arrows: false,
120          slidesToShow: 2,
121          slidesToScroll: 2,
122        }
123      },
124
125
126      {
127        breakpoint: 600,
128        settings: {
129          arrows: false,
130          slidesToShow: 1,
131          slidesToScroll: 1,
132        }
133      },
134
135      {
136        breakpoint: 480,
137        settings: {
138          slidesToShow: 1,
139          slidesToScroll: 1,
140          arrows: false,
141        }
142      }
143    ]
144
145  });
146
147  $('.flex-slider-3').slick({
148    autoplay: false,
149    slidesToShow: 3,
150    slidesToScroll: 3,
151    arrows: true,
152    responsive: [
153
154      {
155        breakpoint: 1015,
156        settings: {
157          arrows: false,
158          slidesToShow: 3,
159          slidesToScroll: 3,
160        }
161      },
162
163
164      {
165        breakpoint: 600,
166        settings: {
167          arrows: false,
168          slidesToShow: 1,
169          slidesToScroll: 1,
170        }
171      },
172
173      {
174        breakpoint: 480,
175        settings: {
176          slidesToShow: 1,
177          slidesToScroll: 1,
178          arrows: false,
179        }
180      }
181    ]
182
183  });
184
185  $('.flex-slider-4').slick({
186    autoplay: false,
187    slidesToShow: 4,
188    slidesToScroll: 4,
189    arrows: true,
190    responsive: [
191
192      {
193        breakpoint: 1015,
194        settings: {
195          arrows: false,
196          slidesToShow: 3,
197          slidesToScroll: 3,
198        }
199      },
200
201
202      {
203        breakpoint: 600,
204        settings: {
205          arrows: false,
206          slidesToShow: 1,
207          slidesToScroll: 1,
208        }
209      },
210
211      {
212        breakpoint: 480,
213        settings: {
214          slidesToShow: 1,
215          slidesToScroll: 1,
216          arrows: false,
217        }
218      }
219    ]
220
221  });
222
223  $('.flex-slider-5').slick({
224    autoplay: false,
225    slidesToShow: 5,
226    slidesToScroll: 5,
227    arrows: true,
228    responsive: [
229
230      {
231        breakpoint: 1015,
232        settings: {
233          arrows: false,
234          slidesToShow: 3,
235          slidesToScroll: 3,
236        }
237      },
238
239
240      {
241        breakpoint: 600,
242        settings: {
243          arrows: false,
244          slidesToShow: 1,
245          slidesToScroll: 1,
246        }
247      },
248
249      {
250        breakpoint: 480,
251        settings: {
252          slidesToShow: 1,
253          slidesToScroll: 1,
254          arrows: false,
255        }
256      }
257    ]
258
259  });
260
261
262  // Slider - Home
263
264  var theHomeSlider = $('.slider').slick({
265    dots: false,
266    arrows: false,
267    infinite: true,
268    speed: 800,
269    pauseOnHover: false,
270    slidesToShow: 1,
271    lazyLoad: 'progressive',
272    fade: false,
273    cssEase: 'linear',
274    autoplay: false,
275    autoplaySpeed: 3000
276  });
277  //setTimeout(function() { theHomeSlider.slick('setPosition'); }, 30);
278
279  window.addEventListener('load', function(event) {
280    setTimeout(function() {
281      theHomeSlider.slick("slickSetOption", "fade", true, false).slick("slickSetOption", "autoplay", true, false).slick('slickNext');
282    }, 2000);
283  });
284
285
286  // Slider - Albums
287
288  $('.album-slider').slick({
289    autoplay: false,
290    autoplaySpeed: 2500,
291    centerMode: true,
292    centerPadding: '0px',
293    slidesToShow: 3,
294    slidesToScroll: 3,
295    arrows: true,
296
297    responsive: [
298
299      {
300        breakpoint: 1015,
301        settings: {
302          arrows: false,
303          slidesToShow: 2
304        }
305      },
306
307
308      {
309        breakpoint: 600,
310        settings: {
311          arrows: false,
312          slidesToShow: 1
313        }
314      },
315
316      {
317        breakpoint: 480,
318        settings: {
319          slidesToShow: 1,
320          arrows: false,
321        }
322      }
323    ]
324
325  });
326
327
328
329
330  // Slider - Service
331
332  $('.service-slider').slick({
333    autoplay: false,
334    autoplaySpeed: 2500,
335    centerMode: true,
336    centerPadding: '0px',
337    slidesToShow: 3,
338    slidesToScroll: 3,
339    arrows: true,
340    adaptiveHeight: true,
341
342    responsive: [
343
344      {
345        breakpoint: 1015,
346        settings: {
347          arrows: false,
348          slidesToShow: 2
349        }
350      },
351
352
353      {
354        breakpoint: 600,
355        settings: {
356          arrows: false,
357          slidesToShow: 1
358        }
359      },
360
361      {
362        breakpoint: 480,
363        settings: {
364          slidesToShow: 1,
365          arrows: false,
366        }
367      }
368    ]
369
370  });
371
372  // Slider - Article
373
374  $('.article-slider').slick({
375    autoplay: false,
376    autoplaySpeed: 2500,
377    centerMode: false,
378    centerPadding: '0px',
379    slidesToShow: 3,
380    slidesToScroll: 3,
381    arrows: true,
382
383    responsive: [
384
385      {
386        breakpoint: 1015,
387        settings: {
388          arrows: false,
389          slidesToShow: 2,
390          slidesToScroll: 2
391        }
392      },
393
394
395      {
396        breakpoint: 600,
397        settings: {
398          arrows: false,
399          slidesToShow: 1,
400          slidesToScroll: 1
401        }
402      },
403
404      {
405        breakpoint: 480,
406        settings: {
407          slidesToShow: 1,
408          slidesToScroll: 1,
409          arrows: false,
410        }
411      }
412    ]
413
414  });
415
416
417  // Sticky Header
418
419  $(".header").stick_in_parent({
420
421    bottoming: false,
422
423  });
424
425
426  // Match Height
427
428  $('.title-bar-gap').matchHeight({
429    byRow: false,
430    property: 'height',
431    target: $('.title-bar'),
432    remove: false
433  });
434
435  $('.articles .article h2').matchHeight({
436    byRow: true,
437    property: 'height',
438    target: null,
439    remove: false
440  });
441
442  $('.articles .article p').matchHeight({
443    byRow: true,
444    property: 'height',
445    target: null,
446    remove: false
447  });
448
449  $('.services .service p').matchHeight({
450    byRow: true,
451    property: 'height',
452    target: null,
453    remove: false
454  });
455
456
457
458
459});
460
461/*
462jQuery(document).ready(function($){
463
464
465	var overlayNav = $('.cd-overlay-nav'),
466		overlayContent = $('.cd-overlay-content'),
467		navigation = $('.cd-primary-nav'),
468		toggleNav = $('.cd-nav-trigger');
469
470	//inizialize navigation and content layers
471	layerInit();
472	$(window).on('resize', function(){
473		window.requestAnimationFrame(layerInit);
474	});
475
476	//open/close the menu and cover layers
477	toggleNav.on('click', function(){
478		if(!toggleNav.hasClass('close-nav')) {
479			//it means navigation is not visible yet - open it and animate navigation layer
480			toggleNav.addClass('close-nav');
481
482			overlayNav.children('span').animate({
483				translateZ: 0,
484				scaleX: 1,
485				scaleY: 1,
486			}, 500, 'easeInCubic', function(){
487				navigation.addClass('fade-in');
488			});
489		} else {
490			//navigation is open - close it and remove navigation layer
491			toggleNav.removeClass('close-nav');
492
493			overlayContent.children('span').animate({
494				translateZ: 0,
495				scaleX: 1,
496				scaleY: 1,
497			}, 500, 'easeInCubic', function(){
498				navigation.removeClass('fade-in');
499
500				overlayNav.children('span').animate({
501					translateZ: 0,
502					scaleX: 0,
503					scaleY: 0,
504				}, 0);
505
506				overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
507					overlayContent.children('span').animate({
508						translateZ: 0,
509						scaleX: 0,
510						scaleY: 0,
511					}, 0, function(){overlayContent.removeClass('is-hidden')});
512				});
513				if($('html').hasClass('no-csstransitions')) {
514					overlayContent.children('span').animate({
515						translateZ: 0,
516						scaleX: 0,
517						scaleY: 0,
518					}, 0, function(){overlayContent.removeClass('is-hidden')});
519				}
520			});
521		}
522	});
523
524
525
526	function layerInit(){
527		var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2);
528		overlayNav.children('span').animate({
529			scaleX: 0,
530			scaleY: 0,
531			translateZ: 0,
532		}, 50).animate({
533			height : diameterValue+'px',
534			width : diameterValue+'px',
535			top : -(diameterValue/2)+'px',
536			left : -(diameterValue/2)+'px',
537		}, 0);
538
539		overlayContent.children('span').animate({
540			scaleX: 0,
541			scaleY: 0,
542			translateZ: 0,
543		}, 50).animate({
544			height : diameterValue+'px',
545			width : diameterValue+'px',
546			top : -(diameterValue/2)+'px',
547			left : -(diameterValue/2)+'px',
548		}, 0);
549	}
550
551});
552*/

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.