1const sharePinButtons = document.getElementsByClassName( 'share-pin button' ); 2 3Array.from( sharePinButtons ).forEach( ( sharePinButton ) => { 4 sharePinButton.addEventListener( 'click', ( e ) => { 5 e.preventDefault(); 6 7 const pinLink = e.target.closest( '.share-pin' ); 8 const href = pinLink?.dataset?.href; 9 10 if ( ! href ) { 11 return; 12 } 13 14 try { 15 window.open( 16 href, 17 'targetWindow', 18 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500' 19 ); 20 } catch ( error ) { 21 window.location.href = href; 22 } 23 } ); 24} );
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.