PageSourceSearch

https://www.hollins.edu/wp-content/themes/hollins/js/dist/swiper/feature-hero.js?ver=1790219329

js hollins.edu collected 2026-09-24 09:03:57 UTC 1,440 bytes, 52 lines download raw bytes

1let toggle = false;
2if (document.querySelector(".feature-hero-section")) {
3  const hero = document.querySelector(".feature-hero-section");
4
5  if (hero.getAttribute("data-toggle") == "true") {
6    toggle = {
7      delay: 5000,
8      disableOnInteraction: false,
9    };
10  }
11}
12
13// Feature Hero Swiper
14if (document.querySelector(".feature-hero-swiper")) {
15  var featureHeroSwiper = new Swiper(".feature-hero-swiper", {
16    effect: "fade",
17    loop: true,
18    speed: 1000,
19    autoplay: toggle,
20    fadeEffect: {
21      crossFade: true,
22    },
23    navigation: {
24      nextEl: ".hero-swiper-button-next",
25      prevEl: ".hero-swiper-button-prev",
26    },
27    pagination: {
28      el: ".swiper-pagination",
29      clickable: true,
30    },
31  });
32}
33
34if (document.querySelector(".feature-hero-autoplay-button")) {
35  if (document.querySelector(".feature-hero-swiper")) {
36    const swiper = document.querySelector(".feature-hero-swiper").swiper; // initializes HTML element of swiper.
37    const btn = document.querySelector(".feature-hero-autoplay-button");
38
39    btn.addEventListener("click", () => {
40      btn.classList.toggle("paused");
41      if (btn.classList.contains("paused")) {
42        // classnames are opposite of what they should be.
43        swiper.autoplay.start();
44      } else {
45        swiper.autoplay.stop();
46      }
47      btn.textContent = btn.classList.contains("paused")
48        ? "Click to Pause"
49        : "Click to Play";
50    });
51  }
52}

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.