PageSourceSearch

https://www.advertimes.com/wp-content/themes/swell_advertimes/build/js/post_slider.js?ver=2026093080254

js advertimes.com collected 2026-10-02 03:05:10 UTC 1,214 bytes, 47 lines download raw bytes

1!(function () {
2  // デバイスの幅に基づいてslidesPerViewの値を設定
3  var slidesPerViewValue = window.innerWidth < 992 ? 1 : 2
4
5  // Swiperを初期化
6  new Swiper(".advertimes__swiper", {
7    // オプションをここに設定
8    loop: true,
9    slidesPerView: slidesPerViewValue, // デバイスの幅に応じた値を使用
10    spaceBetween: 0, // スライド間の間隔
11    pagination: {
12      el: ".swiper-pagination",
13    },
14    navigation: {
15      nextEl: ".swiper-button-next",
16      prevEl: ".swiper-button-prev",
17    },
18  })
19
20  new Swiper(".advertimes__recommend_swiper", {
21    // オプションをここに設定
22    loop: true,
23    slidesPerView: 1, // デバイスの幅に応じた値を使用
24    spaceBetween: 0, // スライド間の間隔
25    pagination: {
26      el: ".swiper-pagination",
27    },
28    navigation: {
29      nextEl: ".swiper-button-next",
30      prevEl: ".swiper-button-prev",
31    },
32  })
33
34  function smoothScroll(targetId, value) {
35    $(targetId).animate(
36      {
37        scrollLeft: "+=" + value,
38      },
39      300
40    )
41  }
42
43  $(".scroll-next").on("click", function () {
44    const targetId = $(this).data("target")
45    smoothScroll(targetId, 100)
46  })
47})()

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.