1 2// components - slider 3var sliderParallax = function(sel) { 4 5 // objet 6 var _ = this; 7 8 // element 9 _.$component = $(sel); 10 _.$slickCarousel = _.$component.find('.slick-container'); 11 _.$slickNav = _.$component.find('.slick-nav'); 12 13 // --- 14 15 // init 16 this.init = function() { 17 18 if (_.$slickCarousel.length) { 19 _.$slickCarousel.not('.slick-initialized').slick({ 20 dots: false, 21 arrows: true, 22 centerMode: true, 23 prevArrow: '<button type="button" class="slick-prev slick-arrow icon-arrow-left-big" aria-label="Previous"></button>', 24 nextArrow: '<button type="button" class="slick-next slick-arrow icon-arrow-big" aria-label="Next"></button>', 25 speed: 300, 26 slidesToShow: 1, 27 swipeToSlide: true, 28 // asNavFor: '.slick-nav', 29 variableWidth: true, 30 responsive: [ 31 { 32 breakpoint: 961, 33 settings: { 34 slidesToShow: 1, 35 } 36 } 37 ] 38 }); 39 } 40 41 } 42 43 // --- 44 45 // init 46 this.init(); 47 48}
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.