1function copyPromoCode() { 2 const promoCodeElement = document.querySelector('.promocode'); 3 const promoCodeText = promoCodeElement ? promoCodeElement.textContent.trim() : ''; 4 5 if (promoCodeText) { 6 navigator.clipboard.writeText(promoCodeText).then(() => { 7 alert('Promo code copied: ' + promoCodeText); 8 }).catch((err) => { 9 console.error('Failed to copy promo code: ', err); 10 }); 11 } else { 12 alert('Promo code not found.'); 13 } 14}
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.