PageSourceSearch

https://beverlyhillscourier.com/wp-content/plugins/album-and-image…/assets/js/aigpl-pro-public.js?ver=1.2.6

js beverlyhillscourier.com collected 2026-09-24 09:49:22 UTC 6,924 bytes, 199 lines download raw bytes

1jQuery(document).ready(function($) {�
2�
3	/* For Slider */�
4	$( '.aigpl-gallery-slider' ).each(function( index ) {�
5�
6		var slider_id   = $(this).attr('id');�
7		var slider_conf = $.parseJSON( $(this).closest('.aigpl-gallery-slider-wrp').find('.aigpl-gallery-slider-conf').text());�
8		�
9		jQuery('#'+slider_id).slick({�
10			dots			: (slider_conf.dots) == "true" ? true : false,�
11			infinite		: (slider_conf.loop) == "true" ? true : false,�
12			arrows			: (slider_conf.arrows) == "true" ? true : false,�
13			speed			: parseInt(slider_conf.speed),�
14			autoplay		: (slider_conf.autoplay) == "true" ? true : false,�
15			autoplaySpeed	: parseInt(slider_conf.autoplay_interval),�
16			slidesToShow	: parseInt(slider_conf.slidestoshow),�
17			slidesToScroll	: parseInt(slider_conf.slidestoscroll),�
18			centerMode 		: (slider_conf.centermode) == "true" ? true : false,�
19			rtl             : (AigplPro.is_rtl == 1) ? true : false,�
20			mobileFirst    	: (AigplPro.is_mobile == 1) ? true : false,�
21			responsive 		: [{�
22				breakpoint 	: 1023,�
23				settings 	: {�
24					slidesToShow 	: (parseInt(slider_conf.slidestoshow) > 3) ? 3 : parseInt(slider_conf.slidestoshow),�
25					slidesToScroll 	: 1,�
26					infinite 		: (slider_conf.loop) == "true" ? true : false,�
27					dots 			: (slider_conf.dots) == "true" ? true : false,�
28				}�
29			},{�
30				breakpoint	: 767,	  			�
31				settings	: {�
32					slidesToShow 	: (parseInt(slider_conf.slidestoshow) > 2) ? 2 : parseInt(slider_conf.slidestoshow),�
33					slidesToScroll 	: 1,�
34					infinite 		: (slider_conf.loop) == "true" ? true : false,�
35					dots 			: (slider_conf.dots) == "true" ? true : false,�
36					centerMode 		: false,�
37				}�
38			},�
39			{�
40				breakpoint	: 479,�
41				settings	: {�
42					slidesToShow 	: 1,�
43					slidesToScroll 	: 1,�
44					dots 			: false,�
45					centerMode 		: false,�
46					infinite 		: (slider_conf.loop) == "true" ? true : false,�
47				}�
48			},�
49			{�
50				breakpoint	: 319,�
51				settings	: {�
52					slidesToShow 	: 1,�
53					slidesToScroll 	: 1,�
54					dots 			: false,�
55					centerMode 		: false,�
56					infinite 		: (slider_conf.loop) == "true" ? true : false,�
57				}�
58			}]�
59		});�
60	});�
61�
62	/* Popup Gallery */�
63	$( '.aigpl-popup-gallery' ).each(function( index ) {�
64		�
65		var gallery_id 	= $(this).attr('id');�
66		var total_item	= $('#'+gallery_id+' .aigpl-cnt-wrp:not(.slick-cloned) a.aigpl-img-link').length;�
67		�
68		if( typeof('gallery_id') !== 'undefined' && gallery_id != '' ) { //.slick-image-slide:not(.slick-cloned) a�
69			$('#'+gallery_id).magnificPopup({�
70				tClose: AigplPro.popup_close_text,�
71				delegate: '.aigpl-cnt-wrp a.aigpl-img-link',�
72				type: 'image',�
73				mainClass: 'aigpl-mfp-popup',�
74				tLoading: AigplPro.mfp_loading_text,�
75				gallery: {�
76					tPrev: AigplPro.popup_prev_text,�
77    				tNext: AigplPro.popup_next_text,�
78					enabled: true,�
79					navigateByImgClick: true,�
80					preload: [0,1], /* Will preload 0 - before current, and 1 after the current image*/�
81					tCounter: ''�
82				},�
83				image: {�
84					tError: AigplPro.mfp_img_error,�
85					titleSrc: function(item) {�
86						return item.el.closest('.aigpl-img-wrp').find('.aigpl-img').attr('title');�
87					}�
88				},�
89				zoom: {�
90					enabled: false,�
91					duration: 300, /* don't foget to change the duration also in CSS*/�
92					opener: function(element) {�
93						return element.closest('.aigpl-img-wrp').find('.aigpl-img');�
94					}�
95				},�
96				callbacks: {�
97					markupParse: function(template, values, item) {�
98						var current_indx 	= item.el.closest('.aigpl-cnt-wrp').attr('data-item-index');�
99						var counter_text	= AigplPro.mfp_img_counter;�
100						counter_text		= counter_text.replace('%curr%', current_indx);�
101						counter_text		= counter_text.replace('%total%', total_item);�
102						values.counter 		= counter_text;�
103�
104						$('body').trigger('aigpl_mfp_markup_parse', [ template, values, item ]);�
105					}�
106				},�
107			});�
108		}�
109	});�
110�
111	/*Initialize masonry*/�
112	$('.aigpl-gallery-masonry').each(function( index ) {�
113		�
114		var obj_id 		= $(this).attr('id');�
115		var $container 	= $('#'+obj_id);�
116�
117		/* Creating object */�
118		var masonry_param_obj = {itemSelector: '.aigpl-cnt-wrp'};�
119		�
120		if( !$(this).hasClass('aigpl-effect-1') ) {�
121			masonry_param_obj['transitionDuration'] = 0;�
122		}�
123�
124		$container.imagesLoaded( function() {�
125			$container.masonry(masonry_param_obj);�
126		});�
127	});�
128�
129	/* Initialize album lightbox */�
130	$(document).on('click', '.aigpl-lightbox-gallery .aigpl-img-link', function(e) {�
131		e.preventDefault();�
132�
133		var cls_ele = $(this).closest('.aigpl-cnt-wrp');�
134�
135		/* Enable loader */�
136		$('.aigpl-lightbox-loader').remove();�
137		$('body').append('<div class="aigpl-lightbox-loader">Please Wait...</div>');�
138		$('.aigpl-lightbox-loader').animate({bottom: '50px'}, 400);�
139�
140		/* Ajax */�
141		var data 	= {�
142                        action 		: 'aigpl_pro_get_album_images',�
143                        album_id 	: cls_ele.attr('data-id'),�
144                    };�
145�
146        $.post(AigplPro.ajaxurl,data,function(response) {�
147			var result = $.parseJSON(response);�
148�
149			if( result.success == 1 && result.data ) {�
150				$('.aigpl-ilightbox-popup .ilightbox-close').trigger('click');�
151				$.iLightBox(result.data, {�
152                    skin:'metro-black aigpl-ilightbox-popup',�
153                    path: 'horizontal',�
154                    minScale: 0.075,�
155                    smartRecognition: false,�
156                    isMobile: true,�
157                    show: {�
158                        title: true,�
159						speed: 400�
160                    },�
161                    caption: {�
162                        start: true,�
163                        show: '',�
164                        hide: ''�
165                    },�
166                    controls: {�
167                        slideshow: true,�
168                        arrows: true,�
169                    },�
170                    overlay: {�
171                        opacity: 0.97�
172                    },�
173                    slideshow: {�
174                        pauseTime: 3000,�
175                        pauseOnHover: false,�
176                        startPaused: true�
177                    },�
178                    text: {�
179						close: AigplPro.popup_close_text,�
180						enterFullscreen: AigplPro.popup_fullscreen,�
181						exitFullscreen: AigplPro.popup_exitfullscreen,�
182						slideShow: AigplPro.popup_slideshow,�
183						next: AigplPro.popup_next_text,�
184						previous: AigplPro.popup_prev_text�
185					},�
186                });�
187				$('.aigpl-lightbox-loader').remove();�
188			} else {�
189				$('.aigpl-lightbox-loader').addClass('aigpl-lightbox-loader-err').html(result.msg);�
190			}�
191�
192			setTimeout(function() {�
193				$(".aigpl-lightbox-loader").fadeOut("normal", function() {�
194					$(this).remove();�
195			    });�
196			}, 2000 );�
197		});�
198	});�
199});

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.