PageSourceSearch

https://www.kzooymca.org/sites/default/files/advagg_js/js__9G6tfwL…LXJ68KeaWwhJUD7j_1UqoT1EMyB5tYA7vZT4gNXA.js

js kzooymca.org collected 2026-09-28 13:13:23 UTC 11,361 bytes, 346 lines download raw bytes

1(function ($) {
2  // Implement a show/hide.
3  Drupal.behaviors.menu_attach_block = {
4    attach: function (context, settings) {
5      // Attach hover events, if this link has been defined as hoverable.
6      $('a.menu-attach-block-drop-link.expand-on-hover', context).hover(
7          /**
8           * Show on mouse in.
9           */
10          function() {
11            // Show the block if it is not already shown.
12            if (!($(this).hasClass('dropped'))) {
13              expand_toggle($(this));
14            }
15          },
16          /**
17           * Hide on mouse out.
18           */
19          function() {
20            expand_toggle($(this));
21          }
22      );
23
24      // Attach click events for links configured to use that.
25      $('a.menu-attach-block-drop-link.expand-on-click', context).click(function(event) {
26        expand_toggle($(this));
27        event.preventDefault();
28      });
29
30      /**
31       * Shows a block embedded inside a menu item.
32       *
33       * @param link
34       *   The link attached to this menu item, which triggers block show.
35       */
36      function expand_toggle(link) {
37        if (link.hasClass('menu-ajax-enabled')) {
38          // Load contents using AJAX.
39          if (!link.hasClass('menu-ajax-loaded')) {
40            ajax_path = Drupal.settings.basePath + 'menu_attach_block/ajax/' + (link).attr('data-block-id');
41            $.ajax({
42              type: 'GET',
43              url: ajax_path,
44              data: '',
45              dataType: 'HTML',
46              success: function ($block_html) {
47                $(link).next('.menu-attach-block-wrapper').html($block_html);
48                Drupal.attachBehaviors(link);
49              }
50            });
51          }
52        }
53        // Show/hide the link.
54        $(link).next('.menu-attach-block-wrapper').slideToggle('fast');
55        $(link).toggleClass('dropped');
56      }
57    }
58  }
59}(jQuery));
60
61;/*})'"*/
62;/*})'"*/
63!(($, Drupal) => {
64  "use strict";
65
66  Drupal.behaviors.sociy_accordion_bubbles_anchor_links = {
67    attach: function (context, settings) {
68      window.addEventListener("load", handleHash);
69    },
70    detach: function (context, settings) {
71      window.removeEventListener("load", handleHash);
72    },
73  };
74
75  function handleHash() {
76    var hash = window.location.hash;
77    if (hash != null && hash != "") {
78      var $anchor = $(hash);
79      var topBar = 126;
80
81      // Find the closest H3 inside the bubble, offset by 126px and then scroll to
82      // the H3.
83      var $title = $anchor
84        .parents(".component-accordion-bubbles")
85        .find(".field-group-format-title");
86
87      // If we found the element, we scroll to it and click it.
88      if ($title.length > 0) {
89        var offset = $title.offset().top - topBar - $title.height();
90        $("html").animate({ scrollTop: offset }, 300);
91        $title.click();
92      }
93
94    }
95  }
96})(jQuery, Drupal);
97
98;/*})'"*/
99;/*})'"*/
100
101(function($) {
102
103/**
104 * Drupal FieldGroup object.
105 */
106Drupal.FieldGroup = Drupal.FieldGroup || {};
107Drupal.FieldGroup.Effects = Drupal.FieldGroup.Effects || {};
108Drupal.FieldGroup.groupWithfocus = null;
109
110Drupal.FieldGroup.setGroupWithfocus = function(element) {
111  element.css({display: 'block'});
112  Drupal.FieldGroup.groupWithfocus = element;
113}
114
115/**
116 * Implements Drupal.FieldGroup.processHook().
117 */
118Drupal.FieldGroup.Effects.processFieldset = {
119  execute: function (context, settings, type) {
120    if (type == 'form') {
121      // Add required fields mark to any fieldsets containing required fields
122      $('fieldset.fieldset', context).once('fieldgroup-effects', function(i) {
123        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
124          $('legend span.fieldset-legend', $(this)).eq(0).append(' ').append($('.form-required').eq(0).clone());
125        }
126        if ($('.error', $(this)).length) {
127          $('legend span.fieldset-legend', $(this)).eq(0).addClass('error');
128          Drupal.FieldGroup.setGroupWithfocus($(this));
129        }
130      });
131    }
132  }
133}
134
135/**
136 * Implements Drupal.FieldGroup.processHook().
137 */
138Drupal.FieldGroup.Effects.processAccordion = {
139  execute: function (context, settings, type) {
140    $('div.field-group-accordion-wrapper', context).once('fieldgroup-effects', function () {
141      var wrapper = $(this);
142
143      // Get the index to set active.
144      var active_index = false;
145      wrapper.find('.accordion-item').each(function(i) {
146        if ($(this).hasClass('field-group-accordion-active')) {
147          active_index = i;
148        }
149      });
150
151      wrapper.accordion({
152        heightStyle: "content", // jQuery UI >= v1.9
153        autoHeight: false,      // jQuery UI < v1.9
154        active: active_index,
155        collapsible: true,
156        changestart: function(event, ui) {
157          if ($(this).hasClass('effect-none')) {
158            ui.options.animated = false;
159          }
160          else {
161            ui.options.animated = 'slide';
162          }
163        }
164      });
165
166      if (type == 'form') {
167
168        var $firstErrorItem = false;
169
170        // Add required fields mark to any element containing required fields
171        wrapper.find('div.field-group-accordion-item').each(function(i) {
172
173          if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
174            $('h3.ui-accordion-header a').eq(i).append(' ').append($('.form-required').eq(0).clone());
175          }
176          if ($('.error', $(this)).length) {
177            // Save first error item, for focussing it.
178            if (!$firstErrorItem) {
179              $firstErrorItem = $(this).parent().accordion("option", "active", i);
180            }
181            $('h3.ui-accordion-header').eq(i).addClass('error');
182          }
183        });
184
185        // Save first error item, for focussing it.
186        if (!$firstErrorItem) {
187          $('.ui-accordion-content-active', $firstErrorItem).css({height: 'auto', width: 'auto', display: 'block'});
188        }
189
190      }
191    });
192  }
193}
194
195/**
196 * Implements Drupal.FieldGroup.processHook().
197 */
198Drupal.FieldGroup.Effects.processHtabs = {
199  execute: function (context, settings, type) {
200    if (type == 'form') {
201      // Add required fields mark to any element containing required fields
202      $('fieldset.horizontal-tabs-pane', context).once('fieldgroup-effects', function(i) {
203        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
204          $(this).data('horizontalTab').link.find('strong:first').after($('.form-required').eq(0).clone()).after(' ');
205        }
206        if ($('.error', $(this)).length) {
207          $(this).data('horizontalTab').link.parent().addClass('error');
208          Drupal.FieldGroup.setGroupWithfocus($(this));
209          $(this).data('horizontalTab').focus();
210        }
211      });
212    }
213  }
214}
215
216/**
217 * Implements Drupal.FieldGroup.processHook().
218 */
219Drupal.FieldGroup.Effects.processTabs = {
220  execute: function (context, settings, type) {
221    if (type == 'form') {
222
223      var errorFocussed = false;
224
225      // Add required fields mark to any fieldsets containing required fields
226      $('fieldset.vertical-tabs-pane', context).once('fieldgroup-effects', function(i) {
227        if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
228          $(this).data('verticalTab').link.find('strong:first').after($('.form-required').eq(0).clone()).after(' ');
229        }
230        if ($('.error', $(this)).length) {
231          $(this).data('verticalTab').link.parent().addClass('error');
232          // Focus the first tab with error.
233          if (!errorFocussed) {
234            Drupal.FieldGroup.setGroupWithfocus($(this));
235            $(this).data('verticalTab').focus();
236            errorFocussed = true;
237          }
238        }
239      });
240    }
241  }
242}
243
244/**
245 * Implements Drupal.FieldGroup.processHook().
246 *
247 * TODO clean this up meaning check if this is really
248 *      necessary.
249 */
250Drupal.FieldGroup.Effects.processDiv = {
251  execute: function (context, settings, type) {
252
253    $('div.collapsible', context).once('fieldgroup-effects', function() {
254      var $wrapper = $(this);
255
256      // Turn the legend into a clickable link, but retain span.field-group-format-toggler
257      // for CSS positioning.
258
259      var $toggler = $('span.field-group-format-toggler:first', $wrapper);
260      var $link = $('<a class="field-group-format-title" href="#"></a>');
261      $link.prepend($toggler.contents());
262
263      // Add required field markers if needed
264      if ($(this).is('.required-fields') && $(this).find('.form-required').length > 0) {
265        $link.append(' ').append($('.form-required').eq(0).clone());
266      }
267
268      $link.appendTo($toggler);
269
270      // .wrapInner() does not retain bound events.
271      $link.click(function () {
272        var wrapper = $wrapper.get(0);
273        // Don't animate multiple times.
274        if (!wrapper.animating) {
275          wrapper.animating = true;
276          var speed = $wrapper.hasClass('speed-fast') ? 300 : 1000;
277          if ($wrapper.hasClass('effect-none') && $wrapper.hasClass('speed-none')) {
278            $('> .field-group-format-wrapper', wrapper).toggle();
279            wrapper.animating = false;
280          }
281          else if ($wrapper.hasClass('effect-blind')) {
282            $('> .field-group-format-wrapper', wrapper).toggle('blind', {}, speed);
283            wrapper.animating = false;
284          }
285          else {
286            $('> .field-group-format-wrapper', wrapper).toggle(speed, function() {
287              wrapper.animating = false;
288            });
289          }
290        }
291        $wrapper.toggleClass('collapsed');
292        return false;
293      });
294
295    });
296  }
297};
298
299/**
300 * Behaviors.
301 */
302Drupal.behaviors.fieldGroup = {
303  attach: function (context, settings) {
304    settings.field_group = settings.field_group || Drupal.settings.field_group;
305    if (settings.field_group == undefined) {
306      return;
307    }
308
309    // Execute all of them.
310    $.each(Drupal.FieldGroup.Effects, function (func) {
311      // We check for a wrapper function in Drupal.field_group as
312      // alternative for dynamic string function calls.
313      var type = func.toLowerCase().replace("process", "");
314      if (settings.field_group[type] != undefined && $.isFunction(this.execute)) {
315        this.execute(context, settings, settings.field_group[type]);
316      }
317    });
318
319    // Fixes css for fieldgroups under vertical tabs.
320    $('.fieldset-wrapper .fieldset > legend').css({display: 'block'});
321    $('.vertical-tabs fieldset.fieldset').addClass('default-fallback');
322
323    // Add a new ID to each fieldset.
324    $('.group-wrapper .horizontal-tabs-panes > fieldset', context).once('group-wrapper-panes-processed', function() {
325      // Tats bad, but we have to keep the actual id to prevent layouts to break.
326      var fieldgroupID = 'field_group-' + $(this).attr('id');
327      $(this).attr('id', fieldgroupID);
328    });
329    // Set the hash in url to remember last userselection.
330    $('.group-wrapper ul li').once('group-wrapper-ul-processed', function() {
331      var fieldGroupNavigationListIndex = $(this).index();
332      $(this).children('a').click(function() {
333        var fieldset = $('.group-wrapper fieldset').get(fieldGroupNavigationListIndex);
334        // Grab the first id, holding the wanted hashurl.
335        var hashUrl = $(fieldset).attr('id').replace(/^field_group-/, '').split(' ')[0];
336        window.location.hash = hashUrl;
337      });
338    });
339
340  }
341};
342
343})(jQuery);
344
345;/*})'"*/
346;/*})'"*/

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.