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