1function sonatypeModal(modalOpen,modalCLose,modalBackground,modalBody){document.querySelectorAll(modalOpen).forEach(popup_button=>{popup_button.addEventListener("click",event=>{console.log("open"),openModal(popup_button.dataset.modalid)})});document.querySelectorAll(modalCLose).forEach(close_button=>{close_button.addEventListener("click",event=>{closeModal(modalBackground)})});document.querySelectorAll(modalBackground).forEach(close_content=>{close_content.addEventListener("click",event=>{check_body=close_content.querySelector(modalBody),check_body&&!check_body.contains(event.target)&&closeModal(modalBackground)})})}function openModal(dataid){let data_qs='[data-modalbgid="'+dataid+'"]';fadeIn(document.querySelector(data_qs),300),document.body.classList.add("modal--open")}function closeModal(modalBG){document.querySelectorAll(modalBG).forEach(close_modal=>{fadeOut(close_modal,300)}),document.body.classList.remove("modal--open")}function fadeIn(element,duration){let opacity=0;element.style.opacity=opacity,element.style.display="block";const increment=1/(duration/10),timer=setInterval(()=>{opacity>=1?clearInterval(timer):(opacity+=increment,element.style.opacity=opacity)},10)}function fadeOut(element,duration){let opacity=1;const opacityDecrement=opacity/(duration/10),fadeEffect=setInterval(()=>{opacity<=0?(clearInterval(fadeEffect),element.style.display="none","function"==typeof callback&&callback()):(opacity-=opacityDecrement,element.style.opacity=opacity)},10)} 2//# sourceURL=https://1958393.fs1.hubspotusercontent-na1.net/hubfs/1958393/hub_generated/template_assets/1/195209730064/1790013588882/template_sonatype-modal.js
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.