An error has occurred

{{terminalError}}

close-24px
Game-changing ideas and must-read stories for the modern workplace. Delivered to your inbox every weekday morning.
Read your First Look newsletter.
You're all set.
You'll receive your First Look newsletter morning.
let regexEmail = /^([a-zA-Z0-9_\-\+.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; let emailValid; function checkForm(e) { console.log(e) debugger; } function validateForm() { let activateButton = document.getElementById('submit'); if (emailValid == true){ activateButton.removeAttribute('disabled'); } else { activateButton.setAttribute('disabled', 'disabled'); } } function validateEmail() { let email = document.getElementById('email'); if (!regexEmail.test(email.value)) { emailValid = false; } else { emailValid = true; } validateForm(); } document.getElementById("submit").addEventListener("click", function() { var initial, confirmation; initial = document.getElementById('initial'); confirmation = document.getElementById('confirmation'); initial.classList.add('hide'); confirmation.classList.remove('hide'); }); // Post message to parent window when form loads var _form = document.querySelector('.modal_optin'); if (_form) { window.parent.postMessage('modal_optin', '*'); } var d = new Date(); var days = ["tomorrow","tomorrow","tomorrow","tomorrow","tomorrow","Monday","Monday"]; document.getElementById("day").innerHTML = days[d.getDay()];