PageSourceSearch

https://www.thrillark.com/blog/wp-content/plugins/thrillark-custom/includes/js/copy-promo-code.js?ver=1.0.0

js thrillark.com collected 2026-09-24 12:02:08 UTC 509 bytes, 14 lines download raw bytes

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.