PageSourceSearch

https://www.hotelslitteraires.fr/res/js/template/slider/posts-cards/ui.js?q=1790690343601

js hotelslitteraires.fr collected 2026-10-02 04:44:02 UTC 850 bytes, 32 lines download raw bytes

1var initSliderPostsCards = async function() {
2   if (typeof Swiper !== 'function') {
3    if (!document.querySelector("link[href='/res/js/swiper/swiper-bundle.css']")) {
4      lazy.loadScript('/res/js/swiper/swiper-bundle.css')
5    }
6    await lazy.loadScript('/res/js/swiper/swiper-bundle.min.js')
7  }
8  sliderPostsCards()
9}
10
11const sliderPostsCards = () => {
12  document.querySelectorAll('.slider-posts-cards').forEach(item => {
13    const parent = item.closest('.slider');
14
15    new Swiper(item, {
16      speed: 400,
17      spaceBetween: 5,
18      slidesPerView: 1.1,
19      loop: true,
20      breakpoints: {
21        768: {
22          slidesPerView: 1.4,
23          spaceBetween: 40,
24        },
25      },
26      navigation: {
27          nextEl: parent.querySelector('.button-next'),
28          prevEl: parent.querySelector('.button-prev')
29      },
30    });
31  });
32}

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.