1function initBottlesCarousel() { 2 const bottlesCarousels = [...document.querySelectorAll('.block-bottles-carousel__swiper')]; 3 4 bottlesCarousels.forEach((bottlesCarousel) => { 5 new Swiper(bottlesCarousel, { 6 slidesPerView: 'auto', 7 centeredSlides: true, 8 centerInsufficientSlides: true, 9 scrollbar: { 10 el: '.swiper-scrollbar', 11 draggable: true 12 }, 13 breakpoints: { 14 768: { 15 centeredSlides: false, 16 } 17 } 18 }); 19 }); 20} 21 22document.addEventListener('DOMContentLoaded', () => { 23 if(!document.querySelector('.wp-admin')) { 24 if (document.querySelector('.block-bottles-carousel')) { 25 initBottlesCarousel(); 26 } 27 } 28});
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.