PageSourceSearch

https://www.accademiamoda.it/wp-content/themes/iuad-theme/src/js/custom/exchange-program-carousel.js?ver=1.0.0

js accademiamoda.it collected 2026-10-04 13:24:20 UTC 1,623 bytes, 60 lines download raw bytes

1(function () {
2    'use strict';
3
4    document.addEventListener('DOMContentLoaded', function () {
5        if (typeof Swiper === 'undefined') {
6            return;
7        }
8
9        var wrappers = document.querySelectorAll('.exchange-program-carousel-wrapper');
10        if (!wrappers.length) {
11            return;
12        }
13
14        wrappers.forEach(function (wrapper) {
15            var carousel = wrapper.querySelector('.exchange-program-carousel');
16            if (!carousel) {
17                return;
18            }
19
20            var slides = carousel.querySelectorAll('.swiper-slide');
21            if (slides.length < 2) {
22                return;
23            }
24
25            var orientation = 'verticale';
26            var paginationEl = wrapper.querySelector('.swiper-pagination');
27
28            var config = {
29                loop: true,
30                speed: 800,
31                spaceBetween: 20,
32                slidesPerView: 1,
33                pagination: {
34                    el: paginationEl,
35                    clickable: true,
36                    dynamicBullets: true,
37                },
38                breakpoints: {}
39            };
40
41            config.breakpoints = {
42                576: {
43                    slidesPerView: 2,
44                    spaceBetween: 20,
45                },
46                768: {
47                    slidesPerView: 3,
48                    spaceBetween: 30,
49                },
50                1200: {
51                    slidesPerView: 3,
52                    spaceBetween: 30,
53                }
54            };
55
56            new Swiper(carousel, config);
57        });
58    });
59})();
60

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.