1// (function( $ ) { 2// 'use strict'; 3 4// // console.log('asdf'); 5 6// })( jQuery ); 7 8(function( $ ) { 9 'use strict'; 10 11 // Copy Link Button 12 $(document).on('click', '.frhd__copy-link-btn', function(e) { 13 e.preventDefault(); 14 e.stopPropagation(); 15 var btn = $(this); 16 var url = btn.attr('data-url'); 17 var tooltip = btn.find('.frhd__copy-tooltip'); 18 19 if (!url) return; 20 21 // Method 1: Modern Clipboard API (HTTPS only) 22 if (navigator.clipboard && window.isSecureContext) { 23 navigator.clipboard.writeText(url).then(function() { 24 btn.addClass('copied'); 25 tooltip.text('Copied!'); 26 setTimeout(function() { 27 btn.removeClass('copied'); 28 tooltip.text('Copy Link'); 29 }, 2000); 30 }); 31 } else { 32 // Method 2: Fallback for HTTP (Flywheel Local) 33 var textArea = document.createElement('textarea'); 34 textArea.value = url; 35 textArea.style.position = 'fixed'; 36 textArea.style.left = '-9999px'; 37 textArea.style.top = '-9999px'; 38 document.body.appendChild(textArea); 39 textArea.focus(); 40 textArea.select(); 41 42 try { 43 document.execCommand('copy'); 44 btn.addClass('copied'); 45 tooltip.text('Copied!'); 46 setTimeout(function() { 47 btn.removeClass('copied'); 48 tooltip.text('Copy Link'); 49 }, 2000); 50 } catch (err) { 51 tooltip.text('Failed!'); 52 setTimeout(function() { 53 tooltip.text('Copy Link'); 54 }, 2000); 55 } 56 57 document.body.removeChild(textArea); 58 } 59 }); 60 61})( jQuery );
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.