1// DEMOS: https://swiperjs.com/demos 2(function() { 3 if (document.querySelector('.mySwiper')) { 4 const desktopSwiper = new Swiper(".mySwiper", { 5 centeredSlides: true, 6 loop: true, 7 // cssMode: window.innerWidth >= 1024 ? true : false, 8 // effect: "fade", 9 10 // effect: "flip", 11 12 // ______________________________ // 13 // effect: "cube", 14 // cubeEffect: { 15 // shadow: true, 16 // slideShadows: true, 17 // shadowOffset: 20, 18 // shadowScale: 0.94, 19 // }, 20 // ______________________________ // 21 22 // ______________________________ // 23 // effect: "creative", 24 // creativeEffect: { 25 // prev: { 26 // shadow: true, 27 // translate: ["-20%", 0, -1], 28 // }, 29 // next: { 30 // translate: ["100%", 0, 0], 31 // }, 32 // }, 33 // ______________________________ // 34 35 36 // ______________________________ // 37 // effect: "coverflow", 38 // centeredSlides: true, 39 // slidesPerView: "auto", 40 // coverflowEffect: { 41 // rotate: 50, 42 // stretch: 0, 43 // depth: 100, 44 // modifier: 1, 45 // slideShadows: true, 46 // }, 47 // ______________________________ // 48 49 threshold: 20, // distance in px needed to travel to swipe to next slide 50 51 speed: 600, 52 parallax: true, 53 54 loopFillGroupWithBlank: false, 55 // direction: "vertical", 56 direction: "horizontal", 57 autoplay: { 58 delay: 5000, 59 disableOnInteraction: true, // transitions stops after next/previous 60 }, 61 pagination: { 62 el: ".swiper-pagination", 63 clickable: true, 64 }, 65 navigation: { 66 nextEl: ".swiper-button-next", 67 prevEl: ".swiper-button-prev", 68 }, 69 }); 70 } 71 72 if (document.querySelector('.testimonialsSwiper')) { 73 const desktopSwiper = new Swiper(".testimonialsSwiper", { 74 centeredSlides: true, 75 loop: true, 76 77 78 threshold: 20, // distance in px needed to travel to swipe to next slide 79 80 speed: 600, 81 parallax: true, 82 83 loopFillGroupWithBlank: false, 84 // direction: "vertical", 85 direction: "horizontal", 86 autoplay: { 87 delay: 5000, 88 disableOnInteraction: true, // transitions stops after next/previous 89 }, 90 pagination: { 91 el: ".swiper-pagination", 92 type: "fraction", 93 renderFraction: function (currentClass, totalClass) { 94 return '<span class="' + currentClass + '"></span>' + 95 ' of ' + 96 '<span class="' + totalClass + '"></span>'; 97 } 98 }, 99 navigation: { 100 nextEl: ".swiper-button-next", 101 prevEl: ".swiper-button-prev", 102 }, 103 }); 104 } 105 106 // ______________________________ // 107})()
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.