1jQuery(function($) { 2 "use strict"; 3 4 var SLZ = window.SLZ || {}; 5 6 SLZ.slz_event_carousel = function() { 7 if( $('.event-slider .slz-carousel').length > 0 ) { 8 $(".event-slider .slz-carousel").each(function() { 9 var carousel_item = iParse( $(this).attr('data-slidesToShow') ); 10 var autoplay = $(this).attr( 'data-autoplay' ) === 'yes'; 11 var dots = $(this).attr( 'data-isdot' ) === 'yes'; 12 var arrows = $(this).attr( 'data-isarrow' ) === 'yes'; 13 var infinite = $(this).attr( 'data-infinite' ) === 'yes'; 14 var speed = iParse( $(this).attr( 'data-speed' ) ); 15 16 var responsive = null; 17 18 if( carousel_item == 2) { 19 responsive = [{ 20 breakpoint: 481, 21 settings: { 22 slidesToShow: 1, 23 slidesToScroll: 1, 24 } 25 }]; 26 } 27 28 if( carousel_item == 3) { 29 responsive = [{ 30 breakpoint: 769, 31 settings: { 32 slidesToShow: 2, 33 slidesToScroll: 2, 34 } 35 }, { 36 breakpoint: 481, 37 settings: { 38 slidesToShow: 1, 39 slidesToScroll: 1, 40 } 41 }]; 42 } 43 44 if( carousel_item == 4) { 45 responsive = [{ 46 breakpoint: 1025, 47 settings: { 48 slidesToShow: 3, 49 slidesToScroll: 3, 50 } 51 }, { 52 breakpoint: 769, 53 settings: { 54 slidesToShow: 2, 55 slidesToScroll: 2, 56 } 57 }, { 58 breakpoint: 481, 59 settings: { 60 slidesToShow: 1, 61 slidesToScroll: 1, 62 } 63 }]; 64 } 65 66 $(this).slick({ 67 infinite: infinite, 68 slidesToShow: carousel_item, 69 slidesToScroll: 1, 70 speed: speed, 71 dots: dots, 72 arrows: arrows, 73 appendArrows: $(this).parents('.slz-carousel-wrapper'), 74 prevArrow: '<button class="btn btn-prev"><i class="fa fa-long-arrow-left"></i><span class="text">Previous</span></button>', 75 nextArrow: '<button class="btn btn-next"><span class="text">Next</span> <i class="fa fa-long-arrow-right"></i></button>', 76 responsive: responsive 77 }); 78 }); 79 } 80 }; 81 82 $(document).ready(function() { 83 SLZ.slz_event_carousel(); 84 }); 85 86 function iParse( string ) { 87 var res = parseInt( string ); 88 return isNaN( res ) ? 0 : res; 89 } 90});
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.