1var mySwiperService = null; 2const slideCount = document.querySelectorAll('.swiper-slide').length; 3function initSwiper() { 4 mySwiperService = new Swiper(".service-swiper", { 5 loop: false, 6 slidesPerView: 10, 7 spaceBetween: 10, 8 /*autoplay: { 9 delay: 2000, 10 disableOnInteraction: false, 11 },*/ 12 navigation: { 13 prevEl: ".swiper-service-prev", 14 nextEl: ".swiper-service-next", 15 }, 16 17 breakpoints: { 18 768: { 19 slidesPerView: 4, 20 spaceBetween: 10, 21 }, 22 1200: { 23 slidesPerView: 6, 24 spaceBetween: 10, 25 }, 26 1600: { 27 slidesPerView: 10, 28 spaceBetween: 10, 29 }, 30 }, 31 watchOverflow: true, 32 }); 33 34} 35 36function destroySwiper() { 37 if (mySwiperService !== null) { 38 mySwiperService.destroy(true, true); 39 mySwiperService = null; 40 } 41} 42 43function handleResize() { 44 if (window.innerWidth > 769) { 45 if (!mySwiperService) { 46 initSwiper(); 47 } 48 } 49 else { 50 destroySwiper(); 51 } 52 if (typeof mySwiperService !== 'undefined' && mySwiperService) { 53 mySwiperService.update(); 54 } 55} 56 57window.addEventListener('resize', handleResize); 58handleResize();
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.