1function widget_gallery_slider() { 2 3 $('body:not(.ippedit) .widget_gallery01.add_design1 .wrapper_item, body:not(.ippedit) .widget_gallery01.add_design5 .wrapper_item').slick({ 4 autoplay: true, 5 autoplaySpeed: 3000, 6 speed: 400, 7 cssEase: 'ease-in-out', 8 slidesToShow: 4, 9 slidesToScroll: 1, 10 responsive: [ 11 { 12 breakpoint: 800, 13 settings: { 14 slidesToShow: 3, 15 } 16 }, 17 { 18 breakpoint: 500, 19 settings: { 20 slidesToShow: 2, 21 } 22 }, 23 ] 24 }); 25 26 $('body.ippedit .widget_gallery01.add_design1 .wrapper_item, body.ippedit .widget_gallery01.add_design5 .wrapper_item').slick({ 27 speed: 400, 28 pauseOnHover: true, 29 cssEase: 'ease-in-out', 30 slidesToShow: 4, 31 slidesToScroll: 1, 32 responsive: [ 33 { 34 breakpoint: 800, 35 settings: { 36 slidesToShow: 3, 37 } 38 }, 39 { 40 breakpoint: 500, 41 settings: { 42 slidesToShow: 2, 43 } 44 }, 45 ] 46 }); 47 48 if ($('body:not(.ippedit) .gallery_single, .gallery_single.slide_single').length) { 49 var $gallery_single_slider = $('.gallery_single_slider'); 50 var $gallery_single_slider_thum = $('.gallery_single_slider_thum'); 51 $gallery_single_slider_thum.each(function () { 52 $(this).append($(this).prev('.gallery_single_slider').contents().clone()); 53 }); 54 $gallery_single_slider.slick({ 55 speed: 400, 56 cssEase: 'ease-in-out', 57 dotsClass: 'pointer', 58 draggable: false, 59 fade: true, 60 arrows: true, 61 slidesToShow: 1, 62 slidesToScroll: 1, 63 swipe: false, 64 asNavFor: $gallery_single_slider_thum, 65 responsive: [ 66 { 67 breakpoint: 600, 68 settings: { 69 draggable: true, 70 swipe: true, 71 fade: false, 72 dots: true, 73 } 74 }, 75 { 76 breakpoint: 450, 77 settings: { 78 draggable: true, 79 swipe: true, 80 fade: false, 81 dots: true, 82 adaptiveHeight: true, 83 } 84 }, 85 ], 86 }); 87 $gallery_single_slider_thum.slick({ 88 speed: 400, 89 cssEase: 'ease-in-out', 90 draggable: false, 91 arrows: false, 92 infinite: false, 93 slidesToShow: 1, 94 slidesToScroll: 1, 95 swipe: false, 96 focusOnSelect: true, 97 asNavFor: $gallery_single_slider 98 }); 99 100 $('.gallery_single_slider_thum a img').unwrap(); 101 } 102}
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.