PageSourceSearch

https://www.brownells.com/dist/Brownells/js/components/register-ne…-qMIVZzmRdncCMcWycjTUQyHl3nQa_TE20gTJVCKl0w

js brownells.com collected 2026-09-24 09:17:36 UTC 1,403 bytes, 1 lines download raw bytes

1function registerNewsletter(){var s=document.querySelector(".footer-wrapper__subscribe__form__msg"),i=document.querySelector(".footer-wrapper__subscribe__info__title"),o=document.querySelector("#emailSubscribe"),r=document.getElementById("emailSubscribe"),n=document.getElementById("btnSubmitSubscribe");n&&(n.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=r.value.trim();n.setAttribute("disabled",""),BN.AuthService.subscribeNewsletter({email:t}).then(function(e){var r;n.removeAttribute("disabled"),e.error?(o.classList.add("input-email-error"),s.classList.remove("msg-success"),s.classList.add("msg-error"),s.classList.add("blinking-error"),BN.pushDataLayer(null,null,{event:"form_error",formid:null==i?void 0:i.innerText,formfield:"Email",errorType:t?"invalid":"mandatory",errorMessage:e.message}),0<(r=document.querySelectorAll(".input-email-error")).length&&((r=r[0]).scrollIntoView({behavior:"smooth"}),r.focus())):(s.classList.remove("msg-error"),s.classList.remove("blinking-error"),s.classList.add("msg-success"),BN.pushDataLayer(null,null,{event:"newsletter_subscribe_click",hashedEmail:e.hashedEmail})),s.innerText=e.message}).catch(function(e){n.removeAttribute("disabled"),console.error(e.statusText)})}),r.addEventListener("input",function(e){s.innerText="",o.classList.remove("input-email-error")}))}BN.domContentLoadedFncList.push(registerNewsletter);

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.