var script = document.createElement('script')
script.src = 'https://slate.com/piano/scripts/resize.js'
document.head.appendChild(script)
Special Offer: Save $25!
var link = document.querySelector(".slate-link");
link.addEventListener("click", function(e) {
// let the parent window handle the redirect so we can reliably add the correct redirect uri param
e.preventDefault();
const clickMessage = {
type: "redirect",
slate: true,
path: "/plus?utm_medium=link&utm_campaign=plus&utm_content=nav_bar&utm_source=nav"
}
window.parent.postMessage(clickMessage, "*");
})