PageSourceSearch

https://sc.gov/themes/custom/scgov_2024/js/main.js?v=10.6.15

js sc.gov collected 2026-09-24 06:56:13 UTC 1,144 bytes, 40 lines download raw bytes

1(function (Drupal, $, cookies) {
2  Drupal.behaviors.mainScripts = {
3    attach: function (context, settings) {
4
5      // Activate slide show on homepage hero.
6      $(once('heroSlideShow', '.hero-slide-show', context)).each(function () {
7        $(this).slideshow({
8          autoplay: false,
9          randomize: true,
10        });
11      });
12
13      let popupCookie = cookies.get('popup_dialog', Number);
14      if ($('.popup-dialog').length && !popupCookie) {
15        $.fancybox.open({
16          src: '.popup-dialog',
17          type: 'inline',
18          touch: false,
19          opts: {
20            touch: false,
21            afterClose: function (instance, current) {
22              cookies.set('popup_dialog', 1, {
23                expires: 400,
24              });
25            }
26          }
27        });
28      }
29
30      // Example of preventing propagation for an element within the Fancybox content
31      $('.popup-dialog').on('click', function (event) {
32        let target = event.target;
33        if (!target.closest('[data-fancybox-close]')) {
34          event.stopPropagation();
35        }
36      });
37
38    }
39  };
40})(Drupal, jQuery, window.Cookies);

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.