PageSourceSearch

https://www.dfdl.com/wp-content/themes/dfdl/assets/js/slider.js?ver=5280b3b28d9b

js dfdl.com collected 2026-10-02 05:30:18 UTC 1,134 bytes, 38 lines download raw bytes

1jQuery(document).ready(function ($) {
2  $(".hero-slider .container.mobile-none").removeClass("opacity-0");
3
4  const carousel = document.getElementById("heroCarousel");
5  if (carousel) {
6    const items = carousel.querySelectorAll(".carousel-item");
7    var currentItem = 0;
8    var isActive = true;
9
10    function setCurrentItem(index) {
11      currentItem = (index + items.length) % items.length;
12    }
13
14    function hideItem(direction) {
15      isActive = false;
16      items[currentItem].classList.add(direction);
17      items[currentItem].addEventListener("animationend", function () {
18        this.classList.remove("active", direction);
19      });
20    }
21
22    function showItem(direction) {
23      items[currentItem].classList.add("next", direction);
24      items[currentItem].addEventListener("animationend", function () {
25        this.classList.remove("next", direction);
26        this.classList.add("active");
27        isActive = true;
28      });
29    }
30    setInterval(function () {
31      if (isActive) {
32        hideItem("to-left");
33        setCurrentItem(currentItem + 1);
34        showItem("from-right");
35      }
36    }, 12000);
37  }
38});

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.