1(function () { 2 function initReviewSwipers() { 3 if (typeof Swiper === 'undefined') { 4 return; 5 } 6 7 var containers = document.querySelectorAll('.fp-review-aggregator-swiper'); 8 9 containers.forEach(function (container) { 10 var instanceId = container.getAttribute('data-instance'); 11 12 if (!instanceId) { 13 return; 14 } 15 16 var slidesPerView = parseInt(container.getAttribute('data-slides-per-view'), 10) || 1; 17 var reviewCount = parseInt(container.getAttribute('data-review-count'), 10) || 0; 18 var loop = container.getAttribute('data-loop') === 'true'; 19 var wrapSelector = '#' + instanceId; 20 21 new Swiper(container, { 22 slidesPerView: 1, 23 spaceBetween: 24, 24 loop: loop, 25 autoplay: { 26 delay: 8000, 27 disableOnInteraction: false, 28 pauseOnMouseEnter: true, 29 }, 30 navigation: { 31 nextEl: wrapSelector + ' .fp-review-aggregator-swiper-nav__next', 32 prevEl: wrapSelector + ' .fp-review-aggregator-swiper-nav__prev' 33 }, 34 pagination: { 35 el: wrapSelector + ' .swiper-pagination', 36 clickable: true 37 }, 38 breakpoints: { 39 640: { 40 slidesPerView: Math.min(2, slidesPerView) 41 }, 42 1024: { 43 slidesPerView: slidesPerView 44 } 45 }, 46 allowTouchMove: reviewCount > 1 47 }); 48 }); 49 } 50 51 if (document.readyState === 'loading') { 52 document.addEventListener('DOMContentLoaded', initReviewSwipers); 53 } else { 54 initReviewSwipers(); 55 } 56})();
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.