1(function( $ ){ 2 if(typeof initIconListSwiper === "undefined"){ 3 function initIconListSwiper(swiperData){ 4 let swiper_icons_options = { 5 spaceBetween: 60, 6 allowTouchMove: true, 7 slidesPerView: 1.3, 8 breakpoints: { 9 1220: { 10 slidesPerView: 3 11 }, 12 1010: { 13 slidesPerView: 2.5 14 }, 15 840: { 16 slidesPerView: 2.3 17 }, 18 630: { 19 slidesPerView: 1.5 20 }, 21 350: { 22 slidesPerView: 1.3 23 } 24 }, 25 centerInsufficientSlides: true, 26 navigation: { 27 prevEl: '#'+swiperData.id+' .swiper-button-prev', 28 nextEl: '#'+swiperData.id+' .swiper-button-next' 29 }, 30 pagination: { 31 el: '#'+swiperData.id+' .swiper-pagination', 32 type: 'bullets' 33 }, 34 on: { 35 resize: function(){ 36 if(this.pagination.bullets.length < 2){ 37 $(this.pagination.el).hide(0); 38 } else{ 39 $(this.pagination.el).show(0); 40 } 41 if(isInBreakpoint(swiperData.breakpoints)){ 42 this.enable(); 43 } else{ 44 this.disable(); 45 } 46 this.update(); 47 } 48 }, 49 enable: isInBreakpoint(swiperData.breakpoints) 50 }; 51 52 $(document).ready(function($){ 53 let swiper_icons = new Swiper('#'+swiperData.id, swiper_icons_options); 54 if(swiper_icons.pagination.bullets.length < 2){ 55 $(swiper_icons.pagination.el).hide(0); 56 } else{ 57 $(swiper_icons.pagination.el).show(0); 58 } 59 swiper_icons.update(); 60 }); 61 } 62 } 63 64 let innerSwiperData = JSON.parse(JSON.stringify(swiperData)); 65 initIconListSwiper(innerSwiperData); 66})( jQuery );
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.