PageSourceSearch

https://rockbythesea.org/wp-content/plugins/sydney-toolbox/js/main.js?ver=20211217

js rockbythesea.org collected 2026-10-02 12:46:23 UTC 6,341 bytes, 210 lines download raw bytes

1
2
3(function ($) {
4
5    var aThemesTestimonialsCarouselrun = function ($scope, $) {
6
7		if ( $().owlCarouselFork ) {
8			$('.roll-testimonials').not('.owl-carousel').owlCarouselFork({
9				navigation : false,
10				pagination: true,
11				responsive: true,
12				items: 1,
13				itemsDesktop: [3000,1],
14				itemsDesktopSmall: [1400,1],
15				itemsTablet:[970,1],
16				itemsTabletSmall: [600,1],
17				itemsMobile: [360,1],
18				touchDrag: true,
19				mouseDrag: true,
20				autoHeight: true,
21				autoPlay: $('.roll-testimonials').data('autoplay')
22			});
23		} 
24
25    };    
26
27    var aThemesTestimonialsSkinCarouselrun = function ($scope, $) {
28
29		var $carousel = $( '.roll-testimonials.athemes-testimonials-skin', $scope);
30
31		if ( $().owlCarouselFork ) {
32			$carousel.not('.owl-carousel').owlCarouselFork({
33				navigation : true,
34				pagination: false,
35				navigationText: [$('.tc-next'),$('.tc-prev')],
36				responsive: true,
37				slideSpeed: 1000,
38				transitionStyle: "custfade",
39				items: 1,
40				itemsDesktop: [3000,1],
41				itemsDesktopSmall: [1400,1],
42				itemsTablet:[970,1],
43				itemsTabletSmall: [600,1],
44				itemsMobile: [360,1],
45				touchDrag: true,
46				mouseDrag: true,
47				autoHeight: true,
48				autoPlay: $('.roll-testimonials').data('autoplay')
49			});
50		} 
51
52    }; 
53
54
55    var aThemesNewsCarouselrun = function ($scope, $) {
56
57		if ( $().owlCarouselFork ) {
58			$(".panel-grid-cell .latest-news-wrapper").owlCarouselFork({
59				navigation : false,
60				pagination: true,
61				responsive: true,
62				items: 3,
63				itemsDesktopSmall: [1400,3],
64				itemsTablet:[970,2],
65				itemsTabletSmall: [600,1],
66				itemsMobile: [360,1],
67				touchDrag: true,
68				mouseDrag: true,
69				autoHeight: false,
70				autoPlay: false
71			}); // end owlCarouselFork
72
73		} // end if
74
75    };    
76
77    var aThemesIsotoperun = function ($scope, $) {
78	   if ( $('.project-wrap').length ) {
79
80	      $('.project-wrap').each(function() {
81
82	        var self       = $(this);
83	        var filterNav  = self.find('.project-filter').find('a');
84
85	        var projectIsotope = function($selector){
86
87	          $selector.isotope({
88	            filter: '*',
89	            itemSelector: '.project-item',
90	            percentPosition: true,
91	            animationOptions: {
92	                duration: 750,
93	                easing: 'liniar',
94	                queue: false,
95	            }
96	          });
97
98	        }
99
100	        self.children().find('.isotope-container').imagesLoaded( function() {
101	          projectIsotope(self.children().find('.isotope-container'));
102	        });
103
104	        $(window).load(function(){
105	          projectIsotope(self.children().find('.isotope-container'));
106	        });
107
108	        filterNav.click(function(){
109	            var selector = $(this).attr('data-filter');
110	            filterNav.removeClass('active');
111	            $(this).addClass('active');
112
113	            self.find('.isotope-container').isotope({
114	                filter: selector,
115	                animationOptions: {
116	                    duration: 750,
117	                    easing: 'liniar',
118	                    queue: false,
119	                }
120	            });
121
122	            return false;
123
124	        });
125
126	      });
127
128	    }
129    };
130
131	var aThemesPortfolioExt = function ($scope, $) {
132
133		$( '.sydney-portfolio-wrapper' ).each(function() {
134			var $gallery = $( '.sydney-portfolio-items', $scope);
135			var $filter  = $( '.sydney-portfolio-filter', $scope);
136
137			$gallery.isotope({
138				itemSelector: '.sydney-portfolio-item',	
139			});
140
141			$gallery.imagesLoaded().progress(function() {
142				$gallery.isotope('layout');
143			});	
144			
145			$filter.on( 'click', 'a', function(e) {
146				e.preventDefault();
147				$( this ).addClass( 'active' );
148				$( this ).parent().siblings().find( 'a' ).removeClass( 'active' );
149				var filterValue = $( this ).attr('data-filter');
150				$gallery.isotope({ filter: filterValue });
151			});	
152		});	
153	};	
154
155    var aThemesTeamSocial = function ($scope, $) {
156    	//Moves social bar inside image for aThemes: Employee - style 2
157  		$( '.roll-team.type-b.style2').find( '.team-item' ).each( function() {
158  			var socials = $(this).find( '.team-social' );
159  			socials.appendTo( $(this).find( '.team-inner') );
160  		});
161	};    
162	
163    var aThemesHeroSlider = function ($scope, $) {
164
165        $(document).ready(function () {
166
167			var swiperConfig = {
168				effect: 'fade',			  
169				direction: 'horizontal',
170				loop: true,
171				autoplay: true,
172				speed: 1000,    
173				navigation: {
174				  nextEl: '.swiper-button-next',
175				  prevEl: '.swiper-button-prev',
176				},			    
177				pagination: {
178				  el: '.swiper-pagination',
179				  clickable: true,
180				},
181			}
182
183			if ( 'undefined' === typeof Swiper ) {
184				const asyncSwiper = elementorFrontend.utils.swiper;
185			   
186				new asyncSwiper( $('.athemes-hero-slider'), swiperConfig ).then( ( newSwiperInstance ) => {		   
187				  swiperElement = newSwiperInstance;
188				} );
189			  } else {
190				var swiperElement = new Swiper ( $('.athemes-hero-slider'), swiperConfig )
191			  }
192
193          });        
194
195    };
196
197    $(window).on('elementor/frontend/init', function () {
198        elementorFrontend.hooks.addAction('frontend/element_ready/athemes-testimonials.default', aThemesTestimonialsCarou
198selrun);
199		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-testimonials.athemes-testimonials-skin', aThemesTestimonialsSkinCarouselrun); 
200        elementorFrontend.hooks.addAction('frontend/element_ready/athemes-posts.default', aThemesNewsCarouselrun);
201		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-portfolio.default', aThemesIsotoperun);    
202		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-portfolio-ext.default', aThemesPortfolioExt);    
203		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-portfolio-ext.athemes-portfolio-ext-overlap-skin', aThemesPortfolioExt); 
204		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-portfolio-ext.athemes-portfolio-ext-classic-skin', aThemesPortfolioExt); 
205		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-portfolio-ext.athemes-portfolio-ext-metro-skin', aThemesPortfolioExt); 
206		elementorFrontend.hooks.addAction('frontend/element_ready/athemes-employee.default', aThemesTeamSocial);    
207		elementorFrontend.hooks.addAction('frontend/element_ready/sydney-hero-slider.default', aThemesHeroSlider); 
208    });
209
210}( jQuery, window.elementorFrontend ) );

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.