1document.getElementById('shareBtn').addEventListener('click', async () => { 2 if (navigator.share) { 3 try { 4 await navigator.share({ 5 title: document.title, // Title of the shared content 6 text: 'Check out this awesome content!', // Text to be shared 7 url: window.location.href // URL to be shared 8 }); 9 console.log('Content shared successfully'); 10 } catch (error) { 11 console.error('Error sharing:', error); 12 } 13 } else { 14 alert('Web Share API not supported in your browser.'); 15 } 16});
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.