1var swiper = { 2 3 init: function () { 4 //$t = $('[role="swiper"]'); 5 $('.mySwiper').each( function () { 6 console.log('swiper!!!!!!'); 7 8 var id = ''; 9 var slidesPerView = 1; 10 var spaceBetween = 0; 11 var pagination = 'enabled'; 12 13 if ($(this).data('id')) { 14 id = $(this).data('id'); 15 } 16 if ($(this).data('slides-per-view')) { 17 slidesPerView = $(this).data('slides-per-view'); 18 } 19 if ($(this).data('space-between')) { 20 spaceBetween = $(this).data('space-between'); 21 } 22 if ($(this).data('pagination')) { 23 pagination = $(this).data('pagination'); 24 } 25 26 27 var options = { 28 cssMode: true, 29 loop: true, 30 /*slidesPerView: slidesPerView, 31 spaceBetween: spaceBetween, 32 slidesPerGroup: slidesPerView,*/ 33 slidesPerView: 1, 34 spaceBetween: 0, 35 slidesPerGroup: 1, 36 navigation: { 37 nextEl: ".swiper-button-next", 38 prevEl: ".swiper-button-prev", 39 }, 40 keyboard: { 41 enabled: false, 42 // onlyInViewport: true, 43 // pageUpDown: true, 44 }, 45 46 /*autoplay: { 47 delay: 5000, 48 disableOnInteraction: false, 49 pauseOnMouseEnter: true, 50 },*/ 51 mousewheel: true, 52 breakpoints: { 53 640: { 54 slidesPerView: slidesPerView, 55 spaceBetween: spaceBetween, 56 slidesPerGroup: slidesPerView, 57 }, 58 }, 59 }; 60 if (pagination=='disabled') { 61 options.pagination = false; 62 } else { 63 options.pagination = { 64 el: ".swiper-pagination", 65 type: "progressbar", 66 }; 67 } 68 69 swiper = new Swiper( this, options); 70 71 }); 72 console.log('swiper init'); 73 }, 74 75 deprecated: function (){ 76 if (false) { 77 var swiper = new Swiper(".mySwiper", { 78 cssMode: true, 79 loop: true, 80 navigation: { 81 nextEl: ".swiper-button-next", 82 prevEl: ".swiper-button-prev", 83 }, 84 pagination: { 85 el: ".swiper-pagination", 86 type: "progressbar", 87 }, 88 /*autoplay: { 89 delay: 5000, 90 disableOnInteraction: false, 91 pauseOnMouseEnter: true, 92 },*/ 93 mousewheel: true, 94 keyboard: true, 95 }); 96 } 97 }, 98 99 100}; 101 102$(function () { 103 swiper.init(); 104});
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.