PageSourceSearch

https://www.lasercomponents.com/_assets/9cae429012e3a8c2d351b923dbf21ac5/JavaScript/sliderCards.js?84471ee9a7

js lasercomponents.com collected 2026-10-02 08:04:26 UTC 1,131 bytes, 48 lines download raw bytes

1/* js/sliders.js  */
2document.addEventListener('DOMContentLoaded', function(){
3
4  document.querySelectorAll('.m-slider').forEach((swiper, index) => {
5    let slideGroup = (swiper.getAttribute('data-slide-group')) ? parseInt(swiper.getAttribute('data-slide-group')) : 2;
6
7    new Swiper(swiper, {
8      /* loop: true, */
9      spaceBetween: 32,
10      slidesPerView: 1,
11      slidesPerGroup: 1,
12      centeredSlides: false,
13      /* autoplay: {
14          delay: 2500,
15          disableOnInteraction: false,
16      }, */
17
18      breakpoints: {
19        768: {
20          slidesPerView: 2,
21          slidesPerGroup: 2,
22          centeredSlides: false,
23        },
24        992: {
25          slidesPerView: 3,
26          slidesPerGroup: 3,
27          centeredSlides: false,
28        },
29        1200: {
30          slidesPerView: slideGroup,
31          slidesPerGroup: slideGroup,
32          centeredSlides: false,
33        },
34
35      },
36
37      pagination: {
38        el: '.swiper-pagination',
39        clickable: true,
40      },
41
42      navigation: {
43        nextEl: '.swiper-button-next',
44        prevEl: '.swiper-button-prev',
45      },
46    });
47  });
48});

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.