PageSourceSearch

https://www.cityoffarrell.com/wp-content/uploads/uag-plugin/assets/1000/uag-js-1296.js?ver=1790089739

js cityoffarrell.com collected 2026-09-25 00:54:42 UTC 3,112 bytes, 84 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function(){ 	window.addEventListener( 'DOMContentLoaded', function() {
2		const blockScope = document.querySelector( '.uagb-block-abc4e5f5' );
3		if ( ! blockScope ) {
4			return;
5		}
6		const deviceWidth = ( window.innerWidth > 0 ) ? window.innerWidth : screen.width;
7		if ( blockScope.classList.contains( 'uag-hide-desktop' ) && deviceWidth > 1024 ) {
8			blockScope.remove();
9			return;
10		} else if ( blockScope.classList.contains( 'uag-hide-tab' ) && ( deviceWidth <= 1024 && deviceWidth > 768 ) ) {
11			blockScope.remove();
12			return;
13		} else if ( blockScope.classList.contains( 'uag-hide-mob' ) && deviceWidth <= 768 ) {
14			blockScope.remove();
15			return;
16		}
17
18				let popupSesh = JSON.parse( localStorage.getItem( 'spectraPopup1296' ) );
19		const repetition = 1;
20		if ( null === popupSesh || repetition !== popupSesh[1] ) {
21					
22			const repetitionArray = [
23				repetition,
24				repetition,
25			];
26			localStorage.setItem( 'spectraPopup1296', JSON.stringify( repetitionArray ) );
27			popupSesh = JSON.parse( localStorage.getItem( 'spectraPopup1296' ) );
28		}
29
30		if ( 0 === popupSesh[0] ) {
31			blockScope.remove();
32			return;
33		}
34
35		const theBody = document.querySelector( 'body' );
36		blockScope.style.display = 'flex';
37		setTimeout( () => {
38									theBody.classList.add( 'uagb-popup-builder__body--overflow-hidden' );
39						blockScope.classList.add( 'spectra-popup--open' );
40												const focusElement = document.createElement( 'button' );
41						focusElement.style.position = 'absolute';
42						focusElement.style.opacity = '0';
43						const popupFocus = blockScope.insertBefore( focusElement, blockScope.firstChild );
44						popupFocus.focus();
45						popupFocus.remove();
46										blockScope.style.opacity = 1;
47						}, 100 );
48
49		
50		const closePopup = ( event = null ) => {
51			if ( event && blockScope !== event?.target ) {
52				return;
53			}
54			if ( popupSesh[0] > 0 ) {
55				popupSesh[0] -= 1;
56				localStorage.setItem( 'spectraPopup1296', JSON.stringify( popupSesh ) );
57			}
58							blockScope.style.opacity = 0;
59						setTimeout( () => {
60								blockScope.remove();
61				const allActivePopups = document.querySelectorAll( '.uagb-popup-builder.spectra-popup--open' );
62				if ( 0 === allActivePopups.length ) {
63					theBody.classList.remove( 'uagb-popup-builder__body--overflow-hidden' );
64				}
65			}, 100 );
66		};
67
68						blockScope.addEventListener( 'click', ( event ) => closePopup( event ) );
69								const closeButton = blockScope.querySelector( '.uagb-popup-builder__close' );
70				closeButton.style.cursor = 'pointer';
71				closeButton.addEventListener( 'click', () => closePopup() );
72								document.addEventListener( 'keyup', ( event ) => {
73					if ( 27 === event.keyCode && blockScope.classList.contains( 'spectra-popup--open' ) ) {
74						return closePopup();
75					}
76				} );
77				
78		const closingElements = blockScope.querySelectorAll( '.spectra-popup-close-1296' );
79		for ( let i = 0; i < closingElements.length; i++ ) {
80			closingElements[ i ].style.cursor = 'pointer';
81			closingElements[ i ].addEventListener( 'click', () => closePopup() );
82		}
83	} );
84 });

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.