PageSourceSearch

https://calvin.edu/themes/custom/provus_calvin/js/news-slider.js?tlrp7b

js calvin.edu collected 2026-09-24 08:35:09 UTC 2,702 bytes, 94 lines download raw bytes

1(function ($, Drupal) {
2  Drupal.behaviors.newsSlider = {
3    attach: function(context, settings) {
4      if ($('.views-news-slider > .view-content').length > 0) {
5        $('.views-news-slider > .view-content').each(function() {
6          // console.log($(this).find('button'));
7          $(this).find('a').each(function() {
8            $(this).attr('tabindex', -1);
9          });
10          const sliderSpeed = $(this).attr('data-slide-speed');
11          $(this).slick({
12            slidesToShow: 2,
13            infinite: false,
14            variableWidth: true,
15            arrows: true,
16            dots: false,
17            fade: false,
18            speed: 1000,
19            pauseOnHover: false,
20            autoplay: false,
21            autoplaySpeed: sliderSpeed,
22            centerMode: false,
23            responsive: [
24              {
25                breakpoint: 1191,
26                settings: {
27                  arrows: false,
28                  dots: true,
29                  slidesToShow: 2,
30                  centerMode: false
31                }
32              },
33              {
34                breakpoint: 767,
35                settings: {
36                  arrows: false,
37                  dots: true,
38                  slidesToShow: 1,
39                  centerMode: true
40                }
41              }
42            ],
43            accessibility: false
44          });
45
46        });
47      }
48    
49      if ($('.views-admission-events-slider > .view-content').length > 0) {
50        $('.views-admission-events-slider > .view-content').each(function() {
51          $(this).find('a').each(function() {
52            $(this).attr('tabindex', -1);
53          });
54          const sliderSpeed = $(this).attr('data-slide-speed');
55          $(this).slick({
56            slidesToShow: 2,
57            infinite: false,
58            variableWidth: true,
59            arrows: true,
60            dots: false,
61            fade: false,
62            speed: 1000,
63            pauseOnHover: false,
64            autoplay: false,
65            autoplaySpeed: sliderSpeed,
66            centerMode: false,
67            responsive: [
68              {
69                breakpoint: 991,
70                settings: {
71                  arrows: true,
72                  dots: false,
73                  slidesToShow: 2,
74                  centerMode: false
75                }
76              },
77              {
78                breakpoint: 767,
79                settings: {
80                  arrows: false,
81                  dots: true,
82                  slidesToShow: 1,
83                  centerMode: true
84                }
85              }
86            ],
87            accessibility: false
88          });
89        });
90      }
91    }
92  }
93
94})(jQuery, Drupal);

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.