PageSourceSearch

https://www.sokube.io/wp-content/themes/localhost/pilopress/layout…/testimonial-slider-denti.js?ver=1775120135

js sokube.io collected 2026-09-28 06:43:55 UTC 1,270 bytes, 56 lines download raw bytes

1jQuery(document).ready(function ($) {
2  // Slider wrapper class
3  const slider_wrapper = ".testimonial-slider-denti .splide";
4
5  // If no slider or in admin, return
6  if (!$(slider_wrapper) || $("body").hasClass("wp-admin")) {
7    return;
8  }
9
10  const sliders = {};
11
12  // Browse all elements to initialize every slider
13  $.map($(slider_wrapper), function (item, index) {
14    // Instantiate slider
15    sliders[index] = new Splide(item, {
16      perPage: 1,
17      type: "loop",
18      speed: 1000,
19      autoScroll: {
20        speed: 3,
21      },
22      autoplay: false,
23      rewind: false,
24      interval: 7000,
25      arrows: false,
26      pagination: true,
27      // fixedWidth: "100%",
28      gap: "24px",
29      perPage: 1,
30      breakpoints: {
31        640: {
32          perPage: 1,
33          fixedWidth: "100%",
34        },
35      },
36    }).mount();
37
38    // Custom prev link
39    $(item)
40      .parent()
41      .parent()
42      .find(".splide__arrow--prev")
43      .on("click", function () {
44        sliders[index].go("-1");
45      });
46
47    // Custom next link
48    $(item)
49      .parent()
50      .parent()
51      .find(".splide__arrow--next")
52      .on("click", function () {
53        sliders[index].go("+1");
54      });
55  });
56});

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.