PageSourceSearch

https://surescripts.com/themes/surescripts/templates/assets/scripts/sections/hero-resources.js?tlvobb

js surescripts.com collected 2026-09-24 18:03:00 UTC 1,678 bytes, 62 lines download raw bytes

1(function ($) {
2  $(document).ready(function () {
3    var $mobileSliders = $(".hero-resources .mobile-slider");
4
5    if (!$mobileSliders.length) {
6      return;
7    }
8
9    $mobileSliders.each(function () {
10      var $slider = $(this);
11
12      if (!$slider.next(".sliderControlsOuter").length) {
13        $("<div class='sliderControlsOuter'></div>").insertAfter($slider);
14        $slider
15          .next(".sliderControlsOuter")
16          .prepend("<div class='sliderControls'></div>");
17        $slider
18          .next(".sliderControlsOuter")
19          .find(".sliderControls")
20          .prepend("<span class='slick-prev'></span>")
21          .append("<span class='slick-next'></span>");
22      }
23    });
24
25    function initSlider() {
26      $mobileSliders.each(function () {
27        var $slider = $(this);
28        var $controls = $slider
29          .next(".sliderControlsOuter")
30          .find(".sliderControls");
31
32        if (
33          $(window).width() <= 767 &&
34          !$slider.hasClass("slick-initialized")
35        ) {
36          $slider.slick({
37            dots: true,
38            arrows: true,
39            infinite: true,
40            speed: 300,
41            slidesToShow: 1,
42            slidesToScroll: 1,
43            adaptiveHeight: true,
44            mobileFirst: true,
45            appendDots: $controls,
46            prevArrow: $controls.find(".slick-prev"),
47            nextArrow: $controls.find(".slick-next"),
48            responsive: [
49              {
50                breakpoint: 768,
51                settings: "unslick",
52              },
53            ],
54          });
55        }
56      });
57    }
58
59    initSlider();
60    $(window).on("resize", initSlider);
61  });
62})(jQuery);

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.