PageSourceSearch

https://soranomics.com/2021/js/script.js?2

js soranomics.com collected 2026-10-01 00:23:48 UTC 28,448 bytes, 1,088 lines download raw bytes

1// Scroll.js
2
3$(window).on('popstate',function(e){
4	e.preventDefault();
5	var target = window.location.href.split("#")[1];
6	if(target != "" && target!=undefined && document.getElementById(target)!=null){
7		$('html, body').stop().animate({'scrollTop': $("#"+target).offset().top}, 500, 'swing', function () {
8			window.location.hash = target;
9		});
10	}
11});
12
13$(document).ready(function() {
14	SF_scripts();
15});
16
17function SF_scripts(){
18  
19  jQuery(function($){
20    $('#timer').syotimer({
21      year: 2021,
22      month: 6,
23      day: 22,
24      hour: 11,
25      minute: 50,
26      timeZone: 2,
27      ignoreTransferTime: true,
28      layout: 'dhms'
29    });
30  });
31
32	$(window).resize(function(){
33		resizeVideo();
34		showMenuBtn();
35		setBackgrounds();
36	});
37
38	$(window).trigger("resize");
39
40	// open menu on mobile
41	function showMenuBtn(){
42		if($(window).width()<1199.98){
43			$(".open_menu").addClass("d-block");
44			$("header nav").addClass("d-none");
45			$(".navigation_mobile").removeClass("opened");
46		}else{
47			$(".open_menu").removeClass("d-block");
48			$("header nav").removeClass("d-none");
49			$(".navigation_mobile").removeClass("opened");
50		}
51	}
52
53	$(".open_menu").click(function(event){
54		event.preventDefault();
55		$(".navigation_mobile").addClass("opened");
56	});
57
58	$(".close_menu, header, section, footer, .navigation_mobile .inner a").click(function(event){
59		$(".navigation_mobile").removeClass("opened");
60	});
61	
62	// Set background image from data-bg-src and data-bg-src-2x attributes
63	function setBackgrounds(){
64		var bgSrc;
65		if(window.devicePixelRatio>1.1){ // if device has a retina screen
66			$("[data-bg-src-2x]").each(function(){
67				bgSrc = $(this).attr("data-bg-src-2x");
68				if(bgSrc=="" || bgSrc=="false" || bgSrc===false || bgSrc==undefined){
69					bgSrc = $(this).attr("data-bg-src");					
70				}
71				if(bgSrc!="" && bgSrc!="false" && bgSrc && bgSrc!=undefined){
72					$(this).css("background-image","url("+bgSrc+")");
73				}else{
74					$(this).css("background-image","");
75				}
76			});
77		}else{ // if it's a regular screen
78			$("[data-bg-src]").each(function(){
79				bgSrc = $(this).attr("data-bg-src");
80				if(bgSrc!="" && bgSrc!="false" && bgSrc && bgSrc!=undefined){
81					$(this).css("background-image","url("+bgSrc+")");
82				}else{
83					$(this).css("background-image","");
84				}
85			});
86		}
87	}
88	setBackgrounds();
89	
90	// Set | remove z-index for sections, that has dropdown
91	function SF_dropdown_parent(dropdown){
92		// Find dropdown's parent nav|header|section|footer
93		var section = dropdown;
94		var noBreak = true;
95		while(noBreak){
96			if(
97				section[0].tagName=="NAV" || 
98				section[0].tagName=="HEADER" || 
99				section[0].tagName=="SECTION" || 
100				section[0].tagName=="FOOTER" || 
101				section[0].tagName=="BODY"
102			){
103				noBreak = false;
104				break;
105			}else{
106				section = section.parent();				
107			}
108		}
109		return section;
110	}
111	function SF_highest_zIndex(){
112		// Find nav|header|section|footer with highest z-index on page
113		var zIndex = 1;
114		var currentzIndex;
115		var section;
116		$("nav, header, section, footer").each(function(){
117			currentzIndex = parseInt($(this).css("z-index"));
118			if(zIndex < currentzIndex){
119				zIndex = currentzIndex;
120				section = $(this);
121			}
122		});
123		return [zIndex, section];
124	}
125	
126	// Set highest z-index for section, that has opened dropdown
127	$(".dropdown").on("show.bs.dropdown", function () {
128		var section = SF_dropdown_parent($(this));
129		section.css("z-index",SF_highest_zIndex()[0]+1);	
130	});
131	
132	// Remove z-index for section, where dropdown was closed
133	$(".dropdown").on("hidden.bs.dropdown", function () {
134		var section = SF_dropdown_parent($(this));
135		section.css("z-index","auto");	
136	})
137	
138	// Navigation dropdown popup
139	if($(".js-nav-dropdowns").length>0){
140		$("body").click(function(event){
141			if($(event.target).closest(".navigation_popup").length==0 && $(event.target).closest(".js-open-nav-dropdown").length==0){
142				$(".navigation_popup.opened").removeClass("opened");
143				$(".js-open-nav-dropdown i.fa-flip-vertical").removeClass("fa-flip-vertical");
144			}
145		});
146		
147		$(".js-nav-dropdowns .js-open-nav-dropdown").click(function(event){
148			event.preventDefault();
149			var id = $(".js-nav-dropdowns .js-open-nav-dropdown").index($(this));
150			if($(".navigation_popup").eq(id).hasClass("opened")){
151				$(this).find("i").removeClass("fa-flip-vertical");
152				$(".navigation_popup").eq(id).removeClass("opened");
153			}else{
154				$(".navigation_popup.opened").removeClass("opened");
155				$(".js-open-nav-dropdown i.fa-flip-vertical").removeClass("fa-flip-vertical");
156				$(".navigation_popup").eq(id).addClass("opened");			
157				$(this).find("i").addClass("fa-flip-vertical");
158				var section = SF_dropdown_parent($(this));
159				section.css("z-index",SF_highest_zIndex()[0]+1);				
160			}
161		});
162	}
163	
164	// Enable AOS plugin (blocks animations)
165	if(typeof(AOS) !== 'undefined' && $("body").hasClass("SFG_body")===false){
166		AOS.init({
167			easing: 'ease-in-out-quart',
168			//linear ease ease-in ease-out ease-in-out ease-in-back ease-out-back ease-in-out-back ease-in-sine ease-out-sine ease-in-out-sine ease-in-quad ease-out-quad ease-in-out-quad
169			//ease-in-cubic ease-out-cubic ease-in-out-cubic ease-in-quart ease-out-quart ease-in-out-quart
170			once: false,
171      duration: 400,
172			offset: 0
173		});
174		setTimeout(function(){
175			if($(".slick-initialized").length>0){
176				AOS.refreshHard();
177			}
178		},200);
179	}
180
181	// AJAX send form
182	var grecaptchaWidgetID;
183	
184	$("form:not(.SFG)").submit(function(event){
185		
186		event.preventDefault();
187	 
188		var form = $(this);
189		var grecaptchaContainer = document.getElementById("g-recaptcha");
190		if($(grecaptchaContainer).length>0){
191			$(".grecaptcha-overlay").fadeIn(150,function(){
192				$(".grecaptcha-popup").fadeIn(200,function(){
193					if(typeof(grecaptchaWidgetID)=="undefined"){
194						grecaptchaWidgetID = grecaptcha.render(grecaptchaContainer, {
195							"sitekey": $(grecaptchaContainer).attr("data-sitekey"),
196							"callback": function (grecaptchaResponse) {
197								if(grecaptchaResponse){
198									var grecaptchaInput = form.find('input[name=g-recaptcha-response]');
199									if(grecaptchaInput.length>0){
200										grecaptchaInput.val(grecaptchaResponse);
201									}else{
202										form.append('<input name="g-recaptcha-response" value="'+grecaptchaResponse+'" type="hidden" />');						
203									}
204									submitForm(form);					
205								}else{
206									grecaptcha.reset(grecaptchaWidgetID);
207								}
208							},
209							"expired-callback": function(){
210								grecaptcha.reset(grecaptchaWidgetID);
211							},
212							"error-callback": function(){
213								$(".alert-form-error .message").html("Error: Please, check your internet connection and try again");
214								$(".alert-form-error").fadeIn(200).delay(10000).fadeOut(200);
215								grecaptcha.reset(grecaptchaWidgetID);
216							},
217						});						
218					}else{
219						grecaptcha.reset(grecaptchaWidgetID);
220					}
221				});
222			});
223		}else{
224			submitForm(form);
225		}
226		function submitForm(form){
227		    var	term = form.serialize(),
228				url = form.attr("action"),
229				required_fields_filled = true;
230				
231			form.find("input, textarea, select").each(function(){
232				if($(this).prop("required") && $(this).val()==""){
233					required_fields_filled = false;
234				}
235			});
236
237			if(required_fields_filled){
238				var posting = $.post(url, term);
239				posting
240				.done(function(data){
241					if(data=="ok"){
242						$(".alert-form-success").fadeIn(200).delay(5000).fadeOut(200);
243					}else{
244						$(".alert-form-error .message").html(data);
245						$(".alert-form-error").fadeIn(200).delay(10000).fadeOut(200);
246					}
247					hidegRecaptchaPopup();
248				})
249				.fail(function(){
250					$(".alert-form-error").fadeIn(200).delay(10000).fadeOut(200);
251					hidegRecaptchaPopup();
252				});
253			}else{
254				$(".alert-form-check-fields").fadeIn(200).delay(5000).fadeOut(200);
255				hidegRecaptchaPopup();
256			}
257		}
258	});
259	
260	// Close gReCaptcha popup
261	$(".grecaptcha-overlay").click(function(){
262		hidegRecaptchaPopup();
263	});
264	
265	function hidegRecaptchaPopup(){
266		if($(".grecaptcha-popup").is(":visible")){
267			$(".grecaptcha-popup").fadeOut(200, function(){
268				$(".grecaptcha-overlay").fadeOut(100);
269			});
270		}
271	}
272
273	// Function to add style to form, when user clicks to input inside it
274	function focusForm(formID){
275		var form = $("#"+formID);
276		if(form.hasClass("focused")){
277			form.removeClass("focused");
278		}else{
279			form.addClass("focused");
280		}
281	}
282
283	// Resize video, saving aspect ratio
284	function resizeVideo(){
285		var width, height, ratio;
286		$(".video").each(function(){
287			ratio = $(this).data("ratio");
288			ratio = ratio.split("/");
289			ratio = ratio[0]/ratio[1];
290			width = $(this).width();
291			height = width/ratio;
292			$(this).height(height);
293		});
294	}
295
296	resizeVideo();
297
298	// Play video
299	$(".video .play").click(function(){
300		var video = $(this).parent().parent().find("video");
301		$(this).closest(".poster").fadeOut(300,function(){
302			video.fadeIn(300,function(){
303				video[0].play();
304				video[0].onended = function() {
305					$(this).parent().find(".poster").delay(100).fadeIn(300);
306				};
307			});
308		});
309	});
310	
311	// Opening tabs
312	function openTab(tab){
313		if(tab.hasClass("opened")){
314			$(".tab_text").animate({height:0},300);
315			tab.removeClass("opened");
316		}else{
317			var nextTabHeight = tab.next().find("div").outerHeight(true);
318			$(".tab_text").not(tab.next()).animate({height:0},300);
319			tab.next().animate({height:nextTabHeight},300);
320			$(".tab_opener").removeClass("opened");
321			tab.addClass("opened");
322		}
323	}
324
325	$(".tab_opener").click(function(){
326		openTab($(this));
327	});
328
329	if($(".opening_tabs").length > 0){
330		$(".tab_opener").each(function(){
331			if($(this).hasClass("opened")){
332				$(this).removeClass("opened").trigger("click");
333			}
334		});
335	}
336
337	// Copy text from block
338	if($("#copy_from_me").length > 0){
339		function copyStringToClipboard (str) {
340		   var el = document.createElement('textarea');
341		   el.value = str;
342		   el.setAttribute('readonly', '');
343		   el.style = {position: 'absolute', left: '-9999px'};
344		   document.body.appendChild(el);
345		   el.select();
346		   document.execCommand('copy');
347		   document.body.removeChild(el);
348		}
349		$('.js-copy-btn').click(function(){
350			copyStringToClipboard ($("#copy_from_me").text());
351		});
352	}
353
354	// Add mask to inputs in Forms
355	if($(".js-card-mask").length > 0){
356		$(".js-card-mask").mask("9999 9999 9999 9999");
357	}
358	if($(".js-expiration-mask").length > 0){
359		$(".js-expiration-mask").mask("99 / 9999");
360	}
361	if($(".js-expiration-short-mask").length > 0){
362		$(".js-expiration-short-mask").mask("99 / 99");
363	}
364	if($(".js-cvv-mask").length > 0){
365		$(".js-cvv-mask").mask("999");
366	}
367	
368	// Disable / enable blocks in Form 13
369	$(".form_13 input[type=radio]").change(function(){
370		var choosenBlock = $(".form_13 input[type=radio]:checked").closest(".js-form-block");
371		$(".js-form-block").removeClass("active");
372		choosenBlock.addClass("active");
373	});
374	
375	// Ecommerce: Quantity selector
376	$(".quantity_selector .control").click(function(event){
377		event.preventDefault();
378		var _this = $(this);
379		var input = _this.parent().find("input");
380		var input_val = parseInt(input.val());
381		if(_this.hasClass("greater")){
382			if(input_val<parseInt(input.attr("max"))){
383				input.val(input_val+1);
384				input.trigger("change");
385			}
386		}
387		if(_this.hasClass("less")){
388			if(input_val>parseInt(input.attr("min"))){
389				input.val(input_val-1);
390				input.trigger("change");
391			}
392		}
393	});
394	
395	// Ecommerce: Remove products from cart
396	$(".remove_product").click(function(event){
397		event.preventDefault();
398		var product = $(this).closest(".product");
399		console.log(product);
400		product.slideUp(300,function(){
401			product.remove();
402			if(typeof(count_totals_ecommerce_33)=="function"){
403				count_totals_ecommerce_33();
404			}
405			if(typeof(count_totals_ecommerce_36)=="function"){
406				count_totals_ecommerce_36();
407			}
408			if(typeof(count_totals_ecommerce_38)=="function"){
409				count_totals_ecommerce_38();
410			}
411		})
412	});
413	
414	// Ecommerce: Set discount
415	$(".ecommerce_33 input[name=coupon]").change(function(){
416		if($(this).val()!=""){
417			var discount = $(".ecommerce_33 .discount").attr("data-discount");
418			$(".ecommerce_33 .discount .js-discount-value").text(discount);
419		}else{
420			$(".ecommerce_33 .discount .js-discount-value").text("0");
421		}
422		if(typeof(count_totals_ecommerce_33)=="function"){
423			count_totals_ecommerce_33();
424		}
425	});
426	
427	// Ecommerce: Count total price
428	if($(".ecommerce_33 .product").length>0){
429		$(".ecommerce_33 .quantity_selector input").change(function(){
430			count_totals_ecommerce_33();
431		});
432		function count_totals_ecommerce_33(){
433			var total = 0;
434			var discount = parseInt($(".ecommerce_33 .discount .js-discount-value").text());
435			$(".ecommerce_33 .product").each(function(){
436				var product = $(this);
437				var price = parseFloat(product.find(".product_price .js-product-price").text());
438				var quantity = parseInt(product.find("input[name=quantity]").val());
439				product.find(".product_total .js-product-total").text(price*quantity);
440				total = total + price*quantity;
441			});
442			if(!isNaN(discount)){
443				total = Math.floor(total*(100-discount)/100);
444			}
445			$(".ecommerce_33 .total .js-total").text(total);
446		}
447		count_totals_ecommerce_33();
448	}
449	
450	if($(".ecommerce_34 .product").length>0){
451		$(".ecommerce_34 .quantity_selector input").change(function(){
452			count_totals_ecommerce_34();
453		});
454		function count_totals_ecommerce_34(){
455			var total = 0;
456			var delivery = parseInt($(".ecommerce_34 .delivery .js-product-delivery").text());
457			$(".ecommerce_34 .product").each(function(){
458				var product = $(this);
459				var price = parseFloat(product.find(".product_price .js-product-price").text());
460				var quantity = parseInt(product.find("input[name=quantity]").val());
461				product.find(".product_total .js-product-total").text(price*quantity);
462				total = total + price*quantity;
463			});
464			$(".ecommerce_34 .subtotal .js-subtotal").text(total);
465			if(!isNaN(delivery)){
466				total = total+delivery;
467			}
468			$(".ecommerce_34 .total .js-total").text(total);
469		}
470		count_totals_ecommerce_34();
471	}
472	
473	if($(".ecommerce_35 .product").length>0){
474		$(".ecommerce_35 .quantity_selector input").change(function(){
475			count_totals_ecommerce_35();
476		});
477		function count_totals_ecommerce_35(){
478			var total = 0;
479			$(".ecommerce_35 .product").each(function(){
480				var product = $(this);
481				var price = parseFloat(product.find(".product_price .js-product-price").text());
482				var quantity = parseInt(product.find("input[name=quantity]").val());
483				product.find(".product_total .js-product-total").text(price*quantity);
484				total = total + price*quantity;
485			});
486			$(".ecommerce_35 .total .js-total").text(total);
487		}
488		count_totals_ecommerce_35();
489	}
490	
491	if($(".ecommerce_36 .product").length>0){
492		$(".ecommerce_36 .quantity_selector input, .ecommerce_36 input[name=coupon]").change(function(){
493			count_totals_ecommerce_36();
494		});
495		function count_totals_ecommerce_36(){
496			var total = 0;
497			var discount = 1;
498			if($(".ecommerce_36 input[name=coupon]").val()!=""){
499				discount = (100 - parseInt($(".ecommerce_36 input[name=coupon]").attr("data-discount")))/100;
500			}
501			$(".ecommerce_36 .product").each(function(){
502				var product = $(this);
503				var price = parseFloat(product.find(".product_price .js-product-price").text());
504				var quantity = parseInt(product.find("input[name=quantity]").val());
505				total = total + price*quantity;
506				total = Math.floor(total*discount);
507			});
508			$(".ecommerce_36 .total .js-total").text(total);
509		}
510		count_totals_ecommerce_36();
511	}
512	
513	if($(".ecommerce_38 .product").length>0){
514		function count_totals_ecommerce_38(){
515			var total = 0;
516			var delivery = parseInt($(".ecommerce_38 .delivery .js-delivery").text());
517			$(".ecommerce_38 .product").each(function(){
518				var product = $(this);
519				var price = parseFloat(product.find(".product_total .js-product-total").text());
520				total = total + price;
521			});
522			$(".ecommerce_38 .subtotal .js-subtotal").text(total);
523			if(!isNaN(delivery)){
524				total = total+delivery;
525			}
526			$(".ecommerce_38 .total .js-total").text(total);
527		}
528		count_totals_ecommerce_38();
529	}
530
531	// Google maps initialisation
532	if($(".js-google-map").length>0){
533		$(".js-google-map").each(function(){
534			
535			var map;
536			var map_container = this;
537			if($(map_container).attr("data-coords")!=undefined){
538				var coords = $(map_container).attr("data-coords").replace(" ","").split(",");
539				coords = new google.maps.LatLng(parseFloat(coords[0]), parseFloat(coords[1]));
540			}else{
541				var coords = new google.maps.LatLng(38.897710, -77.036530);
542			}
543			if($(map_container).attr("data-marker")!=undefined && $(map_container).attr("data-marker-size")!=undefined){
544				var marker_image = $(map_container).attr("data-marker");
545				var marker_size = $(map_container).attr("data-marker-size").split("*");
546			}
547			if($(map_container).attr("data-zoom")!=undefined){
548				var zoom = parseInt($(map_container).attr("data-zoom"));
549			}else{
550				var zoom = 10;
551			}
552
553			function init() {
554				var mapOptions = {
555						zoom: zoom,
556						center: coords,				},
557					map = new google.maps.Map(map_container, mapOptions);
558				if(marker_image){	
559					var marker_icon = {
560						url: marker_image, 
561						scaledSize: new google.maps.Size(marker_size[0], marker_size[1]),
562						origin: new google.maps.Point(0,0), 
563						anchor: new google.maps.Point(marker_size[0]/2, marker_size[1])
564					},
565					marker = new google.maps.Marker({
566						position: coords,
567						map: map,
568						icon: marker_icon
569					});
570				}
571
572			}
573			
574			init();
575
576		});
577	}
578
579	/*
580		Sliders
581	*/
582	
583	var slick_slider;
584
585	if($(".header_8 .slider").length>0){
586		$(".header_8 .slider").each(function(index){
587			slick_slider = $(this);
588			if(slick_slider.hasClass("slick-initialized")===false){
589				slick_slider.slick({
590					dots: true,
591					arrows: true,
592					infinite: true,
593					speed: 300,
594					slidesToShow: 1,
595					slidesToScroll: 1,
596					autoplay: true,
597					autoplaySpeed: 20000,
598					responsive: [
599						{
600						  breakpoint: 481,
601						  settings: {
602							arrows:false
603						  }
604						}
605					]
606				});
607			}
608		});
609	}
610
611	if($(".header_19 .slider").length>0){
612		$(".header_19 .slider").each(function(index){
613			slick_slider = $(this);
614			if(slick_slider.hasClass("slick-initialized")===false){
615				slick_slider.slick({
616					dots: true,
617					arrows: false,
618					infinite: true,
619					speed: 300,
620					slidesToShow: 1,
621					slidesToScroll: 1,
622					autoplay: true,
623					autoplaySpeed: 20000,
624					vertical: true,
625					verticalSwiping: true,
626					responsive: [
627						{
628						  breakpoint: 1200,
629						  settings: {
630							vertical: false,
631							verticalSwiping: false
632						  }
633						}
634					]
635				});
636			}
637		});
638	}
639	
640	if($(".navigation_23 .slider").length>0){
641		$(".navigation_23 .slider").each(function(index){
642			slick_slider = $(this);
643			if(slick_slider.hasClass("slick-initialized")===false){
644				slick_slider.slick({
645					dots: true,
646					arrows: false,
647					infinite: true,
648					speed: 300,
649					slidesToShow: 1,
650					slidesToScroll: 1,
651					autoplay: true,
652					autoplaySpeed: 20000,
653				});
654			}
655		});
656	}
657	if($(".navigation_26 .slider").length>0){
658		$(".navigation_26 .slider").each(function(index){
659			slick_slider = $(this);
660			if(slick_slider.hasClass("slick-initialized")===false){
661				slick_slider.slick({
662					dots: true,
663					arrows: false,
664					infinite: true,
665					speed: 300,
666					slidesToShow: 1,
667					slidesToScroll: 1,
668					autoplay: true,
669					autoplaySpeed: 20000,
670				});
671			}
672		});
673	}
674	
675	if($(".feature_29 .slider").length>0){
676		$(".feature_29 .slider").each(function(index){
677			slick_slider = $(this);
678			if(slick_slider.hasClass("slick-initialized")===false){
679				slick_slider.slick({
680					dots: true,
681					arrows: false,
682					speed: 300,
683					slidesToShow: 1,
684					slidesToScroll: 1,
685					vertical:true,
686					verticalSwiping:true,
687					adaptiveHeight:true,
688					responsive: [
689						{
690						  breakpoint: 767,
691						  settings: {
692							vertical:false,
693							verticalSwiping:false,
694						  }
695						}
696					]
697				});
698			}
699		});
700	}
701
702	if($(".feature_31 .slider").length>0){
703		$(".feature_31 .slider").each(function(index){
704			slick_slider = $(this);
705			if(slick_slider.hasClass("slick-initialized")===false){
706				slick_slider.slick({
707					dots: true,
708					arrows: false,
709					speed: 300,
710					slidesToShow: 1,
711					slidesToScroll: 1,
712					vertical:true,
713					verticalSwiping:true,
714					responsive: [
715						{
716						  breakpoint: 768,
717						  settings: {
718							vertical:false,
719							verticalSwiping:false,
720						  }
721						}
722					]
723				});
724			}
725		});
726	}
727
728	if($(".form_4 .slider").length>0){
729		$(".form_4 .slider").each(function(index){
730			slick_slider = $(this);
731			if(slick_slider.hasClass("slick-initialized")===false){
732				slick_slider.slick({
733					slidesToShow: 1,
734					slidesToScroll: 1,
735					arrows: false,
736					fade: true,
737					touchMove:false,
738					swipe:false,
739					adaptiveHeight: true,
740					asNavFor: '.form_4 .form_4_menu:eq('+index+')',
741				});
742				$('.form_4 .form_4_menu:eq('+index+')').slick({
743					slidesToShow: 2,
744					slidesToScroll: 1,
745					asNavFor: '.form_4 .slider:eq('+index+')',
746					dots: false,
747					arrows: false,
748					focusOnSelect: true,
749					touchMove:false,
750					swipe:false,
751				});
752			}
753		});
754	}
755
756	if($(".form_15 .slider").length>0){
757		$(".form_15 .slider").each(function(index){
758			slick_slider = $(this);
759			if(slick_slider.hasClass("slick-initialized")===false){
760				slick_slider.slick({
761					slidesToShow: 1,
762					slidesToScroll: 1,
763					arrows: false,
764					fade: true,
765					adaptiveHeight: true,
766					swipe:false,
767					asNavFor: '.form_15 .form_15_menu:eq('+index+')',
768				});
769				$('.form_15 .form_15_menu:eq('+index+')').slick({
770					slidesToShow: 2,
771					slidesToScroll: 1,
772					asNavFor: '.form_15 .slider:eq('+index+')',
773					dots: false,
774					arrows: false,
775					focusOnSelect: true,
776				});
777			}
778		});
779	}
780	
781	if($(".pricing_table_6 .slider").length>0){
782		$(".pricing_table_6 .slider").each(function(index){
783			slick_slider = $(this);
784			var toggle = slick_slider.closest("section").find(".input-toggle input");
785			if(slick_slider.hasClass("slick-initialized")===false){
786				slick_slider.slick({
787					dots: false,
788					arrows: false,
789					fade: true,
790					infinite: true,
791					speed: 300,
792					touchMove:false,
793					swipe:false,
794					slidesToShow: 1,
795					slidesToScroll: 1,
796				});				
797			}
798			toggle.change(function(){
799				$(this).closest("section").find(".slider").slick("slickNext");
800			});
801		});
802	}
803
804	if($(".ecommerce_11 .slider").length>0){
805		$(".ecommerce_11 .slider").each(function(index){
806			slick_slider = $(this);
807			if(slick_slider.hasClass("slick-initialized")===false){
808				slick_slider.slick({
809					dots: false,
810					arrows: true,
811					infinite: false,
812					speed: 300,
813					slidesToShow: 3,
814					slidesToScroll: 1,
815					autoplay: true,
816					autoplaySpeed: 20000,
817					responsive: [
818						{
819						  breakpoint: 992,
820						  settings: {
821							slidesToShow: 2,
822							slidesToScroll: 1,
823						  }
824						},
825						{
826						  breakpoint: 768,
827						  settings: {
828							slidesToShow: 1,
829							slidesToScroll: 1,
830						  }
831						}
832					]
833				});
834			}
835		});
836	}
837	
838	if($(".ecommerce_15 .slider").length>0){
839		$(".ecommerce_15 .slider").each(function(index){
840			slick_slider = $(this);
841			if(slick_slider.hasClass("slick-initialized")===false){
842				slick_slider.slick({
843					slidesToShow: 1,
844					slidesToScroll: 1,
845					arrows: false,
846					fade: true,
847					asNavFor: '.ecommerce_15 .slider_menu:eq('+index+')',
848				});
849				$('.ecommerce_15 .slider_menu:eq('+index+')').slick({
850					slidesToShow: 6,
851					slidesToScroll: 1,
852					asNavFor: '.ecommerce_15 .slider:eq('+index+')',
853					dots: false,
854					arrows: false,
855					focusOnSelect: true,
856					responsive: [
857						{
858						  breakpoint: 1200,
859						  settings: {
860							slidesToShow: 5,
861							slidesToScroll: 1,
862						  }
863						},
864						{
865						  breakpoint: 768,
866						  settings: {
867							slidesToShow: 6,
868							slidesToScroll: 1,
869						  }
870						},
871						{
872						  breakpoint: 469,
873						  settings: {
874							slidesToShow: 5,
875							slidesToScroll: 1,
876						  }
877						},
878						{
879						  breakpoint: 419,
880						  settings: {
881							slidesToShow: 4,
882							slidesToScroll: 1,
883						  }
884						},
885						{
886						  breakpoint: 359,
887						  settings: {
888							slidesToShow: 3,
889							slidesToScroll: 1,
890						  }
891						}
892					]
893				});
894			}
895		});
896	}
897	
898	if($(".ecommerce_19 .slider").length>0){
899		$(".ecommerce_19 .slider").each(function(index){
900			slick_slider = $(this);
901			if(slick_slider.hasClass("slick-initialized")===false){
902				slick_slider.slick({
903					slidesToShow: 1,
904					slidesToScroll: 1,
905					arrows: false,
906					fade: true,
907					asNavFor: '.ecommerce_19 .slider_menu:eq('+index+')',
908				});
909				$('.ecommerce_19 .slider_menu:eq('+index+')').slick({
910					slidesToShow: 3,
911					slidesToScroll: 1,
912					asNavFor: '.ecommerce_19 .slider:eq('+index+')',
913					dots: false,
914					arrows: false,
915					focusOnSelect: true,
916					responsive: [
917						{
918						  breakpoint: 768,
919						  settings: {
920							slidesToShow: 4,
921							slidesToScroll: 1,
922						  }
923						},
924						{
925						  breakpoint: 469,
926						  settings: {
927							slidesToShow: 3,
928							slidesToScroll: 1,
929						  }
930						},
931						{
932						  breakpoint: 359,
933						  settings: {
934							slidesToShow: 2,
935							slidesToScroll: 1,
936						  }
937						}
938					]
939				});
940			}
941		});
942	}
943	
944	if($(".ecommerce_32 .slider").length>0){
945		$(".ecommerce_32 .slider").each(function(index){
946			slick_slider = $(this);
947			if(slick_slider.hasClass("slick-initialized")===false){
948				slick_slider.slick({
949					slidesToShow: 1,
950					slidesToScroll: 1,
951					arrows: false,
952					fade: true,
953					asNavFor: '.ecommerce_32 .slider_menu:eq('+index+')',
954				});
955				$('.ecommerce_32 .slider_menu:eq('+index+')').slick({
956					slidesToShow: 4,
957					slidesToScroll: 1,
958					asNavFor: '.ecommerce_32 .slider:eq('+index+')',
959					dots: false,
960					arrows: true,
961					focusOnSelect: true,
962					responsive: [
963						{
964						  breakpoint: 469,
965						  settings: {
966							slidesToShow: 3,
967							slidesToScroll: 1,
968						  }
969						},
970						{
971						  breakpoint: 359,
972						  settings: {
973							slidesToShow: 2,
974							slidesToScroll: 1,
975						  }
976						}
977					]
978				});
979			}
980		});
981	}
982	
983	if($(".ecommerce_35 .slider").length>0){
984		$(".ecommerce_35 .slider").each(function(index){
985			slick_slider = $(this);
986			if(slick_slider.hasClass("slick-initialized")===false){
987				slick_slider.slick({
988					slidesToShow: 1,
989					slidesToScroll: 1,
990					arrows: false,
991					fade: true,
992					adaptiveHeight: true,
993					swipe:false,
994					asNavFor: '.ecommerce_35 .slider_menu:eq('+index+')',
995				});
996				$('.ecommerce_35 .slider_menu:eq('+index+')').slick({
997					slidesToShow: 2,
998					slidesToScroll: 1,
999					asNavFor: '.ecommerce_35 .slider:eq('+index+')',
1000					dots: false,
1001					arrows: false,
1002					focusOnSelect: true,
1003				});
1004			}
1005		});
1006	}
1007	
1008	if($(".blog_33 .slider").length>0){
1009		$(".blog_33 .slider").each(function(index){
1010			slick_slider = $(this);
1011			if(slick_slider.hasClass("slick-initialized")===false){
1012				slick_slider.slick({
1013					dots: false,
1014					arrows: true,
1015					infinite: true,
1016					slidesToShow: 3,
1017					slidesToScroll: 1,
1018					responsive: [
1019						{
1020						  breakpoint: 992,
1021						  settings: {
1022							slidesToShow: 2,
1023							slidesToScroll: 1,
1024						  }
1025						},
1026						{
1027						  breakpoint: 768,
1028						  settings: {
1029							slidesToShow: 1,
1030							slidesToScroll: 1, 
1031						  }
1032						}
1033					]
1034				});
1035			}
1036		});
1037	}	
1038
1039	if($(".blog_34 .slider").length>0){
1040		$(".blog_34 .slider").each(function(index){
1041			slick_slider = $(this);
1042			if(slick_slider.hasClass("slick-initialized")===false){
1043				slick_slider.slick({
1044					dots: false,
1045					arrows: false,
1046					speed: 300,
1047					slidesToShow: 4,
1048					slidesToScroll: 1,
1049					infinite:false,
1050					variableWidth:true,
1051					swipeToSlide:true,
1052					adaptiveHeight: false,
1053					responsive: [
1054						{
1055						  breakpoint: 1200,
1056						  settings: {
1057							slidesToShow: 3,
1058							slidesToScroll: 1,
1059						  }
1060						},
1061						{
1062						  breakpoint: 992,
1063						  settings: {
1064							slidesToShow: 2,
1065							slidesToScroll: 1, 
1066						  }
1067						},
1068						{
1069						  breakpoint: 768,
1070						  settings: {
1071							slidesToShow: 1,
1072							slidesToScroll: 1, 
1073						  }
1074						}
1075					]
1076				});
1077				slick_slider.closest(".blog_34").find(".js-blog-34-slider-prev").click(function(event){
1078					event.preventDefault();
1079					slick_slider.slick("slickPrev");
1080				});
1081				slick_slider.closest(".blog_34").find(".js-blog-34-slider-next").
1081click(function(event){
1082					event.preventDefault();
1083					slick_slider.slick("slickNext");
1084				});
1085			}
1086		});
1087	}
1088}; // SF_scripts end

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.