PageSourceSearch

https://sitecrafter.uk/wp-content/uploads/uag-plugin/assets/16000/uag-js-16126.js?ver=1791562181

js sitecrafter.uk collected 2026-10-10 01:22:42 UTC 3,199 bytes, 77 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function(){ 					window.addEventListener( 'DOMContentLoaded', () => {
2						const popupTriggers = document.querySelectorAll( '.spectra-popup-trigger-16126' );
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-013511e9' );
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													theBody.classList.add( 'uagb-popup-builder__body--overflow-hidden' );
27				blockScope.classList.add( 'spectra-popup--open' );
28								blockScope.focus();
29				const focusElement = document.createElement( 'button' );
30				focusElement.style.position = 'absolute';
31				focusElement.style.opacity = '0';
32				const popupFocus = blockScope.insertBefore( focusElement, blockScope.firstChild );
33				popupFocus.focus();
34				popupFocus.remove();
35						blockScope.style.opacity = 1;
36											}, 100 );
37
38											const closePopup = ( event = null ) => {
39				if ( event && blockScope !== event.target ) {
40					return;
41				}
42									blockScope.style.opacity = 0;
43								setTimeout( () => {
44																blockScope.style.display = 'none';
45						blockScope.classList.remove( 'spectra-popup--open' );
46										const allActivePopups = document.querySelectorAll( '.uagb-popup-builder.spectra-popup--open' );
47					if ( 0 === allActivePopups.length ) {
48						theBody.classList.remove( 'uagb-popup-builder__body--overflow-hidden' );
49					}
50				}, 100 );
51			};
52
53								blockScope.addEventListener( 'click', ( event ) => closePopup( event ) );
54										const closeButton = blockScope.querySelector( '.uagb-popup-builder__close' );
55					closeButton.style.cursor = 'pointer';
56					closeButton.addEventListener( 'click', () => closePopup() );
57										document.addEventListener( 'keyup', ( event ) => {
58						if ( 27 === event.keyCode && blockScope.classList.contains( 'spectra-popup--open' ) ) {
59							return closePopup();
60						}
61					} );
62					
63			const closingElements = blockScope.querySelectorAll( '.spectra-popup-close-16126' );
64			for ( let i = 0; i < closingElements.length; i++ ) {
65				closingElements[ i ].style.cursor = 'pointer';
66				closingElements[ i ].addEventListener( 'click', () => closePopup() );
67			}
68									} );
69						}
70					} );
71				window.addEventListener( 'load', function() {
72	UAGBButtonChild.init( '.uagb-block-0f230c65' );
73});
74window.addEventListener( 'load', function() {
75	UAGBButtonChild.init( '.uagb-block-ebd10ad0' );
76});
77 });

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.