PageSourceSearch

https://static.maxaroma.com/public/js/core/home.js?ver=1790773749

js maxaroma.com collected 2026-10-02 07:16:08 UTC 6,974 bytes, 153 lines download raw bytes

1(function( $ ) {
2	$(document).ready(function() {
3		var checkData = setInterval(function() {
4			if ($('.yotpo-num-of-reviews').length) {			   
5			   // Set color code
6			   setYotpoViewAllLink();
7			   clearInterval(checkData);
8			}
9		  }, 1000);
10
11		$('.home-main-sl').on('init', function(event, slick){
12			//$("#load_hero_banner").hide();
13			$(this).parent().find(".cover-spin").hide();
14		});	
15		$('.home-main-sl').slick({
16			lazyLoad: 'ondemand',
17			dots: true,
18			arrows: false,
19			speed: 300,
20			slidesToShow: 1,
21			slidesToScroll: 1,
22			autoplay: true,
23			autoplaySpeed:16000,
24			accessibility: true,
25		});
26		
27		$('.home-new-sl').on('init', function(event, slick){
28			//$("#load_hero_banner").hide();
29			$(this).parent().find(".cover-spin").hide();
30		});
31		$('.home-new-sl').slick({
32			lazyLoad: 'ondemand',
33			dots: true,
34			infinite: false,
35			speed: 300,
36			arrows: false,
37			slidesToShow: 6,
38			slidesToScroll: 6,
39			accessibility: true,
40			responsive: [
41				{ breakpoint: 1600, settings: { slidesToShow: 5, slidesToScroll: 5 } },
42				{ breakpoint: 1200, settings: { slidesToShow: 4, slidesToScroll: 4 } },
43				{ breakpoint: 992, settings: { slidesToShow: 3, slidesToScroll: 3 } },
44				{ breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 2 } }
45			],
46			nextArrow: '<button class="slick-next round-btn-sl" aria-label="Next slide" role="button"><svg class="svg svg-slick-right" aria-hidden="true" width="24" height="24" role="img"><use href="#sv-right-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-right-arrow"></use></svg></button>',
47			prevArrow: '<button class="slick-prev round-btn-sl" aria-label="Previous slide" role="button"><svg class="svg svg-slick-left" width="24" height="24" aria-hidden="true" role="img"><use href="#sv-left-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-left-arrow"></use></svg></button>',
48		});
49		$('.home-brand-sl').on('init', function(event, slick){
50			$(this).parent().find(".cover-spin").hide();
51		});
52		$('.home-brand-sl').slick({
53			lazyLoad: 'ondemand',
54			dots: true,
55			infinite: true,
56			centerMode:true,
57			centerPadding: '0px',
58			autoplay: true,
59			autoplaySpeed: 2000,
60			arrows: false,
61			speed: 300,
62			slidesToShow: 7,
63			slidesToScroll: 7,
64			accessibility: true,
65			responsive: [
66				{ breakpoint: 1024, settings: { slidesToShow: 4, slidesToScroll: 4 } },
67				{ breakpoint: 600, settings: { slidesToShow: 3, slidesToScroll: 3 } },
68				{ breakpoint: 480, settings: { slidesToShow: 3, slidesToScroll: 3 } }
69			],
70			nextArrow: '<button class="slick-next round-btn-sl" aria-label="Next slide" role="button"><svg class="svg svg-slick-right" aria-hidden="true" width="24" height="24" role="img"><use href="#sv-right-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-right-arrow"></use></svg></button>',
71			prevArrow: '<button class="slick-prev round-btn-sl" aria-label="Previous slide" role="button"><svg class="svg svg-slick-left" aria-hidden="true" width="24" height="24" role="img"><use href="#sv-left-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-left-arrow"></use></svg></button>',
72		});
73		$('.home-review-sl').on('init', function(event, slick){
74			$(this).parent().find(".cover-spin").hide();
75		});
76		$('.home-review-sl').slick({
77			lazyLoad: 'ondemand',
78			dots: true,
79			infinite: true,
80			autoplay: true,
81			autoplaySpeed: 2000,
82			arrows: false,
83			speed: 300,
84			accessibility: true,
85			nextArrow: '<button class="slick-next round-btn-sl" aria-label="Next slide" role="button"><svg class="svg svg-slick-right" aria-hidden="true" width="24" height="24" role="img"><use href="#sv-right-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-right-arrow"></use></svg></button>',
86			prevArrow: '<button class="slick-prev round-btn-sl" aria-label="Previous slide" role="button"><svg class="svg svg-slick-left" width="24" height="24" aria-hidden="true" role="img"><use href="#sv-left-arrow" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sv-left-arrow"></use></svg></button>',
87			// responsive: [
88			//     {
89			//       breakpoint: 768,
90			//       settings: {
91			//         adaptiveHeight: false
92			//       }
93			//     },
94			  
95			//     {
96			//       breakpoint: 767,
97			//       settings: {
98			//        adaptiveHeight: true
99			//       }
100			//     }
101			//   ]
102		});
103	});	
104	var deal_end_date = $('#deal_end_date').val();
105	//var deal_end_date = '20-05-2021 23:59:59';
106	var deal_start_date = $('#deal_start_date').val();
107	if(deal_end_date != '')
108	{
109		var $clock = $('#counter_1'),
110		eventTime = moment(deal_end_date, 'DD-MM-YYYY HH:mm:ss').unix(),
111		currentTime = moment(deal_start_date, 'DD-MM-YYYY HH:mm:ss').unix(),
112		diffTime = eventTime - currentTime,
113		duration = moment.duration(diffTime * 1000, 'milliseconds'),
114		interval = 1000;
115		if(diffTime > 0) {
116			/*var $d = $('<i style="font-style: normal;"></i>').appendTo($clock),
117				$h = $('<i style="font-style: normal;"></i>').appendTo($clock),
118				$m = $('<i style="font-style: normal;"></i>').appendTo($clock),
119				$s = $('<i style="font-style: normal;"></i>').appendTo($clock);
120			*/
121			setInterval(function(){
122
123				duration = moment.duration(duration.asMilliseconds() - interval, 'milliseconds');
124				var d = moment.duration(duration).days(),
125					h = moment.duration(duration).hours(),
126					m = moment.duration(duration).minutes(),
127					s = moment.duration(duration).seconds();
128
129				d = $.trim(d).length === 1 ? '0' + d : d;
130				h = $.trim(h).length === 1 ? '0' + h : h;
131				m = $.trim(m).length === 1 ? '0' + m : m;
132				s = $.trim(s).length === 1 ? '0' + s : s;
133
134				// show how many hours, minutes and seconds are left
135				
136				var clockdata = '';
137				clockdata+='<li><span class="count" id="days">'+d+'</span><span class="count_name">Days</span></li>';
138				clockdata+='<li><span class="count" id="hrs">'+h+'</span><span class="count_name">Hours</span></li>';
139				clockdata+='<li><span class="count" id="min">'+m+'</span><span class="count_name">Mins</span></li>';
140				clockdata+='<li><span class="count" id="sec">'+s+'</span><span class="count_name">Secs</span></li>';
141				$clock.html(clockdata);
142				//$d.html('<span class="countdown-section"><span class="countdown-amount" id="days">'+d+'</span><span class="countdown-period">Days</span></span>');
143				//$h.html('<span class="countdown-section"><span class="countdown-amount" id="hrs">'+h+'</span><span class="countdown-period">Hours</span></span>');
144				//$m.html('<span class="countdown-section"><span class="countdown-amount" id="min">'+m+'</span><span class="countdown-period">Mins</span></span>');
145				//$s.html('<span class="countdown-section"><span class="countdown-amount" id="sec">'+s+'</span><span class="countdown-period">Secs</span></span>');
146
147			}, interval);
148		}
149	}	
150})( jQuery );	
151function setYotpoViewAllLink(){
152	$('<span class="review-pipe"> | </span><a target="_blank" id="yotpo_all_reviews" href="/reviews">View All Reviews</a>').insertAfter( ".yotpo-num-of-reviews" );		
153}

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.