PageSourceSearch

https://www.boatshownorwalk.com/themes/custom/boatshow/assets-dist/js/faq.js?tlvnoy

js boatshownorwalk.com collected 2026-09-24 23:57:51 UTC 1,045 bytes, 34 lines download raw bytes

1'use strict';
2
3(function ($, Drupal) {
4  'use strict';
5
6  Drupal.behaviors.faq = {
7    attach: function attach(context, settings) {
8      $(context).find('.faq-list .faq-question').once('boatshow-faq').each(function () {
9        var $thisFaqQuestion = $(this);
10
11        var $thisFaqControl = $thisFaqQuestion.find('button');
12        var expanded = $thisFaqControl.attr('aria-expanded');
13        var $thisFaqAnswer = $thisFaqQuestion.siblings('.faq-answer').find('div#' + $thisFaqControl.attr('aria-controls'));
14
15        if (expanded === 'false') {
16          $thisFaqAnswer.hide();
17        }
18
19        $thisFaqControl.click(function (event) {
20          if (expanded === 'false') {
21            $thisFaqControl.attr('aria-expanded', 'true');
22            $thisFaqAnswer.show();
23          } else {
24            $thisFaqControl.attr('aria-expanded', 'false');
25            $thisFaqAnswer.hide();
26          }
27
28          expanded = $thisFaqControl.attr('aria-expanded');
29        });
30      });
31    }
32  };
33})(jQuery, Drupal);
34//# sourceMappingURL=faq.js.map

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.