PageSourceSearch

https://laplandtravel.com/wp-content/plugins/tbx-plugin/blox/newsletter/script.js?ver=1790779798

js laplandtravel.com collected 2026-09-30 16:33:27 UTC 1,582 bytes, 1 lines download raw bytes

1"use strict";tb.onRootElementReady(m=>{m.querySelectorAll(".tb-newsletter").forEach(r=>{var d;const e=r.querySelector(".tb-newsletter__form");if(!(e instanceof HTMLFormElement))return;const c=e.getAttribute("data-recaptcha-key");(d=window.tbFormValidation)==null||d.init(e);const a=e.querySelector(".tb-newsletter__message--success"),i=e.querySelector(".tb-newsletter__message--error");if(!a||!i)return;const o=n=>{const t=e.querySelector(`[name="${n}"]`);return t instanceof HTMLInputElement?t.value:""},u=n=>{if(r.classList.remove("is-submitting"),i.hidden=n,a.hidden=!n,n){const t=e.querySelector(".tb-newsletter__inputs");t&&(t.hidden=!0)}},l=n=>{const t=e.querySelector('[name="consent"]'),p=new URLSearchParams({action:"tb_newsletter_subscribe",name:o("name"),email:o("email"),consent:t instanceof HTMLInputElement&&t.checked?"1":"",nl_website:o("nl_website"),group_id:e.getAttribute("data-group-id")||"",group_sig:e.getAttribute("data-group-sig")||"",grecaptchaResponse:n});fetch(tb.AJAX_URL,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:p.toString()}).then(s=>s.json()).then(s=>u(!!(s.success&&s.data&&s.data.formSuccess))).catch(()=>u(!1))};e.addEventListener("submit",n=>{n.preventDefault(),!r.classList.contains("is-submitting")&&(window.tbFormValidation&&!window.tbFormValidation.validate(e,{touchAll:!0})||(r.classList.add("is-submitting"),a.hidden=!0,i.hidden=!0,c&&typeof grecaptcha!="undefined"&&grecaptcha?grecaptcha.enterprise.ready(async()=>{const t=await grecaptcha.enterprise.execute(c,{action:"LOGIN"});l(t)}):l("")))})})});

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.