PageSourceSearch

https://jhskiclub.org/themes/custom/ski_club_site/js/custom.js?v=10.6.15

js jhskiclub.org collected 2026-10-07 04:19:11 UTC 1,041 bytes, 40 lines download raw bytes

1/**
2 * @file
3 * Global utilities.
4 */
5(function($, Drupal) {
6
7  'use strict';
8
9  Drupal.behaviors.ski_club_site = {
10    attach: function(context, settings) {
11
12      $(document).ready(function() {
13        // Ensure all panels are hidden by default on load.
14        $('.acc__panel', context).hide();
15
16        // Toggle open/close on click.
17        $(document).on('click', '.acc__title', function(e) {
18          var dropDown = $(this).closest('.acc__card').find('.acc__panel');
19
20          // Close all other panels.
21          $(this).closest('.acc').find('.acc__panel').not(dropDown).slideUp();
22
23          // Toggle active class.
24          if ($(this).hasClass('active')) {
25            $(this).removeClass('active');
26          } else {
27            $(this).closest('.acc').find('.acc__title.active').removeClass('active');
28            $(this).addClass('active');
29          }
30
31          // Toggle this panel.
32          dropDown.stop(false, true).slideToggle();
33          e.preventDefault();
34        });
35      });
36
37    }
38  };
39
40})(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.