1document.addEventListener("DOMContentLoaded", function(){ window.addEventListener( 'DOMContentLoaded', () => { 2 const blockScope = document.querySelector( '.uagb-block-7db3ae62' ); 3 if ( ! blockScope ) { 4 return; 5 } 6 7 const anchorElement = blockScope.querySelector('a'); 8 if (!anchorElement) { 9 return; 10 } 11 12 13 blockScope.addEventListener('keydown', (event) => { 14 if ( 13 === event.keyCode || 32 === event.keyCode ) { 15 event.preventDefault(); 16 17 anchorElement.click(); 18 } 19 } ); 20 } ); 21 var ssLinksParent = document.querySelector( '.uagb-block-3ec9c42b' ); 22ssLinksParent?.addEventListener( 'keyup', function ( e ) { 23var link = e.target.closest( '.uagb-ss__link' ); 24if ( link && e.keyCode === 13 ) { 25 handleSocialLinkClick( link ); 26} 27}); 28 29ssLinksParent?.addEventListener( 'click', function ( e ) { 30var link = e.target.closest( '.uagb-ss__link' ); 31if ( link ) { 32 handleSocialLinkClick( link ); 33} 34}); 35 36function handleSocialLinkClick( link ) { 37var social_url = link.dataset.href; 38var target = ""; 39if ( social_url == "mailto:?body=" ) { 40 target = "_self"; 41} 42var request_url = ""; 43if ( social_url.indexOf("/pin/create/link/?url=") !== -1 ) { 44 request_url = social_url + encodeURIComponent( window.location.href ) + "&media=" + ''; 45} else { 46 request_url = social_url + encodeURIComponent( window.location.href ); 47} 48window.open( request_url, target ); 49} 50 });
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.