1// `simulateTouch: false` = arrows on pointer devices, touch/drag only on touch. 2document.addEventListener('DOMContentLoaded', () => { 3 const blocks = document.querySelectorAll('.discovery-destinations'); 4 if (!blocks.length || typeof Swiper === 'undefined') return; 5 6 blocks.forEach((block) => { 7 const el = block.querySelector('.swiper'); 8 if (!el) return; 9 10 new Swiper(el, { 11 slidesPerView: 'auto', 12 spaceBetween: 16, 13 watchOverflow: true, 14 rewind: true, 15 simulateTouch: false, 16 breakpoints: { 17 1009: { spaceBetween: 24 }, 18 }, 19 navigation: { 20 prevEl: block.querySelector('.discovery-destinations-prev'), 21 nextEl: block.querySelector('.discovery-destinations-next'), 22 }, 23 pagination: { 24 el: block.querySelector('.discovery-destinations-pagination'), 25 type: 'progressbar', 26 }, 27 keyboard: { enabled: true }, 28 a11y: { prevSlideMessage: 'Previous destinations', nextSlideMessage: 'Next destinations' }, 29 }); 30 }); 31});
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.