PageSourceSearch

https://www.docebo.com/build/blocks/modal/view.js?ver=64722a56834365baf970

js docebo.com collected 2026-09-24 08:30:04 UTC 2,450 bytes, 1 lines download raw bytes

1(()=>{function e(e){const t=e.querySelector(".modal-trigger");if(t?.closest(".is-placeholder"))return;const o=e.querySelector(".modal-content");if(!t||!o)return;if(t.hasAttribute("data-modal-initialized"))return;t.setAttribute("data-modal-initialized","true");const n=o.querySelector(".modal-close"),s=!!e.closest(".video-testimonial_columns"),i=e.classList.contains("post-link");let c=null,a=null;const l=new Map;let d=!0;function r(){o.classList.remove("is-open"),document.body.style.overflow="",o.querySelectorAll("iframe").forEach(e=>{e.src=""}),o.querySelectorAll("video, audio").forEach(e=>{e.pause()}),c&&c.focus(),o.removeEventListener("keydown",u),document.removeEventListener("focusin",f),setTimeout(()=>{o.classList.contains("is-open")||(o.style.display="none")},300)}function u(e){if("Tab"!==e.key)return;const t=Array.from(o.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, iframe, [tabindex]:not([tabindex="-1"])')),n=t[0],s=t[t.length-1];a=document.activeElement,e.shiftKey&&document.activeElement===n?(e.preventDefault(),s.focus()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),n.focus())}function f(e){o.classList.contains("is-open")&&(o.contains(e.target)?a=e.target:(e.preventDefault(),e.stopPropagation(),a&&o.contains(a)?a.focus():n&&n.focus()))}s&&o.classList.add("is-video-testimonial-modal"),i&&o.classList.add("is-post-link-modal"),(s||i)&&o.parentNode!==document.body&&document.body.appendChild(o),t.addEventListener("click",e=>{e.preventDefault(),function(){c=document.activeElement,o.classList.add("is-open"),o.style.display="flex",document.body.style.overflow="hidden";const e=o.querySelectorAll("iframe");d?(e.forEach(e=>{e.src&&l.set(e,e.src)}),d=!1):e.forEach(e=>{l.has(e)&&(e.src=l.get(e))}),n&&n.focus(),o.addEventListener("keydown",u),document.addEventListener("focusin",f)}()}),n&&n.addEventListener("click",r),o.addEventListener("click",e=>{e.target.closest("iframe, video, audio")||r()}),document.addEventListener("keydown",e=>{"Escape"===e.key&&o.classList.contains("is-open")&&r()})}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".phoenix-modal").forEach(e),new MutationObserver(t=>{t.forEach(t=>{"childList"===t.type&&t.addedNodes.forEach(t=>{if(1===t.nodeType){t.classList?.contains("phoenix-modal")&&e(t);const o=t.querySelectorAll?.(".phoenix-modal");o&&o.forEach(e)}})})}).observe(document.body,{childList:!0,subtree:!0})})})();

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.