PageSourceSearch

https://www.mariamazzotta.com/wp-content/themes/sessions/js/scripts.js?ver=1.12.5

js mariamazzotta.com collected 2026-10-07 03:44:35 UTC 9,422 bytes, 357 lines download raw bytes

1jQuery(window).on("load", function() {
2	"use strict";
3
4	/* -----------------------------------------
5	 FlexSlider Init
6	 ----------------------------------------- */
7	var homeSlider = jQuery( '#home-slider' );
8	if ( homeSlider.length ) {
9		homeSlider.flexslider( {
10			animation     : ThemeOption.slider_effect,
11			direction     : ThemeOption.slider_direction,
12			slideshow     : Boolean( ThemeOption.slider_autoslide ),
13			slideshowSpeed: Number( ThemeOption.slider_speed ),
14			animationSpeed: Number( ThemeOption.slider_duration ),
15			prevText      : '',
16			nextText      : '',
17			directionNav  : false,
18			controlNav    : true,
19			start         : function( slider ) {
20				slider.removeClass( 'loading' );
21			},
22			after: function( slider ) {
23				var currentSlide = slider.slides.eq( slider.currentSlide );
24				currentSlide.siblings().each( function() {
25					var src = jQuery( this ).find( 'iframe' ).attr( 'src' );
26					jQuery( this ).find( 'iframe' ).attr( 'src', src );
27				} );
28			}
29		} );
30	}
31
32	/* -----------------------------------------
33	Isotope / Masonry
34	----------------------------------------- */
35	var $container = jQuery('.list-masonry'),
36			$filters = jQuery('.filters-nav');
37
38	$container.each(function() {
39		jQuery(this).isotope();
40	});
41
42	if ( $filters.length ) {
43		$filters.each( function() {
44			var $filterSet = jQuery( this ),
45				$filterLinks = $filterSet.find( 'a' );
46
47			$filterLinks.click( function(e) {
48				var $that = jQuery(this),
49					$selector = $that.attr('data-filter');
50
51				if ( $that.parents('.event-list').length ) {
52
53					$filterSet.find('.selected').removeClass('selected');
54					$that.addClass('selected');
55
56					$filterSet
57						.parents('.event-list')
58						.find('.list-masonry')
59						.isotope({
60							filter : $selector,
61							animationOptions: {
62								duration: 750,
63								easing  : 'linear',
64								queue   : false
65							}
66						});
67
68				} else {
69					var selector = jQuery(this).attr('data-filter');
70					jQuery(this).parent().siblings().find('a').removeClass('selected');
71					jQuery(this).addClass("selected");
72
73					$container.isotope({
74						filter: selector,
75						animationOptions: {
76							duration: 750,
77							easing  : 'linear',
78							queue   : false
79						}
80					});
81				}
82
83				e.preventDefault();
84			});
85
86		});
87	}
88
89	/* -----------------------------------------
90	 Equalize Heights
91	 ----------------------------------------- */
92	jQuery(".item-list").find("div[class^='col']").matchHeight();
93
94	/* -----------------------------------------
95	 Homepage audio player autoplay
96	 ----------------------------------------- */
97	jQuery(".autoplay").find('.ci-soundplayer-play').trigger('click');
98});
99
100jQuery(document).ready(function($) {
101	"use strict";
102
103	/* -----------------------------------------
104	 Responsive Menus Init with mmenu
105	 ----------------------------------------- */
106	var mainNav = $("#navigation"),
107		mobileNav = $("#mobilemenu");
108
109	mainNav.clone().removeAttr('id').removeClass().appendTo(mobileNav);
110	mobileNav.find('li').removeAttr('id');
111
112	mobileNav.mmenu({
113			offCanvas: {
114				position: 'top',
115				zposition: 'front'
116			},
117			"autoHeight": true,
118			"navbars": [
119				{
120					"position": "top",
121					"content": [
122						"prev",
123						"title",
124						"close"
125					]
126				}
127			]
128		});
129
130	/* -----------------------------------------
131	 Main Navigation Init
132	 ----------------------------------------- */
133	$('#navigation').superfish({
134		delay      : 300,
135		animation  : { opacity: 'show', height: 'show' },
136		speed      : 'fast',
137		dropShadows: false
138	});
139
140	/* -----------------------------------------
141	 Responsive Videos with fitVids
142	 ----------------------------------------- */
143	$('#main, .home-video').fitVids();
144
145	/* -----------------------------------------
146	 Lightbox
147	 ----------------------------------------- */
148	var zoomOptions = {
149		show_title         : false,
150		hook               : 'data-rel',
151		social_tools       : false,
152		theme              : 'pp_woocommerce',
153		horizontal_padding : 20,
154		opacity            : 0.8,
155		deeplinking        : false
156	};
157
158	var pp_images = $("a[data-rel^='prettyPhoto']");
159	if (pp_images.length) {
160		pp_images.prettyPhoto(zoomOptions);
161	}
162
163	/* -----------------------------------------
164	 Zoom single product thumbnails
165	 ----------------------------------------- */
166	$( '.woocommerce-product-gallery--with-images' ).prepend( '<a href="#" class="woocommerce-product-gallery__trigger"></a>' );
167
168	$( 'body' ).on( 'click', '.woocommerce-product-gallery__trigger', function ( e ) {
169		var images = $( '.woocommerce-product-gallery__image' ).map(function () {
170			return $( this ).find( 'a' ).attr( 'href' );
171		} );
172
173		if ( ! $.fn.prettyPhoto.open ) {
174			$.fn.prettyPhoto(zoomOptions);
175		}
176
177		if ( 1 === images.length ) {
178			var currentImageIndex = $( '.woocommerce-product-gallery__image' ).index();
179		} else {
180			var currentImageIndex = $( '.flex-active-slide' ).index();
181		}
182
183		$.prettyPhoto.open( images, null, null, currentImageIndex );
184		e.preventDefault();
185	} );
186
187	/* -----------------------------------------
188	 Event Map Init
189	 ----------------------------------------- */
190	var event_map = $("#event_map");
191	if ( event_map.length ) {
192		var lat = event_map.data( 'lat' ), lng = event_map.data( 'lng' ), tipText = event_map.data( 'tooltip-txt' ), titleText = event_map.attr( 'title' );
193
194		map_init( lat, lng, tipText, titleText );
195	}
196
197	/* -----------------------------------------
198	 SoundManager2 Init
199	 ----------------------------------------- */
200	soundManager.setup({
201		url: ThemeOption.swfPath
202	});
203
204	/* -----------------------------------------
205	 SoundCloud Trigger
206	 ----------------------------------------- */
207	if ($('.soundcloud-wrap').length) {
208		$('.sc-play').click(function(e){
209			var target = $(this).parent().find('.soundcloud-wrap');
210			target.slideToggle('fast');
211			e.preventDefault();
212		});
213	}
214
215	var $buttons = $(".track-buttons");
216
217	function addTallClasstoTrack() {
218		if ( $(window).width() < 1032 && $buttons.length ) {
219			$('.track').each(function() {
220				if ( $(this).find(".track-buttons").length ) {
221					$(this).addClass('tall');
222				}
223			});
224		} else {
225			$(".track").removeClass('tall');
226		}
227	}
228
229	addTallClasstoTrack();
230
231	$(window).on('resize', function(e) {
232		addTallClasstoTrack();
233	});
234
235	/* -----------------------------------------
236	Parallax
237	----------------------------------------- */
238	$('.parallax').each(function() {
239		var that = $(this);
240		that.parallax('50%', that.data('speed'));
241	});
242
243
244	/* -----------------------------------------
245	 Galleries (stapel.js)
246	 ----------------------------------------- */
247	var tpclose = $('.tp-close');
248
249	var stapel = $( '#tp-grid' ).stapel( {
250		gutter    : 30,
251		pileAngles: 2,
252		onAfterOpen: function(pileName) {
253			tpclose.fadeIn();
254			var pp_images = $("a[data-rel^='prettyPhoto']");
255			pp_images.prettyPhoto({
256				show_title        : false,
257				hook              : 'data-rel',
258				social_tools      : false,
259				theme             : 'pp_woocommerce',
260				horizontal_padding: 20,
261				opacity           : 0.8,
262				deeplinking       : false
263			});
264		},
265		onAfterClose: function(pileName) {
266			var pp_images = $("a[data-rel^='prettyPhoto']");
267			pp_images.off('click');
268		}
269	} );
270
271	tpclose.on('click', function(e) {
272		$(this).hide();
273		stapel.closePile();
274
275		e.preventDefault();
276	});
277
278});
279
280function map_init(lat, lng, tipText, titleText) {
281	'use strict';
282	if ( typeof google === 'object' && typeof google.maps === 'object' ) {
283		var myLatlng = new google.maps.LatLng( lat, lng );
284		var mapOptions = {
285			zoom     : 8,
286			center   : myLatlng,
287			mapTypeId: google.maps.MapTypeId.ROADMAP,
288			styles   : [
289				{"stylers": [{"saturation": -100}, {"gamma": 1}]},
290				{
291					"elementType": "labels.text.stroke",
292					"stylers"    : [{"visibility": "off"}]
293				},
294				{
295					"featureType": "poi.business",
296					"elementType": "labels.text",
297					"stylers"    : [{"visibility": "off"}]
298				},
299				{
300					"featureType": "poi.business",
301					"elementType": "labels.icon",
302					"stylers"    : [{"visibility": "off"}]
303				},
304				{
305					"featureType": "poi.place_of_worship",
306					"elementType": "labels.text",
307					"stylers"    : [{"visibility": "off"}]
308				},
309				{
310					"featureType": "poi.place_of_worship",
311					"elementType": "labels.icon",
312					"stylers"    : [{"visibility": "off"}]
313				},
314				{
315					"featureType": "road",
316					"elementType": "geometry",
317					"stylers"    : [{"visibility": "simplified"}]
318				},
319				{
320					"featureType": "water",
321					"stylers"    : [{"visibility": "on"}, {"saturation": 50}, {"gamma": 0}, {"hue": "#50a5d1"}]
322				},
323				{
324					"featureType": "administrative.neighborhood",
325					"elementType": "labels.text.fill",
326					"stylers"    : [{"color": "#333333"}]
327				},
328				{
329					"featureType": "road.local",
330					"elementType": "labels.text",
331					"stylers"    : [{"weight": 0.5}, {"color": "#333333"}]
332				},
333				{
334					"featureType": "transit.station",
335					"elementType": "labels.icon",
336					"stylers"    : [{"gamma": 1}, {"saturation": 50}]
337				}
338			]
339		};
340
341		var map = new google.maps.Map( document.getElementById( 'event_map' ), mapOptions );
342
343		var contentString = '<div class="tip-content">' + tipText + '</div>';
344
345		var infowindow = new google.maps.InfoWindow( {
346			content: contentString
347		} );
348
349		var marker = new google.maps.Marker( {
350			position: myLatlng, map: map, title: titleText
351		} );
352
353		google.maps.event.addListener( marker, 'click', function() {
354			infowindow.open( map, marker );
355		} );
356	}
357}

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.