1import BaseController from "controllers/base_controller"; 2import Swiper from "swiper/bundle"; 3 4export default class extends BaseController { 5 static targets = ["swiper"]; 6 7 connect() { 8 if (!this.mobile) return; 9 10 this.swiper = new Swiper(this.swiperTarget, { 11 centeredSlides: true, 12 slidesPerView: 1.5, 13 autoplay: { 14 delay: 2500, 15 disableOnInteraction: false, 16 }, 17 spaceBetween: 16, 18 loop: true 19 }); 20 } 21 22 disconnect() { 23 this.swiper?.destroy(); 24 } 25}
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.