1(function (window, document) { 2 'use strict'; 3 4 function prefillNewsletterEmail() { 5 var emailField = document.getElementById('EMAIL'); 6 7 if (!emailField || !window.URLSearchParams) { 8 return; 9 } 10 11 var email = new window.URLSearchParams(window.location.search).get('email'); 12 13 if (!email) { 14 return; 15 } 16 17 email = email.trim(); 18 19 if (!email) { 20 return; 21 } 22 23 emailField.value = email; 24 emailField.dispatchEvent(new window.Event('input', {bubbles: true})); 25 emailField.dispatchEvent(new window.Event('change', {bubbles: true})); 26 } 27 28 if (document.readyState === 'loading') { 29 document.addEventListener('DOMContentLoaded', function () { 30 window.setTimeout(prefillNewsletterEmail, 0); 31 }); 32 } else { 33 window.setTimeout(prefillNewsletterEmail, 0); 34 } 35}(window, document));
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.