1 function copyToClipboard() 2 { 3 const currentUrl = window.location.href; 4 navigator.clipboard.writeText(currentUrl) 5 .then(() => 6 { 7 const urlButton = document.querySelector('.social-share-button.url'); 8 const checkmark = urlButton.querySelector('.checkmark'); 9 const linkicon = urlButton.querySelector('.linkicon'); 10 checkmark.style.display = 'block'; 11 linkicon.style.display = 'none'; 12 setTimeout(() => 13 { 14 checkmark.style.display = 'none'; 15 linkicon.style.display = 'block'; 16 }, 2000); // Hide the checkmark after 2 seconds 17 }) 18 .catch(err => 19 { 20 console.error('Failed to copy: ', err); 21 }); 22 }
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.