https://waterburybasilicaparish.org/wp-content/themes/alphonsus/assets/js/lightbox.js?ver=1790698204
1jQuery(function ($) { 2 document.addEventListener("click", function (e) { 3 if ( 4 e.target.matches( 5 ".ministry-slider[data-has-lightbox='true'] .ministry-wrapper.slick-active" 6 ) 7 ) { 8 document.querySelector(".lightbox").classList.add("open"); 9 document.querySelector(".lightbox-overlay").style.display = "block"; 10 11 $("html, body").toggleClass("no-scroll"); 12 let title = e.target.dataset.title; 13 let excerpt = e.target.dataset.excerpt; 14 let contact = e.target.dataset.contact; 15 let image = e.target.dataset.image; 16 let link = e.target.dataset.link; 17 18 $("input[type=checkbox]").prop("checked", false); 19 let clicked = document.querySelector( 20 "form input[type='checkbox'][value='${title}']" 21 ); 22 23 if (clicked !== null) { 24 clicked.checked = true; 25 } 26 27 let lbTitle = document 28 .querySelector(".lightbox") 29 .querySelector(".lightbox-title"); 30 31 let lbExcerpt = document 32 .querySelector(".lightbox") 33 .querySelector(".lightbox-excerpt"); 34 35 let lbContactPersons = document 36 .querySelector(".lightbox") 37 .querySelector(".lightbox-contact-persons"); 38 39 let lbImage = document 40 .querySelector(".lightbox") 41 .querySelector(".lightbox-image"); 42 43 let lbLink = document 44 .querySelector(".lightbox") 45 .querySelector(".lightbox-link"); 46 47 if (lbTitle) { 48 lbTitle.innerHTML = title; 49 } 50 51 if (lbExcerpt) { 52 lbExcerpt.innerHTML = excerpt; 53 } 54 55 if (lbContactPersons) { 56 lbContactPersons.innerHTML = contact; 57 } 58 59 if (lbImage) { 60 lbImage.style.backgroundImage = "url(" + image + ")"; 61 } 62 63 if (lbLink) { 64 lbLink.innerHTML = 65 "<a class='read-more-link has-underline-hover has-primary-color-after' href=" + 66 link + 67 " title='read more'>Learn more ></a>"; 68 } 69 70 return; 71 } 72 if ( 73 e.target.matches(".lightbox-overlay") || 74 e.target.matches(".lightbox-close") 75 ) { 76 $(".lightbox").removeClass("open"); 77 $("html, body").toggleClass("no-scroll"); 78 document.querySelector(".lightbox-overlay").style.display = "none"; 79 80 return; 81 } 82 }); 83 var checked; 84 85 jQuery(document).on("gform_post_render", function () { 86 if (checked !== undefined) { 87 checked.each(function () { 88 let id = $(this).attr("id"); 89 document.querySelector( 90 "form input[type='checkbox'][id='" + id + "']" 91 ).checked = true; 92 }); 93 } 94 95 $("form li.ministry-group").on("click", function () { 96 if ($(this).hasClass("active")) return; 97 98 $("form .ministry-group.active").removeClass("active"); 99 $("form .ministry-list.active").slideUp(400, function () { 100 $(this).removeClass("active"); 101 }); 102 $(this).addClass("active"); 103 let id = $(this).attr("data-ministry-list-id"); 104 $("#ministry-list-" + id) 105 .addClass("active") 106 .slideDown(); 107 }); 108 109 $("form").on("submit", function () { 110 checked = $(this).find( 111 ".ministry-group-list input[type=checkbox]:checked" 112 ); 113 }); 114 }); 115});
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.