PageSourceSearch

https://birthpsychology.com/wp-content/plugins/ultimate-addons-for…/assets/js/uagb-button-child.js?ver=2.20.3

js birthpsychology.com collected 2026-09-24 19:12:42 UTC 667 bytes, 25 lines download raw bytes

1UAGBButtonChild = {
2	init( $selector ) {
3		const block = document.querySelector( $selector );
4		if ( ! block ) {
5			return;
6		}
7
8		block.addEventListener( 'focusin', () => {
9			document.addEventListener( 'keydown', this.handleKeyDown );
10		} );
11
12		block.addEventListener( 'focusout', () => {
13			document.removeEventListener( 'keydown', this.handleKeyDown );
14		} );
15	},
16	handleKeyDown( e ) {
17		if ( e.key === ' ' || e.key === 'Spacebar' ) {
18			// Checks if the target is an <a> tag with the  uagb specific class
19			if ( e.target.tagName === 'A' && e.target.classList.contains( 'uagb-buttons-repeater' ) ) {
20				e.preventDefault();
21				e.target.click();
22			}
23		}
24	},
25};

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.