PageSourceSearch

https://pandoraparfums.ru/local/templates/pandora/js/home.js?v=1.4

js pandoraparfums.ru collected 2026-10-08 14:17:03 UTC 13,267 bytes, 553 lines download raw bytes

1$(document).ready(function() {
2
3   /*==================================
4     Parallax
5     ====================================*/
6
7
8    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
9        // Detect Mobile User // No parallax
10        $('.parallaximg').addClass('ismobile');
11
12    } else {
13        // All Desktop 
14        $(window).bind('scroll', function (e) {
15            parallaxScroll();
16        });
17
18        function parallaxScroll() {
19            var scrolledY = $(window).scrollTop();
20            var sc = ((scrolledY * 0.3)) + 'px';
21            $('.parallaximg').css('marginTop', '' + ((scrolledY * 0.3)) + 'px');
22        }
23		
24    }
25	
26	/*==================================
27     Slick
28     ====================================*/
29
30if ($('.rs-slider-container').length > 0) {
31	$('.rs-slider-container').not('.slick-initialized').slick({
32		infinite: true,
33		slidesToShow: 1,
34		speed: 800,
35		dots: true,
36		autoplay: true,
37		lazyLoad: 'ondemand',
38		cssEase: 'cubic-bezier(0.845, 0.045, 0.355, 1)'
39	});
40}	
41	
42/*==================================
43     OwlCarousel
44     ====================================*/
45if ($('.reviews-slider').length > 0) {
46        $(".reviews-slider").owlCarousel({
47            items: 1,
48			margin: 10,
49            lazyLoad: true,
50            autoplay: false,
51            loop: true,
52            dots: false,
53            nav: false,
54            responsiveClass: true,
55			autoHeight:true, 
56            responsive: {
57                0: {
58                    items: 1,
59					lazyLoad: true,
60					autoplay: false,
61					loop: true,
62					dots: false,
63					nav: false,
64					responsiveClass: true,
65					autoHeight:true
66                }
67            }
68        });
69		 $("a.reviews-next").click(function () {
70            $(".reviews-slider").trigger('next.owl.carousel');
71        });
72        $("a.reviews-prev").click(function () {
73            $(".reviews-slider").trigger('prev.owl.carousel');
74        });
75}
76
77
78if($("#team-slider").length > 0){
79		$("#team-slider").owlCarousel({ 
80			items: 5,
81			pagination	: false,	
82			nav:true,
83			margin: 30,
84			navText: [
85			  "<span class='team-slider-left'><i class=' fa fa-angle-left '></i></span>",
86			  "<span class='team-slider-right'><i class=' fa fa-angle-right'></i></span>"
87			],
88			responsive: {
89					0: {
90						items: 1
91					},
92					544: {
93						items: 2
94					},
95					768: {
96						items: 3
97					},
98					992: {
99						items: 4
100					},
101					1200: {
102						items: 5
103					}
104			}
105		});
106	}
107
108function customPager(obj) {
109	/*var pagination = obj.find('.owl-dots');
110	obj.find('.owl-next').remove();
111	obj.find('.owl-prev').remove();
112	if(pagination.hasClass('disabled')){
113		return;
114	}
115	pagination.after("<div class='owl-next'><i class='fa fa-angle-right'></i>  </div>");
116    pagination.before("<div class='owl-prev'><i class='fa fa-angle-left'></i> </div>");*/
117}
118
119	
120	var logosSlider = $("#logos-slider");
121	if(logosSlider.length > 0){
122		logosSlider.owlCarousel({ 
123			items: 6,
124			nav:false,
125			dots: true,
126			autoplay: true,
127			margin: 30,
128			responsive: {
129					0: {
130						items: 1
131					},
132					480: {
133						items: 2
134					},
135					544: {
136						items: 3
137					},
138					768: {
139						items: 4
140					},
141					992: {
142						items: 5
143					},
144					1200: {
145						items: 6
146					}
147			},
148			onInitialized: function(){customPager(logosSlider)},
149			onResized: function(){customPager(logosSlider)}
150		});
151		
152		$("#logos-slider .owl-next").click(function () {
153        logosSlider.trigger('next.owl.carousel');
154		});
155		$("#logos-slider .owl-prev").click(function () {
156			logosSlider.trigger('prev.owl.carousel');
157		});
158	}
159	
160	
161	var latestProductSlider = $("#product-slider");
162	if(latestProductSlider.length > 0){
163		latestProductSlider.owlCarousel({
164			items: 4,
165			dots: true,
166			nav: false,
167			lazyLoad: true,
168			responsiveClass:true,
169			responsive: {
170					0: {
171						items: 1
172					},
173					544: {
174						items: 2
175					},
176					992: {
177						items: 3
178					},
179					1200: {
180						items: 4
181					}
182			},
183			onInitialized: function(){customPager(latestProductSlider)},
184			onResized: function(){customPager(latestProductSlider)}
185		});
186		$("#product-slider .owl-next").click(function () {
187        latestProductSlider.trigger('next.owl.carousel');
188		});
189		$("#product-slider .owl-prev").click(function () {
190			latestProductSlider.trigger('prev.owl.carousel');
191		});
192	}
193	
194	var similarProductSlider = $("#similar-product-slider");
195	if(similarProductSlider.length > 0){
196		similarProductSlider.owlCarousel({
197			items: 5,
198			dots: true,
199			nav: false,
200			lazyLoad: true,
201			responsiveClass:true,
202			responsive: {
203					0: {
204						items: 1
205					},
206					480: {
207						items: 2
208					},
209					768: {
210						items: 3
211					},
212					992: {
213						items: 4
214					},
215					1200: {
216						items: 5
217					}
218			},
219			onInitialized: function(){customPager(similarProductSlider)},
220			onResized: function(){customPager(similarProductSlider)}
221		});
222		$("#similar-product-slider .owl-next").click(function () {
223        similarProductSlider.trigger('next.owl.carousel');
224		});
225		$("#similar-product-slider .owl-prev").click(function () {
226			similarProductSlider.trigger('prev.owl.carousel');
227		});
228	}
229
230  	
231	// search-btn, search-close
232	$(".search-btn").on('click', function (e) {
233        $('.search-full').addClass("active"); //you can list several class names 
234        e.preventDefault();
235    });
236
237    $('.search-close').on('click', function (e) {
238        $('.search-full').removeClass("active"); //you can list several class names 
239        e.preventDefault();
240    });
241	
242	
243	 
244	// Product Details Modal Change large image when click thumb image
245    $(".modal-product-thumb a").click(function () {
246        var largeImage = $(this).find("img").attr('data-large');
247        $(".product-largeimg").attr('src', largeImage);
248        $(".zoomImg").attr('src', largeImage);
249    });
250	
251	
252	
253	// product details color switch
254    $(".swatches li").click(function () {
255        $(".swatches li.selected").removeClass("selected");
256        $(this).addClass('selected');
257    });
258	
259    $(".product-color a").click(function () {
260        $(".product-color a").removeClass("active");
261        $(this).addClass('active');
262
263    });
264
265    // Modal thumb link selected
266    $(".modal-product-thumb a").click(function () {
267        $(".modal-product-thumb a.selected").removeClass("selected");
268        $(this).addClass('selected');
269
270    });
271	
272	
273	// customs select by select2
274    // $("select").minimalect(); // REMOVED with  selct2.min.js
275	$(function(){	
276		if($('select.form-control').length > 0){
277			$('select.form-control').select2();
278		}
279	});
280	
281	
282	//NekoAnim
283	$(function(){	
284		if($('.activateAppearAnimation').length > 0){
285			nekoAnimAppear();
286			$('.reloadAnim').click(function (e) {
287				$(this).parent().parent().find('img[data-nekoanim]').attr('class', '').addClass('img-responsive');
288				nekoAnimAppear();
289				e.preventDefault();
290			});
291		}
292	});
293	
294	//checkbox modal
295	$(function(){
296		$('input[type="checkbox"].agreement-check').prop('checked',false);
297		$('button.modal-btn').prop('disabled',true);
298		$('input[type="checkbox"].agreement-check').on('change',function(){
299			if(this.checked){
300				$('button.modal-btn').attr('disabled',false);
301			}else{
302				$('button.modal-btn').prop('disabled',true);
303			}
304		});
305	});
306	
307	
308	//scroll up
309	$(function(){
310		$(window).scroll(function(){		
311			if($(this).scrollTop()>200){
312				$("#button-up").fadeIn();			
313			}else{
314				$("#button-up").fadeOut();
315			}		
316		});
317		$("#button-up").click(function() {
318		$("body,html").animate({scrollTop:0},800);
319		});
320	});
321	
322
323	$(function(){
324		if($('.smoothscroll').length > 0){
325			$(".smoothscroll").mCustomScrollbar({
326				advanced: {
327					updateOnContentResize: true
328
329				},
330
331				scrollButtons: {
332					enable: false
333				},
334
335				mouseWheelPixels: "100",
336				theme: "dark-2"
337
338			});
339		
340		}
341	});
342	
343	//fancybox
344	$(function(){	
345		if($('[data-fancybox]').length > 0){
346		$('[data-fancybox]').fancybox({
347					loop : true,
348					infobar : false,
349					toolbar  : true,
350					
351					buttons : [
352						'close'
353					],
354					thumbs : {
355						autoStart : true
356					},
357					caption : function( instance, item ) {
358						var caption = $(this).data('caption') || '';
359
360						return '<span data-fancybox-index></span>/<span data-fancybox-count></span>' + ( caption.length ? ' ' + caption : '' );
361					}
362					});
363		}
364	});
365	
366	// cart quantity changer sniper
367	$(function(){
368		if($(".quanitySniper").length > 0){
369			$(".quanitySniper").TouchSpin({
370				buttondown_class: "btn btn-link",
371				buttonup_class: "btn btn-link"
372			});
373		}
374	});
375	
376	
377	// product-carousel
378	$(function(){
379		if($('#product-carousel').length > 0){
380			$('#product-carousel').carousel({
381				interval: false,
382				wrap: false,
383				keyboard: false,
384				pause: 'null'
385			});
386			$('#product-carousel').carousel('pause');
387			
388			// zoom product
389			var productHeight = $('#product-carousel .product-carousel-item').height();
390			var productWidth = $('#product-carousel .product-carousel-item').width();
391			
392			$('#product-carousel .product-carousel-item a').each(function(){
393				var productWidthImg = $(this).find('img').naturalWidth();
394				var productHeightImg = $(this).find('img').naturalHeight();
395				if((productWidthImg > productWidth)&&(productHeightImg > productHeight)){
396					$(this).zoom();
397				}
398			})	
399		}
400	});
401	
402//change-view	
403	$(function(){
404		$('.change-view .grid-view').click(function(){
405			if($(this).hasClass('active')) {
406				$(this).siblings().removeClass('active');
407				$('.categoryProduct').addClass('grid-view');
408			}
409			else {
410				$(this).addClass('active');
411				$(this).siblings().removeClass('active');
412				$('.categoryProduct').addClass('grid-view');
413				}
414			$('.categoryProduct').removeClass('list-view');
415						
416			return false;
417			});
418					
419					
420		$('.change-view .list-view').click(function(){
421			if($(this).hasClass('active')) {
422				$(this).siblings().removeClass('active');
423				$('.categoryProduct').addClass('list-view');
424			}
425			else {
426				$(this).siblings().removeClass('active');
427				$(this).addClass('active');
428				$('.categoryProduct').addClass('list-view');
429			}
430			$('.category').removeClass('grid-view');
431						
432			return false;
433			});
434	});
435
436	// Customs tree menu script
437	$(function(){
438		$(".dropdown-tree-a").click(function () { //use a class, since your ID gets mangled
439			$(this).parent('.dropdown').toggleClass("open"); //add the class to the clicked element
440		});
441	});
442	
443	$(function(){
444		panelClose();
445		$(window).resize(function(){
446			panelClose();
447		});
448	});
449	
450	
451	//count
452	if($('.count').length){
453	$('.count').counterUp({
454                delay: 10,
455                time: 1000
456    });
457	}
458	
459});
460
461function panelClose(){
462	if($(window).width() <= 768) {
463		$('#accordionNo .panel').each(function(){
464				$(this).find('.panel-collapse').removeClass('in');
465				$(this).removeClass('bx-active');
466				$(this).find('[data-toggle="collapse"]').addClass('collapsed').attr("aria-expanded",false);
467			});
468		} else{
469			$('#accordionNo .panel').each(function(){
470				$(this).find('.panel-collapse').addClass('in');
471				$(this).addClass('bx-active');
472				$(this).find('[data-toggle="collapse"]').removeClass('collapsed').attr("aria-expanded",true);
473			});
474		}
475}
476function nekoAnimAppear(){
477	$("[data-nekoanim]").each(function() {
478
479		var $this = $(this);
480
481		$this.addClass("nekoAnim-invisible");
482		
483		if($(window).width() > 767) {
484			
485			$this.appear(function() {
486
487				var delay = ($this.data("nekodelay") ? $this.data("nekodelay") : 1);
488				if(delay > 1) $this.css("animation-delay", delay + "ms");
489
490				$this.addClass("nekoAnim-animated");
491				$this.addClass('nekoAnim-'+$this.data("nekoanim"));
492
493				setTimeout(function() {
494					$this.addClass("nekoAnim-visible");
495				}, delay);
496
497			}, {accX: 0, accY: -150});
498
499		} else {
500			$this.animate({ opacity: 1 }, 300, 'easeInOutQuad',function() { });
501		}
502	});
503}
504
505(function($){
506		  var
507		  props = ['Width', 'Height'],
508		  prop;
509
510		  while (prop = props.pop()) {
511		  (function (natural, prop) {
512			$.fn[natural] = (natural in new Image()) ? 
513			function () {
514			return this[0][natural];
515			} : 
516			function () {
517			var 
518			node = this[0],
519			img,
520			value;
521
522			if (node.tagName.toLowerCase() === 'img') {
523			  img = new Image();
524			  img.src = node.src,
525			  value = img[prop];
526			}
527			return value;
528			};
529		  }('natural' + prop, prop.toLowerCase()));
530		  }
531		}
532		(jQuery));
533		
534		
535	// Параллакс в яболчных мобилках
536var userAgent = window.navigator.userAgent;
537const uA = navigator.userAgent;
538const vendor = navigator.vendor;
539if ((/Safari/i.test(uA) && /Apple Computer/.test(vendor) && !/Mobi|Android/i.test(uA)) || ((userAgent.match(/iPad/i) || userAgent.match(/iPhone/i)) && /Apple Computer/.test(vendor))) {
540if(window.outerWidth < 768) {
541jQuery(window).scroll(function(){
542  var fromtop = jQuery(window).scrollTop();
543  jQuery('.rs-features-photo').css({"background-position-y": fromto
543p+"px"});
544  jQuery('.rs-features-photo').css({"background-size": "auto"});
545  jQuery('.rs-parallax').css({"background-position-y": fromtop+"px"});
546  jQuery('.rs-parallax').css({"background-size": "auto"});
547  jQuery('.rs-parallax-2').css({"background-position-y": fromtop+"px"});
548  jQuery('.rs-parallax-2').css({"background-size": "auto"});
549  jQuery('.rs-parallax2').css({"background-position-y": fromtop+"px"});
550  jQuery('.rs-parallax2').css({"background-size": "auto"});
551 });
552}
553}

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.