1document.addEventListener("DOMContentLoaded", function(){ window.addEventListener( 'DOMContentLoaded', () => { 2 const popupTriggers = document.querySelectorAll( '.spectra-popup-trigger-11999' ); 3 for ( let i = 0; i < popupTriggers.length; i++ ) { 4 popupTriggers[ i ].style.cursor = 'pointer'; 5 popupTriggers[ i ].addEventListener( 'click', () => { 6 const blockScope = document.querySelector( '.uagb-block-acafe8b6' ); 7 if ( ! blockScope ) { 8 return; 9 } 10 const deviceWidth = ( window.innerWidth > 0 ) ? window.innerWidth : screen.width; 11 if ( blockScope.classList.contains( 'uag-hide-desktop' ) && deviceWidth > 1024 ) { 12 blockScope.remove(); 13 return; 14 } else if ( blockScope.classList.contains( 'uag-hide-tab' ) && ( deviceWidth <= 1024 && deviceWidth > 768 ) ) { 15 blockScope.remove(); 16 return; 17 } else if ( blockScope.classList.contains( 'uag-hide-mob' ) && deviceWidth <= 768 ) { 18 blockScope.remove(); 19 return; 20 } 21 22 const theBody = document.querySelector( 'body' ); 23 24 blockScope.style.display = 'flex'; 25 setTimeout( () => { 26 blockScope.style.opacity = 1; 27 }, 100 ); 28 29 const closePopup = ( event = null ) => { 30 if ( event && blockScope !== event.target ) { 31 return; 32 } 33 blockScope.style.opacity = 0; 34 setTimeout( () => { 35 blockScope.style.display = 'none'; 36 blockScope.classList.remove( 'spectra-popup--open' ); 37 const allActivePopups = document.querySelectorAll( '.uagb-popup-builder.spectra-popup--open' ); 38 if ( 0 === allActivePopups.length ) { 39 theBody.classList.remove( 'uagb-popup-builder__body--overflow-hidden' ); 40 } 41 }, 100 ); 42 }; 43 44 blockScope.addEventListener( 'click', ( event ) => closePopup( event ) ); 45 const closeButton = blockScope.querySelector( '.uagb-popup-builder__close' ); 46 closeButton.style.cursor = 'pointer'; 47 closeButton.addEventListener( 'click', () => closePopup() ); 48 49 const closingElements = blockScope.querySelectorAll( '.spectra-popup-close-11999' ); 50 for ( let i = 0; i < closingElements.length; i++ ) { 51 closingElements[ i ].style.cursor = 'pointer'; 52 closingElements[ i ].addEventListener( 'click', () => closePopup() ); 53 } 54 } ); 55 } 56 } ); 57 window.addEventListener( 'load', function() { 58 UAGBButtonChild.init( '.uagb-block-0f230c65' ); 59}); 60window.addEventListener( 'load', function() { 61 UAGBButtonChild.init( '.uagb-block-ebd10ad0' ); 62}); 63 });
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.