PageSourceSearch

https://playerid.ai/wp-content/themes/applay/js/applay.js?ver=7.1.2

js playerid.ai collected 2026-10-05 12:24:06 UTC 12,287 bytes, 319 lines download raw bytes

1(function($) {
2	"use strict";
3
4setTimeout(function() {
5	jQuery('#pageloader').fadeOut();
6}, 30000);
7jQuery(document).ready(function(e) {
8	//search toggle focus
9	jQuery('.search-toggle').on('click', function(e) {
10		jQuery('body').toggleClass('enable-search');
11		return false;
12	});
13
14	//carousel
15	jQuery(".init-carousel").each(function(){
16		var carousel_id = jQuery(this).attr('id');
17		var auto_play = jQuery(this).data('autoplay');
18		var items = jQuery(this).data('items');
19		var navigation = jQuery(this).data('navigation');
20		if(jQuery(this).hasClass('single-carousel')){ //single style
21			jQuery(this).owlCarousel({
22				singleItem:true,
23				autoHeight: true,
24				autoPlay: auto_play,
25				addClassActive : true,
26				stopOnHover: true,
27				slideSpeed : 600,
28				navigation: navigation?true:false,
29				navigationText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
30			});
31		}else{
32			jQuery(this).owlCarousel({
33				autoPlay: auto_play,
34				items: items?items:4,
35				itemsDesktop: items?false:4,
36				itemsDesktopSmall: items?(items>3?3:false):3,
37				singleItem: items==1?true:false,
38				slideSpeed: 500,
39				addClassActive : true,
40				navigation: navigation?true:false,
41				navigationText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
42			});
43		}
44	});
45	//post slider
46	jQuery('.post-slider-prev').on('click',function(e) {
47		var owl = jQuery(this).closest('.post-slider-carousel').data('owlCarousel');
48		owl.prev();
49		return false;
50    });
51	jQuery('.post-slider-next').on('click',function(e) {
52		var owl = jQuery(this).closest('.post-slider-carousel').data('owlCarousel');
53		owl.next();
54		return false;
55    });
56	
57	//grid turn to carousel
58	if(jQuery(window).width()<977){
59		jQuery(".grid-listing").owlCarousel({ addClassActive : true });
60	}
61	
62	//Countdown
63	jQuery('[data-countdown]').each(function() {
64		var $this = jQuery(this), finalDate = jQuery(this).data('countdown');
65		var day_label = $this.data('daylabel');
66		var hour_label = $this.data('hourlabel');
67		var minute_label = $this.data('minutelabel');
68		var second_label = $this.data('secondlabel');
69		var show_second = $this.data('showsecond');
70		$this.countdown(finalDate, {elapse: true})
71		  .on('update.countdown', function(event) {
72			if (event.elapsed) { // Either true or false
73			  $this.html(event.strftime(''
74				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%D</span><span class="countdown-label main-color-1">'+day_label+'</span></span>'
75				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%H</span><span class="countdown-label main-color-1">'+hour_label+'</span></span>'
76				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%M</span><span class="countdown-label main-color-1">'+minute_label+'</span></span>'
77				+ (show_second?'<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%S</span><span class="countdown-label main-color-1">'+second_label+'</span></span>':'')
78			));
79			} else {
80			  $this.html(event.strftime(''
81				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%D</span><span class="countdown-label main-color-1">'+day_label+'</span></span>'
82				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%H</span><span class="countdown-label main-color-1">'+hour_label+'</span></span>'
83				+ '<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%M</span><span class="countdown-label main-color-1">'+minute_label+'</span></span>'
84				+ (show_second?'<span class="countdown-block"><span class="countdown-number main-color-1-bg dark-div minion">%S</span><span class="countdown-label main-color-1">'+second_label+'</span></span>':'')
85			));
86			}
87		});
88	});
89	if(jQuery('.colorbox-grid').length){
90		jQuery('.colorbox-grid').colorbox({
91			rel: function(){
92				return jQuery(this).data('rel');
93			},
94			inline:true,
95			href: function(){
96				if(jQuery(this).data('isgallery')){
97					return jQuery(this).data('content')+' .popup-data-gallery';
98				}else{
99					return jQuery(this).data('content')+' .popup-data:not(.popup-data-gallery)';
100				}
101			},
102			width: 900,
103			responsive: true,
104			onOpen: function(){
105				jQuery('body').addClass('popup-active');
106			},
107			onClosed: function(){
108				jQuery('body').removeClass('popup-active');
109			},
110			previous: '<i class="fa fa-chevron-left"></i>',
111			next: '<i class="fa fa-chevron-right"></i>',
112			close: '<i class="fa fa-times"></i>',
113		});
114	}
115
116	jQuery( "#comment-submit" ).on('click', function() {
117		var $a = jQuery("#comment").val();
118		var $b = "Your comment ...";
119		if ( $a == $b){
120			jQuery("#comment").val('');
121		}
122	});
123	
124	//mobile menu
125	jQuery('.mobile-menu-toggle').on('click', function(e) {
126        jQuery('body').toggleClass('enable-mobile-menu');
127		return false;
128    });
129	jQuery(document).mouseup(function(e){
130		var container = jQuery(".mobile-menu-wrap, #off-canvas-search");
131		if (!container.is(e.target) && container.has(e.target).length === 0){
132			jQuery('body').removeClass('enable-mobile-menu');
133		}
134	});
135	//improve mobile menu
136	jQuery('.mobile-menu li a').on('click', function(){
137		jQuery('body').removeClass('enable-mobile-menu');
138	});
139	
140	//smooth link #
141	jQuery('a[href*="#"]:not([href="#"])').on('click', function() {
142		if(jQuery(this).hasClass('featured-tab') || jQuery(this).hasClass('popup-gallery-comment') || jQuery(this).parents('ul').hasClass('tabs') || jQuery(this).hasClass('comment-reply-link') || jQuery(this).hasClass('ui-tabs-anchor') || jQuery(this).data('vc-container') || jQuery(this).parents('div').hasClass('wpb_tour_next_prev_nav')){
143			return true;
144		}else if(location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
145			|| location.hostname == this.hostname) {
146			var target = jQuery(this.hash);
147			target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
148			   if (target.length) {
149				jQuery('html,body,#body-wrap').animate({
150					 scrollTop: target.offset().top - 50
151				}, 660);
152				return true;
153			}
154		}
155	});
156	
157	//paralax bg
158	var $window = jQuery(window);
159	jQuery('.pc .ia_paralax .wpb_row, .pc .is-paralax').each(function(){
160		var $bgobj = jQuery(this); // assigning the object
161		var yPos = -( ($window.scrollTop()-$bgobj.offset().top + 30) / 5);
162		var ycss = 'background-position: 50% '+ yPos + 'px !important; transition: none;';
163		$bgobj.attr('style', ycss);
164		
165		jQuery(window).scroll(function() {
166			var yPos = -( ($window.scrollTop()-$bgobj.offset().top + 30) / 5);
167			var ycss = 'background-position: 50% '+ yPos + 'px !important; transition: none;';
168			$bgobj.attr('style', ycss);
169		});
170	});
171
172	jQuery( 'div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)' ).addClass( 'buttons_added' ).append( '<input type="button" value="+" id="add1" class="plus" />' ).prepend( '<input type="button" value="-" id="minus1" class="minus" />' );
173	jQuery('.buttons_added #minus1').on('click', function(e) {
174		var value = parseInt(jQuery(this).siblings('input.qty').val()) - 1;
175		if(value>=0){
176			jQuery(this).siblings('input.qty').val(value);
177			jQuery('.woocommerce-cart-form *[name="update_cart"]').prop("disabled", false);
178		}
179    });
180	jQuery('.buttons_added #add1').on('click', function(e) {
181		var value = parseInt(jQuery(this).prev().val()) + 1;
182		jQuery(this).prev().val(value);
183		jQuery('.woocommerce-cart-form *[name="update_cart"]').prop("disabled", false);
184    });
185
186    //fix ajax
187    jQuery( document.body ).on( 'updated_cart_totals', function(){
188		jQuery( 'div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)' ).addClass( 'buttons_added' ).append( '<input type="button" value="+" id="add1" class="plus" />' ).prepend( '<input type="button" value="-" id="minus1" class="minus" />' );
189		jQuery('.buttons_added #minus1').on('click', function(e) {
190			var value = parseInt(jQuery(this).siblings('input.qty').val()) - 1;
191			if(value>=0){
192				jQuery(this).siblings('input.qty').val(value);
193				jQuery('.woocommerce-cart-form *[name="update_cart"]').prop("disabled", false);
194			}
195	    });
196		jQuery('.buttons_added #add1').on('click', function(e) {
197			var value = parseInt(jQuery(this).prev().val()) + 1;
198			jQuery(this).prev().val(value);
199			jQuery('.woocommerce-cart-form *[name="update_cart"]').prop("disabled", false);
200	    });
201	});
202	
203	
204	jQuery(document).mouseup(function(e){
205		var container = jQuery("#off-canvas-search form");
206		if (!container.is(e.target) && container.has(e.target).length === 0){
207			jQuery('body').removeClass('enable-search');
208		}
209	});
210
211	
212	
213});//document ready
214jQuery(window).scroll(function(e) {
215	//fixed effect
216	if(jQuery(window).width()>992){
217		jQuery(".fixed-effect").each(function(index, element) {
218			var windowHeight = jQuery(window).height();
219			var offset =  jQuery(this).offset().top;
220			var inner_height = jQuery('.fixed-effect-inner',this).outerHeight();
221			var scrollTop = jQuery(document).scrollTop();
222			if((scrollTop + windowHeight) >= offset){
223				var opacity = ((scrollTop + windowHeight)-offset)/inner_height;
224				jQuery('.fixed-effect-inner',this).css('opacity', opacity);
225				jQuery('.fixed-effect-inner',this).css('margin-top', (opacity-1)*300);
226			}
227		});
228	}else{
229		jQuery(".fixed-effect").each(function(index, element) {
230			jQuery('.fixed-effect-inner',this).css('opacity', 1);
231			jQuery('.fixed-effect-inner',this).css('margin-bottom', 0);
232		});
233	}
234});
235jQuery(window).resize(function(e) {
236	if(jQuery(window).width()<977){
237		jQuery(".grid-listing").each(function(index, element) {
238			if(!jQuery(this).hasClass('owl-carousel')){
239				jQuery(this).owlCarousel({ addClassActive : true });
240			}
241		});
242	}else{
243		jQuery(".grid-listing").each(function(index, element) {
244            if(jQuery(this).hasClass('owl-carousel')){
245				var owl = jQuery(this).data('owlCarousel');
246				owl.destroy();
247			}
248        });
249	}
250	//fixed effect
251    jQuery(".fixed-effect").each(function(index, element) {
252        var inner_height = jQuery('.fixed-effect-inner',this).outerHeight();
253		jQuery(this).css('height', inner_height);
254    });
255});
256
257jQuery(window).scroll(function(e) {
258	if( jQuery(window).width() > 991 && jQuery('.summary.portrait-screenshot').length && jQuery('.images .ias-devide-wrap').length){
259		var scrollTop = jQuery(window).scrollTop();
260		
261		var box_height = jQuery('.summary.portrait-screenshot').outerHeight();
262		var box_offset = jQuery('.summary.portrait-screenshot').offset().top;
263		
264		var mobile_height = jQuery('.images .ias-devide-wrap').height();
265		var mobile_offset = jQuery('.images .ias-devide-wrap').offset().top;
266		
267		var menu_height = 50 + jQuery('#wpadminbar').height();
268
269		var margin_top = 0;
270
271		if( mobile_offset - scrollTop - menu_height - 30 <=0 ){
272			margin_top = scrollTop - mobile_offset + menu_height + 30;
273			if(margin_top >= mobile_height - box_height){
274				margin_top = mobile_height - box_height;
275			}
276		}else{
277			margin_top = 0;
278		}
279		jQuery('.summary.portrait-screenshot').css('margin-top',margin_top);
280	}else{
281		jQuery('.summary.portrait-screenshot').css('margin-top',0);
282	}
283});
284
285// Get browser add body class
286jQuery.each(jQuery.browser, function(i) {
287    jQuery('body').addClass(i);
288    return false;  
289});
290// Get OS
291var os = [
292    'iphone',
293    'ipad',
294    'windows',
295    'mac',
296    'linux',
297	'android',
298	'mobile'
299];
300var match = navigator.appVersion.toLowerCase().match(new RegExp(os.join('|')));
301if (match) {
302    jQuery('body').addClass(match[0]);
303}
304if(typeof match[0] == 'undefined'){
305	match[0]='';
306}
307if ( (navigator.appVersion.indexOf("Win")!=-1 || navigator.appVersion.indexOf("Mac")!=-1 || navigator.appVersion.indexOf("X11")!=-1 || match[0]=='windows' || match[0]=='mac') && match[0]!='iphone' && match[0]!='ipad'){
308	jQuery('body').addClass('pc');
309}else{
310	jQuery('body').addClass('mobile');
311}
312//End body class
313
314//Loading effect
315jQuery(window).load(function(e) {
316	jQuery("#pageloader").fadeOut(500);
317});
318
319})(jQuery);

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.