PageSourceSearch

https://www.irmamagazines.com/wp-content/themes/edena/js/custom.js?ver=20130215

js irmamagazines.com collected 2026-10-02 19:28:50 UTC 34,096 bytes, 1,268 lines download raw bytes

1/**
2 * init gloabl vars
3 */
4 var isMobile,
5 isDesktop;
6
7/***************** Custom functions *******************/
8
9function ie9sameheightbox(){
10
11	if( jQuery(window).width() > 992 ) {
12
13		jQuery('.vc_row-o-equal-height').each(function(index, el) {
14			var maxHeight = -1,
15			$row = jQuery(this);	
16
17			$row.find('.wpb_column').each(function(index, el) {
18
19				var $col = jQuery('.vc_column-inner', this);
20
21				console.log( 'col height'+ $col.outerHeight( true ) );
22
23				if ( $col.outerHeight( true ) > maxHeight ) {
24					maxHeight = $col.outerHeight( true );
25				}
26
27			});
28
29			console.log( 'maxheight'+ maxHeight );
30			$row.find(' > .wpb_column > .vc_column-inner').css('height', maxHeight );
31
32		});
33	}
34	
35}
36
37
38/**
39 * make it fullscreen
40 * @param  {object} $obj wrapper to make fullscreen
41 * @return {[type]}      [description]
42 */
43 function fullscreenWrapper($obj) {
44 	var $windowHeight = jQuery(window).height();
45
46 	if(jQuery('.content-wrapper', $obj).height() < $windowHeight){
47
48 		var adminBarOffset = ( jQuery('.admin-bar').length )?jQuery('#wpadminbar').outerHeight(true):0;
49 		var $menuHeight = ( !jQuery('.header-transparent').length && !jQuery('.header-boxed').length && !jQuery('.side-menu').length ) ? jQuery('#mainHeader').outerHeight(true) + adminBarOffset : 0 + adminBarOffset ;
50 		var $self_paddingtop = $obj.css('padding-top');
51 		var $self_paddingbottom = $obj.css('padding-bottom');
52
53 		$obj.height( $windowHeight - ( $menuHeight + parseInt($self_paddingtop) + parseInt($self_paddingbottom) ) );
54
55 	}else{
56 		$obj.css('height', jQuery('.content-wrapper', $obj).height());
57 	}
58
59 	if(!jQuery('.side-menu').length){
60 		$obj.width(jQuery('html').width());		
61 	}else{
62 		$obj.css('width', 'auto');		
63 	}
64 	
65 }
66
67 /* MAIN MENU (submenu slide and setting up of a select box on small screen)*/
68 function initializeMainMenu() {
69
70 	"use strict";
71 	var $mainMenu = jQuery('#main-menu').children('ul');
72
73 	if(Modernizr.mq('only all and (max-width: 1024px)') ) {
74
75 	
76
77 		/* Responsive Menu Events */
78 		var addActiveClass = false;
79 	
80 		jQuery('.subMenu').css('display', 'none');
81 		jQuery("li:not(.menu-item-object-neko_homesection) a.hasSubMenu, .menu-item-language-current.menu-item-has-children").unbind('click');
82 		jQuery('li',$mainMenu).unbind('mouseenter mouseleave');
83
84
85 		jQuery("a.hasSubMenu").on("click", function(e) {
86
87 			var $this = jQuery(this);	
88 			e.preventDefault();
89
90
91 			addActiveClass = $this.parent("li").hasClass("Nactive");
92
93
94 			$this.parent("li").removeClass("Nactive");
95 			$this.next('.subMenu').slideUp('fast');
96
97
98
99 			if(!addActiveClass) {
100 				$this.parents("li").addClass("Nactive");
101 				$this.next('.subMenu').slideDown('fast');
102
103 			}else{
104 				$this.parent().parent('li').addClass("Nactive");
105 			}
106
107 			return;
108 		});
109
110		/** condition for wpml dropdown menu **/
111		jQuery(".menu-item-language-current.menu-item-has-children").on("click touchend", function(e) {
112
113			var $this = jQuery(this);	
114			e.preventDefault();
115
116			addActiveClass = $this.hasClass("Nactive");
117
118
119			$this.removeClass("Nactive");
120			$this.children('.sub-menu').slideUp('fast');
121			
122
123			if(!addActiveClass) {
124				$this.addClass("Nactive");
125				$this.children('.sub-menu').slideDown('fast');
126			}
127
128			return;
129		});
130
131
132 	}else{
133
134
135 		jQuery("li", $mainMenu).removeClass("Nactive");
136 		jQuery('li:not(.menu-item-object-neko_homesection) a', $mainMenu).unbind('click');
137 		jQuery('.subMenu, .sub-menu').css('display', 'none');
138
139 		jQuery('li',$mainMenu).hover(
140
141 			function() {
142
143 				var $this = jQuery(this),
144 				$subMenu = $this.children('.subMenu, .sub-menu');
145
146
147 				if( $subMenu.length ){
148
149 				$this.addClass('hover').stop();	
150
151 				}else {
152
153 					if($this.parent().is(jQuery(':gt(1)', $mainMenu))){
154
155 						$this.stop(false, true).fadeIn('slow');
156
157 					}
158 				}
159
160
161 				if($this.parent().is(jQuery(':gt(1)', $mainMenu))){
162
163 					$subMenu.stop(true, true).fadeIn(200,'easeInOutQuad'); 
164 					
165 					if($this.parents("li.primary").hasClass('nk-submenu-right')){
166 						$subMenu.css('left', -$subMenu.parent().outerWidth(true));
167 					}else{
168 						$subMenu.css('left', $subMenu.parent().outerWidth(true));
169 					}
170
171
172 				}else{
173
174 					$subMenu.stop(true, true).delay( 300 ).fadeIn(200,'easeInOutQuad');  					
175
176 				}
177
178 			}, function() {
179
180 				var $this = jQuery(this),
181 				$subMenu = $this.children('ul');
182
183 				if($this.parent().is(jQuery(':gt(1)', $mainMenu))){
184
185
186 					$this.children('ul').hide();
187 					$this.children('ul').css('left', 0);
188
189
190 				}else{
191
192 					$this.removeClass('hover');
193 					$subMenu.stop(true, true).delay( 300 ).fadeOut();
194 				}
195
196 				if( $subMenu.length ){$this.removeClass('hover');}
197
198 			});
199
200 	}
201 }
202
203
204
205 /* the function to decide the number of columns */
206 function setColumns(originalDivider) {
207 	var columns  = '';
208 	if(jQuery(window).width() <= 767) {
209 		columns = 2;
210 	} else {
211 		columns = originalDivider;
212 	}
213 	return columns;
214 }
215
216
217
218/* TO TOP BUTTON */
219function toTop(mobile){
220
221	jQuery('#neko-to-top').remove();
222
223	if(isDesktop === true){
224
225		if(!jQuery('#neko-to-top').length){
226			jQuery('body').append('<a href="#" id="neko-to-top"><i class="neko-icon-up-open"></i></a>');
227		}
228
229	}else{
230
231		if(!jQuery('#neko-to-top').length){
232			jQuery('.neko-footer #copyright').append('<a href="#" id="neko-to-top" class="toptop-static"><i class="neko-icon-up-open"></i></a>');
233		}
234
235	}
236
237	if (jQuery(this).scrollTop() > 100) {
238
239		jQuery('#neko-to-top').css('right', 15);
240		jQuery('#neko-to-top').css('opacity', 1);
241	} else {
242		jQuery('#neko-to-top').css({'opacity': 0, 'right' : -150});
243
244	}
245
246
247	jQuery(window).scroll(function () {
248		if (jQuery(this).scrollTop() > 100) {
249			//jQuery('#neko-to-top').fadeIn('fast');
250			jQuery('#neko-to-top').css('right', 15);
251			jQuery('#neko-to-top').css('opacity', 1);
252		} else {
253			jQuery('#neko-to-top').css({'opacity': 0, 'right' : -150});
254
255		}
256	});
257
258	jQuery('#neko-to-top').click(function (e) {
259		e.preventDefault();
260		jQuery("html, body").animate({
261			scrollTop: 0
262		}, 800, 'easeInOutCirc');
263
264	});
265/*	}else{
266
267		if(jQuery('#neko-to-top').length)
268			jQuery('#neko-to-top').remove();
269
270	}*/
271
272}
273
274
275function fixed_header_management(){
276	var $window = jQuery(window);
277
278/*	console.log('dh '+jQuery(document).height());
279	console.log('wh '+jQuery(window).height() );*/
280
281    if( jQuery('.header-opaque').length && ( jQuery(document).height() > ( jQuery(window).height() + 200 ) ) && !jQuery('.navbar-static-top').length && Modernizr.mq('only all and (min-width: 1025px)')  ){
282
283    	if ( jQuery(window).scrollTop() >= 1 ) {
284    		jQuery('#mainHeader').addClass('nk-fixed-header');
285    		jQuery('body').addClass('nk-header-scrolled');
286    	} else {
287    		jQuery('#mainHeader').removeClass('nk-fixed-header');
288    		jQuery('body').removeClass('nk-header-scrolled');
289    	}
290
291    	/* On Scroll */
292    	$window.on('scroll.nekofixedheader', function(e) {
293    		if ( jQuery(this).scrollTop() >= 1 ) {
294    			jQuery('body:not(.side-menu) #mainHeader').addClass('nk-fixed-header');
295    			jQuery('body').addClass('nk-header-scrolled');
296    		} else {
297    			jQuery('body:not(.side-menu) #mainHeader').removeClass('nk-fixed-header');
298    			jQuery('body').removeClass('nk-header-scrolled');
299    		}
300    	});
301    }else{
302
303    	$window.off('scroll.nekofixedheader');
304    }
305}
306
307
308
309function preheader_management(){
310
311	if(jQuery('.nk-autohide-scroll').length && ( ( jQuery(document).height() + 200 ) > jQuery(window).height() )  && Modernizr.mq('only all and (min-width: 769px)') ){
312
313
314		if ( jQuery(window).scrollTop() >= 50 ) {
315
316			jQuery('.nk-autohide-scroll').css('height', 0).css('display', 'none').end();
317
318
319		} else {
320
321			jQuery('.nk-autohide-scroll').css('display', 'block').css('height', 'auto').end();
322
323		}
324
325		/* On Scroll */
326		jQuery(window).scroll(function () {
327
328			if ( jQuery(this).scrollTop() >= 50 ) {
329
330				jQuery('.nk-autohide-scroll').css('height', 0).slideUp('fast').end();
331
332
333			} else {
334
335				jQuery('.nk-autohide-scroll').css('height', 'auto').slideDown('fast').end();
336
337
338			}
339		});	
340	}
341}
342
343
344function boxed_transparent_fixed_management(){
345
346	    if( jQuery('.boxed-layout').length && jQuery('.header-transparent').length  && !jQuery('.navbar-static-top').length ){
347
348    		if( Modernizr.mq('only all and (min-width: 1025px)') ){
349	    		jQuery('.boxed-layout #global-wrapper').css('margin-top', 40);
350
351	    		if ( jQuery(window).scrollTop() >= 40 ) {
352	    			jQuery('.boxed-layout #mainHeader').css('top', 0);
353	    		}else{
354	    			jQuery('.boxed-layout #mainHeader').css('top', 40);
355	    		}
356	    		
357
358	    		jQuery(window).scroll(function(event) {
359	    			if( jQuery(window).scrollTop() >= 40 ){
360	    				jQuery('.boxed-layout #mainHeader').css('top', 0);
361	    			}else{
362	    				jQuery('.boxed-layout #mainHeader').css('top', 40);
363	    			}
364	    		});
365    		}else{
366    			jQuery('.boxed-layout #mainHeader').css('top', 0);
367    			jQuery('.boxed-layout #global-wrapper').css('margin-top', 0);
368    		}
369    	}
370}
371
372
373function parallax_management(){
374
375	var $window = jQuery(window); /* You forgot this line in the above example */
376
377    if(jQuery('*[data-type="background"]').length && Modernizr.mq('only all and (min-width: 1025px)') ){
378
379    	
380
381    	jQuery('.neko-parallax-slice').css({
382    		'background-attachment': 'fixed',
383    		'background-position': '50% 0'
384    	});
385
386
387
388    	jQuery('*[data-type="background"]').each(function(){
389
390    		var $bgobj = jQuery(this);  /* assigning the object */
391    		var $objPos = $bgobj.offset().top;
392
393    		//$bgobj.style.backgroundPosition = "0px " + (0 - (Math.max(document.documentElement.scrollTop, document.body.scrollTop) / 4)) + "px";
394
395
396    		$window.on('scroll.nekoparallax',function() {
397
398    			var startPos = ( $objPos > 1500 && $bgobj.data('speed') > 0 ) ?  $window.scrollTop() - $bgobj.offset().top :  $window.scrollTop() ; 
399    			
400    			var yPos = -(  startPos / $bgobj.data('speed') );
401
402    			/* Put together our final background position */
403    			var coords = '50% '+ yPos + 'px';
404
405    			/* Move the background */
406    			$bgobj.css({ backgroundPosition: coords });
407    		});
408    	});
409
410    }else{
411    	
412    	$window.off('scroll.nekoparallax');
413
414    	jQuery('.neko-parallax-slice').css({
415    		'background-attachment': 'scroll',
416    		'background-size': 'cover',
417    		'background-position': 'center center'
418    	});
419    }
420
421}
422
423
424function fixed_footer_management(){
425    if(  jQuery(".fixed-footer").length && isDesktop === true  ){
426    	var OffsetBottom = jQuery('#main-footer-wrapper').outerHeight(true);
427    	jQuery('.fixed-footer main').css('margin-bottom', OffsetBottom - 1 );
428    }else{
429    	jQuery('.fixed-footer main').css('margin-bottom', 0);
430
431    }
432}
433
434
435
436function neko_header_cart_management(){
437	  if(  jQuery("#neko-cart-link").length && isDesktop === true  ){
438
439	    jQuery('#neko-cart-link').hover(function() {
440	    	jQuery('#neko-cart-drop-content').stop(true, false).fadeIn('fast');
441	    }, function() {
442	    	jQuery('#neko-cart-drop-content').stop(true, false).delay(500).fadeOut('fast');
443	    });
444
445    }else{
446    	jQuery('#neko-cart-link').off('hover');
447    }
448}
449
450/***************** End Custom functions *******************/
451
452
453
454/**
455 * Resize only function call
456 */
457 jQuery(window).on("resize",function(e){
458
459
460
461	 	Modernizr.addTest('ipad', function () {
462	 		return !!navigator.userAgent.match(/iPad/i);
463	 	});
464
465	 	if (!Modernizr.ipad) {  
466	 		initializeMainMenu(); 
467	 	}
468
469	 	preheader_management();
470	 	boxed_transparent_fixed_management();
471	 	parallax_management();
472	 	fixed_footer_management();
473	 	fixed_header_management();
474	 	neko_header_cart_management();
475
476	 	/* mobile detection */
477	 	if(Modernizr.mq('only all and (max-width: 767px)') ) {
478	 		isMobile = true;
479	 	}else{
480	 		isMobile = false;
481	 	}
482
483
484	 	/* desktop detection */
485	 	if(Modernizr.mq('only all and (max-width: 1024px)') ) {
486	 		isDesktop = false;
487	 	}else{
488	 		isDesktop = true;
489	 	}
490
491 });
492
493/**
494 * Load and resize function call
495 */
496 jQuery(window).on("load resize",function(e){
497 	toTop(isMobile);
498});
499
500/**
501 * Doc ready function
502 */
503 (function($) {
504 	"use strict";
505
506 	/* mobile detection */
507 	if(Modernizr.mq('only all and (max-width: 767px)') ) {
508 		isMobile = true;
509 	}else{
510 		isMobile = false;
511 	}
512
513 	/* desktop detection */
514 	if(Modernizr.mq('only all and (max-width: 1024px)') ) {
515 		isDesktop = false;
516 	}else{
517 		isDesktop = true;
518 	}
519
520
521 	/*
522    |--------------------------------------------------------------------------
523    | IPAD HOVER BUG FIX
524    |--------------------------------------------------------------------------
525    */ 
526     
527    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
528    	$("figure.img-hover a").unbind('click');
529    	$("figure.img-hover").bind('touchstart', function(){});
530    }
531
532 	/*
533    |--------------------------------------------------------------------------
534    | END IPAD HOVER BUG FIX
535    |--------------------------------------------------------------------------
536    */   
537
538
539
540
541    /*
542    |--------------------------------------------------------------------------
543    | RESPONSIVE TEXT
544    |--------------------------------------------------------------------------
545    */
546    if(jQuery('.resHeading1').length){
547    	jQuery(".resHeading1").fitText(1.2, { minFontSize: '24px', maxFontSize: '125px' });
548    }
549    if(jQuery('.resHeading2').length){
550    	jQuery(".resHeading2").fitText(1.2, { minFontSize: '18px', maxFontSize: '75px' });
551    }
552    if(jQuery('.resHeading3').length){
553    	jQuery(".resHeading3").fitText(1.1, { minFontSize: '18px', maxFontSize: '50px' });
554    }
555
556    /*
557    |--------------------------------------------------------------------------
558    | INIT MENU
559    |--------------------------------------------------------------------------
560    */
561    preheader_management();
562    initializeMainMenu();
563    boxed_transparent_fixed_management();
564    parallax_management();
565    neko_header_cart_management();
566
567    /* Debug css rules */
568    //countCSSRules();
569   
570
571    /*
572    |--------------------------------------------------------------------------
573    | Transparent header color animation
574    |--------------------------------------------------------------------------
575    */
576    if( jQuery('.header-transparent').length ){
577    	/* On load */
578
579    	// if( jQuery('.no-page-header').length && !jQuery('.wpb_row').length && !jQuery('.blog').length ){
580    	// 	jQuery('#mainHeader').addClass('scrolled');
581    	// }else{
582
583    		if ( jQuery(window).scrollTop() >= 50 ) {
584    			jQuery('#mainHeader').addClass('scrolled');
585
586    		} else {
587    			jQuery('#mainHeader').removeClass('scrolled');
588    		}
589
590    		/* On Scroll */
591    		jQuery(window).scroll(function () {
592    			if ( jQuery(this).scrollTop() >= 50 ) {
593    				jQuery('#mainHeader').addClass('scrolled');
594    			} else {
595    				jQuery('#mainHeader').removeClass('scrolled');
596    			}
597    		});
598
599    	// }
600
601
602
603
604    }
605
606
607    /*
608    |--------------------------------------------------------------------------
609    | VC detection
610    |--------------------------------------------------------------------------
611    */
612    // if( !jQuery('.wpb_row').length ){
613    // 	jQuery('body.header-transparent.no-page-header main').css('padding-top', 44);
614    // }else{
615    // 	jQuery('body.header-transparent.no-page-header').css('padding-top', 0);
616    // }
617
618
619
620
621    /*
622    |--------------------------------------------------------------------------
623    | TOOLTIP
624    |--------------------------------------------------------------------------
625    */
626    jQuery('.tips').tooltip();
627    
628
629 	/*
630    |--------------------------------------------------------------------------
631    | Fit Vidz
632    |--------------------------------------------------------------------------
633    */   
634    jQuery('.entry-content iframe, .entry-content embed, iframe').parent().fitVids({customSelector: "iframe[src^='https://w.soundcloud.com/'], iframe[src^='http://www.dailymotion.com/'], embed[src='http://v.wordpress.com/']"});
635    
636
637    /*
638    |--------------------------------------------------------------------------
639    | BACKGROUND VIDEO
640    |--------------------------------------------------------------------------
641    */
642
643    /* youtube */
644    if(jQuery('.youtube-video-bg').length){
645    	jQuery('.youtube-video-bg').each(function() {
646    		var $this = jQuery(this);
647    		$this.mb_YTPlayer();  
648    		$this.on("YTPData",function(e){
649    			jQuery(this).setProperty( 'background-image', 'none', 'important' );
650    		});
651    	});  
652    }
653    
654    /* HTML-5 */
655    if ($('#html5Video').length){ }
656
657    /*
658    |--------------------------------------------------------------------------
659    | Rollover boxIcon
660    |--------------------------------------------------------------------------
661    */ 
662    if($('.boxIcon').length){
663
664    	$('.boxIcon').hover(function() {
665
666    		var $this = $(this);
667
668    		$this.css('opacity', '1');   
669    		$this.addClass('hover');
670    		$this.find('.boxContent>p').stop(true, false).css('display', 'block');
671    		$this.find('i').addClass('triggeredHover');    
672
673    	}, function() {
674    		var $this = $(this);
675    		$this.removeClass('hover');
676    		$this.find('i').removeClass('triggeredHover'); 
677    	});   
678    }   
679
680
681    /*
682    |--------------------------------------------------------------------------
683    | PRETTY PHOTOS
684    |--------------------------------------------------------------------------
685    */      
686    if( jQuery("a.prettyPhoto").length){
687    	jQuery("a.prettyPhoto").prettyPhoto({
688    		animation_speed:'fast',
689    		slideshow:10000, 
690    		hideflash: true,
691    		social_tools:false,
692    		allow_resize: true
693    	});
694    }
695
696    /*
697    |--------------------------------------------------------------------------
698    | MAGNIFIC POPUP
699    |--------------------------------------------------------------------------
700    */      
701    if( jQuery("a.neko-magnificPopImg").length){
702    	
703    	jQuery("a.neko-magnificPopImg").magnificPopup({
704    		type: 'image',
705    		fixedContentPos: false,
706    		fixedBgPos: true,
707    		preloader: true,
708    		midClick: true,
709    		focus: 'a.neko-magnificPopImg',
710    		closeOnContentClick:true
711    	});
712    }
713
714    if( jQuery("a.neko-magnificPopVideo").length){
715
716    	jQuery("a.neko-magnificPopVideo").magnificPopup({
717    		fixedContentPos: false,
718    		type: 'iframe',
719    		preloader: false,
720    		fixedBgPos: true,
721    		mainClass: 'mfp-fade',
722    		midClick: true,
723    		disableOn: 200,
724    		closeOnContentClick:true,
725    		focus: 'a.neko-magnificPopVideo',
726    		patterns: {
727    			youtube: {
728    				index: 'youtube.com/', 
729    				id: 'v=', 
730    				src: '//www.youtube.com/embed/%id%?autoplay=1' 
731    			},
732    			vimeo: {
733    				index: 'vimeo.com/',
734    				id: '/',
735    				src: '//player.vimeo.com/video/%id%?autoplay=1'
736    			}
737    		}
738
739    	});
740    }
741    
742
743    if( $("a.neko-magnificPopGallery").length){
744
745    	$("a.neko-magnificPopGallery").click(function (e) {
746
747    		var items = [];
748
749    		items.push( { src: $(this).attr('href')  } );
750    		
751    		if($(this).data('gallery')){
752
753    			var $arraySrc = $(this).data('gallery').split(',');
754
755    			$.each( $arraySrc, function( i, v ){
756    				items.push( {
757    					src: v 
758    				});
759    			});     
760    		}
761
762    		$.magnificPopup.open({
763    			type:'image',
764    			fixedContentPos: false,
765    			mainClass: 'mfp-fade',
766    			items:items,
767    			fixedBgPos: true,
768    			focus: 'a.neko-magnificPopGallery',
769    			gallery: {
770    				enabled: true 
771    			}
772    		});
773
774    		e.preventDefault();
775    	});
776
777    }
778
779
780
781    /*
782    |--------------------------------------------------------------------------
783    | OWL
784    |--------------------------------------------------------------------------
785    */  
786
787    if(jQuery('.owlCarouselSlideshow').length){
788    	jQuery(".owlCarouselSlideshow").owlCarousel({
789    		items:1,
790    		pagination:true,
791    		paginationNumbers:true,
792    		autoHeight : true,
793
794    	});
795    }
796
797    if(jQuery('.nekoOwlCarouselSlideshowThumb').length){
798
799
800    	var owlThumb = jQuery('.nekoOwlCarouselSlideshowThumb');
801
802    	owlThumb.owlCarousel({
803    		navigation: false,
804    		items:1,
805    		singleItem:true,
806    		pagination:true,
807    		transitionStyle : "fade",
808    		responsive: true,
809    		autoHeight : true,
810
811
812    		afterInit : function() {
813
814		    	if( jQuery(this.owl.userItems).width() >= 750 ){
815
816
817		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls').css('margin-top', 0);
818		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls .owl-pagination').css({
819		    			'text-align': 'left',
820		    			'line-height' : 0
821		    		});
822
823		    		jQuery('.nekoOwlCarouselSlideshowThumb .owl-controls .owl-page').css('width', '20%');
824
825		    		var Links = jQuery('.owl-controls .owl-page span', this.owl.baseElement);
826
827		    		jQuery.each( this.owl.userItems, function (i) {
828
829		    			jQuery(Links[i]).addClass('nekoGalThumbNav').css({
830		    				'background': 'url(' + $(this).find('img').attr('src') + ') center center no-repeat',
831		    				'-webkit-background-size': 'cover',
832		    				'-moz-background-size': 'cover',
833		    				'-o-background-size': 'cover',
834		    				'background-size': 'cover'
835		    			});
836
837		    		});	
838
839		    	}else{
840
841		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls').css('margin-top', 10);
842		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls .owl-pagination').css('text-align', 'center');
843
844		    	}
845
846    		},
847
848
849    		afterUpdate:function() {
850
851		    	if( jQuery(this.owl.userItems).width() >= 750 ){
852
853
854		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls').css('margin-top', 0);
855		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls .owl-pagination').css({
856		    			'text-align': 'left',
857		    			'line-height' : 0
858		    		});
859
860		    		jQuery('.nekoOwlCarouselSlideshowThumb .owl-controls .owl-page').css('width', '20%');
861
862		    		var Links = jQuery('.owl-controls .owl-page span', this.owl.baseElement);
863
864		    		jQuery.each( this.owl.userItems, function (i) {
865
866		    			jQuery(Links[i]).addClass('nekoGalThumbNav').css({
867		    				'background': 'url(' + $(this).find('img').attr('src') + ') center center no-repeat',
868		    				'-webkit-background-size': 'cover',
869		    				'-moz-background-size': 'cover',
870		    				'-o-background-size': 'cover',
871		    				'background-size': 'cover'
872		    			});
873
874		    		});	
875
876		    	}else{
877
878		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls').css('margin-top', 10);
879		    		jQuery('.nekoOwlCarouselSlideshowThumb.owl-theme .owl-controls .owl-pagination').css('text-align', 'center');
880
881		    	}
882
883    		}
884
885
886    	});
887
888
889
890
891    }
892
893 
894
895
896
897    if($('.neko-data-owl').length){
898
899    	$( '.neko-data-owl' ).each(function( index ) {
900    		var $this =$(this);
901    		$this.owlCarousel(
902    		{
903    			items:$this.data('neko_items'),
904    			navigation:$this.data('neko_navigation'),
905    			singleItem:$this.data('neko_singleitem'),
906    			autoPlay:($this.find('.item').length == 1) ? false : $this.data('neko_autoplay'),
907    			itemsScaleUp:true,
908    			navigationText:['<i class="neko-icon-angle-left"></i>','<i class="neko-icon-angle-right"></i>'], 
909    			pagination:$this.data('neko_pagination'),
910    			paginationNumbers:$this.data('neko_paginationnumbers'),
911    			autoHeight:$this.data('neko_autoheight'),
912    			mouseDrag:$this.data('neko_mousedrag'),
913    			transitionStyle:$this.data('neko_transitionstyle'),
914    			responsive:true,
915    			lazyLoad : true,
916    			addClassActive:true,
917    			itemsDesktop : [1199,3],
918    			itemsDesktopSmall: [979,2],
919    			itemsTablet: [768,1],
920    			itemsMobile: [479,1],  			
921    			afterInit: function(){
922
923    				$('.active .caption-content-position', $this).children().each(function(index, val) {
924    					$(this).addClass('animated '+$(this).data('neko_animation'));
925    				});
926    			},
927    			beforeMove:  function(){
928    				$('.caption-content-position').children().each(function(index, val) {
929    					$(this).removeClass('animated '+$(this).data('neko_animation'));
930    				});
931    			},
932    			afterMove:  function(){
933    				$('.active .caption-content-position', $this).children().each(function(index, val) {
934    					$(this).addClass('animated '+$(this).data('neko_animation'));
935    				});
936
937    			}
938    		});
939
940});
941
942}
943
944
945
946
947    /*
948    |--------------------------------------------------------------------------
949    | ONE PAGEARROW NAV
950    |--------------------------------------------------------------------------
951    */  
952
953
954    if(jQuery('.arrowsNav').length){
955
956    	jQuery('.arrowsNav').each(function(i){
957    		var $this = jQuery(this),
958    		$top = parseInt($this.parent().css('padding-top'));
959    		$this.css('top', -$top );
960    		
961    	});	
962    	
963    	
964    	var mHHeight = (jQuery('.fixedMenu').length)?jQuery('#mainHeader').parent().outerHeight(true) - 1:0;
965
966
967    	jQuery('.arrowsNav .navUp').click(function (e) {
968
969    		e.preventDefault();
970
971    		var $this = jQuery(this),
972    		section = $this.parents('section.mainSection');
973    		
974
975    		if( section.prev('section.mainSection').length ){
976    			jQuery('html,body').animate({ scrollTop: section.prev('section.mainSection').offset().top - mHHeight}, 'slow', 'easeInOutQuad');
977    		}  		
978
979    	});
980
981    	jQuery('.arrowsNav .navDown').click(function (e) {
982    		
983    		e.preventDefault();
984
985    		var $this = jQuery(this),
986    		section = $this.parents('section.mainSection');
987    		
988
989    		if( section.next('section.mainSection').length ){
990    			jQuery('html,body').animate({ scrollTop: section.next('section.mainSection').offset().top - mHHeight}, 'slow', 'easeInOutQuad');
991    		}
992
993    	});
994    }
995
996    /*
997    |--------------------------------------------------------------------------
998    | ONE PAGE NAV
999    |--------------------------------------------------------------------------
1000    */  
1001
1002
1003    jQuery('#mainHeader a, a.btn, .featureBox a').each( function(index, val) {
1004    	var $this = jQuery(this);
1005
1006    	if($this.attr('href') !== undefined){
1007
1008    		$this.bind('click',function(e){
1009    			var $anchor  = $this,
1010    			content      = $anchor.attr('href'),
1011    			checkURL     = content.match(/^#([^\/]+)$/i),
1012    			mHHeight     = (jQuery('.navbar-fixed-top').length)?jQuery('.navbar-header').outerHeight(true):0;
1013
1014    			if(checkURL){
1015    				e.preventDefault();
1016    				jQuery('html,body').animate({ scrollTop : jQuery($anchor.attr('href')).offset().top - mHHeight + "px"}, 1200, 'easeInOutExpo');
1017    				jQuery('#mainHeader a').parents('li').removeClass('active');
1018            $this.parents('li').addClass('active');
1019            if(jQuery('.navbar-fixed-top').length){
1020             if(jQuery(".navbar-toggle").css('display') == 'block'){
1021              jQuery(".navbar-toggle").trigger('click');
1022            }
1023    				}
1024    			}
1025    		});
1026    	}
1027    });
1028
1029
1030
1031    /*
1032    |--------------------------------------------------------------------------
1033    | EDIT LINKS
1034    |--------------------------------------------------------------------------
1035    */
1036
1037    if(jQuery('a.post-edit-link').length || jQuery('a.comment-edit-link').length){
1038    	jQuery('a.post-edit-link, a.comment-edit-link').attr('target', '_blank');	
1039    }
1040
1041
1042
1043    if(!$.trim( $('.site-content').html() ).length  ){
1044    	$('#page-content').css('display', 'none');
1045    }
1046
1047
1048	 /**
1049	  * IE 9 progress bar
1050	  * @param 
1051	  */
1052    if( jQuery('.lt-ie10').length &&  jQuery('.vc_bar').length){
1053    	jQuery('.vc_bar').each(function(index, el) {
1054    		var pourcent = jQuery(this).data('percentage-value');
1055    		jQuery(this).css({
1056    			'width': pourcent +'%',
1057    			'height': '100%',
1058    			'display': 'block' 
1059    		}); 
1060    	});
1061    }
1062
1063
1064
1065
1066
1067
1068
1069	jQuery(document).on('click','.ajax-remove-item', function(e) { 
1070		e.preventDefault();		
1071
1072		var $thisbutton = $(this);
1073		
1074		var data = {
1075				action: 		'woocommerce_remove_from_cart',
1076				remove_item: 	$thisbutton.attr('rel')
1077		};
1078		
1079		var $window_width = $(window).width();
1080		var $document_scroll = $(document).scrollTop();
1081		
1082
1083		
1084		jQuery.post( woocommerce_params.ajax_url, data, function( response ) {
1085
1086			var fragments = response.fragments;
1087			var cart_hash = response.cart_hash;
1088			
1089			if ( fragments ) {
1090				jQuery.each(fragments, function(key, value) {
1091					jQuery(key).replaceWith(value);
1092				});
1093
1094				jQuery('#neko-cart-drop-content').css('display', 'block');
1095
1096			}
1097			
1098		});
1099		
1100	});
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113}) (jQuery); /* END DOC READY */
1114
1115
1116
1117/*
1118|--------------------------------------------------------------------------
1119| EVENTS TRIGGER AFTER ALL IMAGES ARE LOADED
1120|--------------------------------------------------------------------------
1121*/
1122jQuery(window).load(function() {
1123	"use strict";
1124
1125	 /**
1126	  * IE 9 same height cols
1127	  * @param 
1128	  */
1129    if( jQuery('.lt-ie10').length &&  jQuery('.vc_row-o-equal-height').length ){
1130    	ie9sameheightbox();
1131    }
1132
1133
1134
1135	fixed_footer_management();
1136
1137   /*
1138    |--------------------------------------------------------------------------
1139    |  fullwidth image a video
1140    |--------------------------------------------------------------------------
1141    */
1142    if (jQuery('.nk-fullscreen').length){ fullscreenWrapper(jQuery('.nk-fullscreen')); }
1143
1144    jQuery(window).on("resize",function(e){
1145    	if (jQuery('.nk-fullscreen').length)
1146    	{
1147    		fullscreenWrapper(jQuery('.nk-fullscreen'));
1148    	}
1149    });
1150
1151    if(jQuery('.header-transparent .neko_featured_post').length){
1152
1153    	jQuery('.header-transparent .neko_featured_post').css('padding-top', jQuery('#mainHeader').outerHeight(true));
1154
1155    	jQuery(window).on("resize",function(e){
1156    		jQuery('.header-transparent .neko_featured_post').css('padding-top', jQuery('#mainHeader').outerHeight(true));	
1157    	});
1158
1159    }
1160
1161	 fixed_header_management();
1162
1163   /*
1164    |--------------------------------------------------------------------------
1165    | WP Masonry for blog
1166    |--------------------------------------------------------------------------
1167    */  
1168    if (jQuery('.blog-grid').length){
1169
1170	    //set the container that Masonry will be inside of in a var
1171	    var container = document.querySelector('.blog-grid');
1172	    //create empty var msnry
1173	    var msnry;
1174	    // initialize Masonry after all images have loaded
1175	    imagesLoaded( container, function() {
1176	    	msnry = new Masonry( container, {
1177	    		itemSelector: '.gridBlogItem',
1178	    		onLayout: function( $elems, instance ) {
1179	    			
1180	    		}
1181	    	});
1182	    	
1183	    	jQuery('.blog-grid').animate({ opacity: 1 }, 300, function() {msnry.layout();});
1184
1185	    });
1186
1187	    jQuery( window ).on( "orientationchange", function( event ) {
1188	    	msnry.layout();
1189	    });
1190	}
1191
1192
1193
1194   /*
1195    |--------------------------------------------------------------------------
1196    | ONE PAGE NAV BACK FROM MULTI PAGE
1197    |--------------------------------------------------------------------------
1198    */  
1199
1200    var url = document.location.toString(), 
1201    idx = url.indexOf("#");
1202    var hash = idx != -1 ? url.substring(idx+1) : "";
1203
1204    if(typeof hash !== 'undefined' && hash !== ''){
1205    	setTimeout(function(){ jQuery('a[href=#'+hash+']').trigger('click'); }, 800);
1206    } 
1207
1208
1209
1210	/*
1211    |--------------------------------------------------------------------------
1212    | PRELOADER
1213    |--------------------------------------------------------------------------
1214    */
1215    if(jQuery('#status').length){
1216        // jQuery('#status').fadeOut(); // will first fade out the loading animation
1217        jQuery('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
1218        // jQuery('html').delay(350).css({'overflow':'visible'});
1219    }     
1220
1221
1222	/*
1223    |--------------------------------------------------------------------------
1224    |  Header Animation titles & subtitle
1225    |--------------------------------------------------------------------------
1226    */
1227    if(jQuery('.page-header h1.big-heading').length){
1228
1229    	if(!jQuery('.lt-ie10').length){
1230    		jQuery('.page-header h1.big-heading').addClass('neko-fast-animated').delay(1000).queue(function(){
1231    			jQuery(this).addClass("fadeInDown").dequeue();
1232    		});
1233    	}else{
1234    		jQuery('.page-header h1.big-heading').css('opacity', 1);
1235    	}
1236
1237
1238    }
1239
1240    if(jQuery('.page-header h2.subtitle').length){
1241    	if(!jQuery('.lt-ie10').length){
1242	    	jQuery('.page-header h2.subtitle').addClass('neko-fast-animated').delay(1000).queue(function(){
1243	    		jQuery(this).addClass("fadeInUp").dequeue();
1244	    	});
1245    	}else{
1246    		jQuery('.page-header h1.big-heading').css('opacity', 1);
1247    	}
1248    }
1249
1250	/*
1251    |--------------------------------------------------------------------------
1252    |  Header Animation titles & subtitle
1253    |--------------------------------------------------------------------------
1254    */
1255    if(jQuery('.gallery').length){
1256    	jQuery('.gallery-item').hover(function() {
1257    		jQuery('.gallery dd').stop().slideUp('fast').end();
1258    		jQuery('dd', this).stop().slideDown('fast').end();
1259    	}, function() {
1260    		jQuery('dd', this).stop().slideUp('fast').end();
1261    	});
1262    }
1263    
1264
1265
1266}); /* END WINDOW LOAD */
1267
1268

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.