PageSourceSearch

https://milanairports.com/modules/contrib/msg_accordion_paragraph/js/accordion.js?tludc1

js milanairports.com collected 2026-09-24 09:38:05 UTC 1,592 bytes, 40 lines download raw bytes

1(function ($, Drupal) {
2
3  Drupal.behaviors.msg_accordion = {
4    attach: function attach(context) {
5      once('msg_accordion', '.msg-accordion', context).forEach(function (accordion) {
6        var accordion_container = $(accordion);
7
8        accordion_container.find('.msg-accordion-body').hide();
9
10        accordion_container.find('.msg-accordion-title').css('cursor', 'pointer').click(function () {
11          var accordion_title = $(this);
12          var content_wrapper = accordion_title.next();
13          var tu = $('.msg-accordion-title.active');
14
15          if(!$(this).hasClass('active') && $('.msg-accordion-title.active').length > 0) {
16            // Chiudo gli accordion attivi
17            const $filed_parent = content_wrapper.parents().find('.field--name-field-accordion-element');
18            $filed_parent.find('.msg-accordion-body.active').slideUp().removeClass('active');
19            $('.msg-accordion-title.active').removeClass('active');
20          } else {
21            
22          }
23
24          accordion_title.toggleClass('active');
25          
26          content_wrapper.slideToggle('slow', function () {
27            if (content_wrapper.is(":visible")) {
28              accordion_title.trigger('msg_accordion', ['opened', { content_wrapper: content_wrapper }]);
29            } else {
30              accordion_title.trigger('msg_accordion', ['closed', { content_wrapper: content_wrapper }]);
31            }
32          }).toggleClass('active');
33
34          accordion_title.closest('.msg-accordion-element').toggleClass('active');
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.