An error has occurred

{{terminalError}}

var scriptPath = "https://static.advance.net/static/common/js/piano-frame.js"; var script = document.createElement("script"); script.onload = function(e) { function runPiano() { var config = { type: 'interceptblocker', version: 'cta', placement: 'in-article', newsletterId: '', closable: 'false' }; window.Advance.piano.build(config); } window.Advance.piano.start(runPiano); } script.type = "text/javascript"; script.async = true; script.src = scriptPath; document.head.appendChild(script);

Already a subscriber?

Please sign in to access your account.

var emailInput = document.getElementById('emailwall-input'); var initial = true; window.addEventListener("message", function (e) { // We verify that the error message is coming from Piano, so it must be what we're looking for. if (typeof e.data.piano !== 'undefined') { // Get the object with the result. var result = e.data.piano; // We know how this object should be structured, so we're checking for the "success" field. // We're expecting it to be false, so we can show an error message. if (result.object.type === 'newsletter') { var inputLabel = document.getElementById('newsletterEmail-label'); var form = document.getElementsByClassName('intercept-blocker__main-content--newsletter')[0]; var mainHeadline = document.getElementsByClassName('intercept-blocker__main-headline')[0]; var mainTagline = document.getElementsByClassName('intercept-blocker__main-tagline')[0]; if (result.success) { // Show success message mainHeadline.textContent = "Thank you for providing your email."; mainTagline.textContent = ""; // Hide form field, button, and any error messages form.style.display = 'none'; } else { // Show error message inputLabel.textContent = result.message; inputLabel.setAttribute('class', 'intercept-blocker__form-label'); } } // Check to see that it is an error for the email wall if (result.object.type === 'emailwall') { var errorMessage = document.getElementById('emailwall-label'); // Show error message if (!result.object.email) { errorMessage.textContent = result.message; errorMessage.setAttribute('class', 'intercept-blocker__form-label'); initial = false; } } } return; }, false); if (emailInput) { emailInput.addEventListener('input', function(e) { var errorMessage = document.getElementById('emailwall-label'); if (!initial) { var regex = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/; if (e.target.value && e.target.value.match(regex) ) { errorMessage.setAttribute('class', 'intercept-blocker__form-label intercept-blocker__form-label--hidden'); } else { errorMessage.setAttribute('class', 'intercept-blocker__form-label'); } } }, false); }