PageSourceSearch

https://www.kuehl-lenjer-training.de/blog/themes/custom/mkl/js/script.js

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