An error has occurred
{{terminalError}}
Sign Up for Our Cheat Sheet Newsletter
It's a free, speedy summary of the day’s must-read headlines.
By clicking "Subscribe" you agree to
Terms of Use
and
Privacy Policy
.
var submitButton = document.getElementById("pn-template__submit"); var closeButton = document.querySelector(".PartialCheckoutCTA__x-button"); var containerSelector = document.querySelector("#mobile_small_interstitial"); window.addEventListener('message', function(e) { if (typeof e.data.piano != 'undefined') { var result = e.data.piano; if (!result.success) { document.querySelector('#error-message-wrapper').style.display = "block"; document.querySelector('#error-message').innerText = result.message; document.querySelector('.pn-template__email').classList.add('error'); } else { document.querySelector('#error-message').display = "block"; document.querySelector('.subHeadline').style.display = "none"; document.querySelector('.subHeadline-2').style.display = "none"; document.querySelector('.pn-template__input-container').remove(); var thanksClass = document.createElement('div'); thanksClass.className = 'pn-template__thanks'; document.querySelector('.lockedContent').append(thanksClass); var thanksSpan = document.createElement('span'); thanksSpan.innerHTML = 'Thank You '; thanksSpan.className = 'pn-template__red'; var subscribingSpan = document.createElement('span'); subscribingSpan.innerHTML = 'for Subscribing!'; var thanksWrapper = document.createElement('div'); thanksClass.append(thanksWrapper); thanksWrapper.append(thanksSpan, subscribingSpan); } } return; }, false);