PageSourceSearch

https://diocese-sacramento.org/themes/faithclassy/js/warning.js?tm9xjs

js diocese-sacramento.org collected 2026-10-02 10:36:52 UTC 1,189 bytes, 39 lines download raw bytes

1(function ($) {
2  "use strict";
3
4  $(document).ready(function () {
5    var link = $("a.popup-warning");
6    var popup = $("div.popup-warning");
7
8    // Hide popup content, at first.
9    popup.css("display", "none");
10
11    // Stick a button in the body.
12    var button = $('<button class="popup-redirect">Continue...</button>');
13    $(popup).find(".field--name-body").append(button);
14
15    // Show popup when link marked with warning is clicked.
16    link.click(function(e) {
17      e.preventDefault();
18      popup.css("display", "block");
19      $("a.popup-warning").colorbox({inline: true, width: "50%", close: "Cancel/close"});
20      $(popup).data('original_href', $(this).attr('href'));
21      $(this).attr('href', '#block-popupwarning');
22    });
23
24    // Redirect only after popup displays.
25     button.click(function(e) {
26      window.location = $(popup).data('original_href');
27    });
28  });
29
30  // Re-hide the popup content after closing the lightbox.
31  $(document).bind('cbox_cleanup', function () {
32    $("div.popup-warning").css("display", "none");
33  });
34
35  // Prevent links marked with warning from default behavior.
36  function preventDefault(e) {
37    e.preventDefault();
38  }
39})(jQuery);

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.