PageSourceSearch

https://reformedworship.org/themes/custom/reformed_worship/js/submitBugReport.js?v=1.x

js reformedworship.org collected 2026-10-02 07:59:43 UTC 847 bytes, 28 lines download raw bytes

1(function ($, Drupal) {
2    Drupal.behaviors.bugReport = {
3      attach: function (context, settings) {
4        once('bug-report', '#bug-report-container', context).forEach(function (element) {
5          const $modal = $('#bug-report-modal');
6          const $trigger = $('#bug-report-trigger');
7          const $cancel = $('#bug-report-cancel');
8
9          // Open modal
10          $trigger.on('click', function() {
11            $modal.removeClass('hidden');
12          });
13
14          // Close modal
15          $cancel.on('click', function() {
16            $modal.addClass('hidden');
17          });
18
19          // Close on outside click
20          $(document).on('click', function(event) {
21            if ($(event.target).is($modal)) {
22              $modal.addClass('hidden');
23            }
24          });
25        });
26      }
27    };
28  })(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.