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