1!function (e) { 2 e(document).ready(function () { 3 var t = document.querySelector(".hero__play-btn"), 4 n = document.querySelectorAll('.fc[data-media-type="video"] .fc__link, .fc[data-media-type="video"] .fc__image a[data-toggle="modal"], .fc[data-media-type="video"] .fc__title a[data-toggle="modal"]'), 5 r = (document.querySelector("#videomodal:not(.fc-modal)"), document.querySelector("#videomodal.fc-modal"), Array.from(document.querySelectorAll("*")).filter(function (e) { 6 return Array.from(e.classList).some(function (e) { 7 return e.startsWith("videomodal-"); 8 }); 9 })), 10 a = ["src", "data-src", "data-lazy-src"]; 11 function o(e) { 12 e.style.display = "block", e.classList.add("in"), e.style.backgroundColor = "rgba(0,0,0,.5)"; 13 var t = new Event("show.bs.modal"); 14 e.dispatchEvent(t); 15 } 16 r.forEach(function (t) { 17 var n = t.querySelector("iframe"); 18 if (null !== n) { 19 var r = null, 20 o = null; 21 a.some(function (e) { 22 var t = n.getAttribute(e); 23 return t && (r = e, o = t), null !== r; 24 }), null !== o && (null !== o.match(/youtube\.com/) && (o = o.replace("feature=oembed", "feature=oembed&enablejsapi=1&origin=" + window.location.origin)), t.addEventListener("show.bs.modal", function () { 25 n.setAttribute(r, o + "&autoplay=1"), "src" !== r && n.setAttribute("src", o + "&autoplay=1"); 26 }), t.addEventListener("hidden.bs.modal", function () { 27 e(n).attr(r, null), "src" !== r && e(n).attr("src", null); 28 }), t.addEventListener("click", function (e) { 29 null === e.currentTarget || "block" !== e.currentTarget.style.display || e.target.closest("iframe") || e.currentTarget.querySelector(".videoWrapper").contains(e.target) || function (e) { 30 var t = new Event("hidden.bs.modal"); 31 e.dispatchEvent(t), e.style.display = "none", e.classList.remove("in"), e.style.backgroundColor = ""; 32 }(e.currentTarget); 33 })); 34 } 35 }), null !== t && t.addEventListener("click", function (t) { 36 o(e(t.currentTarget).parents("section")[0].nextElementSibling); 37 }), null !== n && n.forEach(function (t) { 38 t.addEventListener("click", function (t) { 39 t.preventDefault(), o(e(t.currentTarget).parents("section")[0].nextElementSibling); 40 }); 41 }); 42 }); 43}(jQuery); 44//# sourceMappingURL=video-modal.min.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.