PageSourceSearch

https://cosasandiego.com/scripts/C-banner-v2.js

js cosasandiego.com collected 2026-09-29 08:57:01 UTC 1,320 bytes, 36 lines download raw bytes

1let bannerOverlayText = $('.ccms-banner-overlay h1 strong');
2
3$(bannerOverlayText).each(function( index ) {
4  if(!$(this).children('span').hasClass('visuallyhidden'))
5  {
6      $(this).parent('h1').addClass('banner-has-text');
7  }
8});
9
10
11function overrideAutoplaySpeed() {
12    // Use querySelectorAll to get all elements with the class 'ccms-banner-slider'
13    var bannerSliders = document.querySelectorAll('.ccms-banner-slider');
14
15    // Loop through each matching element
16    bannerSliders.forEach(function(bannerSlider) {
17        // Check if the element exists
18        if (bannerSlider) {
19            // Assuming slick is available on each element
20            if (bannerSlider.slick) {
21                // Wait for the YouTube video to be fully loaded
22                var youtubeVideo = bannerSlider.querySelector('.ccms-banner-muteYouTubeVideoPlayer');
23
24                if (youtubeVideo) {
25                    youtubeVideo.addEventListener('load', function() {
26                        // Update options after the video is loaded
27                        bannerSlider.slick.options.autoplaySpeed = 10000;
28                        bannerSlider.slick.options.speed = 200;
29                    });
30                }
31            }
32        }
33    });
34}
35
36setTimeout(overrideAutoplaySpeed, 500);

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.