Building a Generational Practice with Extended and Long Term Care - Golden - Add to Cart

window.addEventListener(“message”, receiveMessage, false);
function receiveMessage(event){
if (event.origin ==”https://member.retirement-resource-center.com”){
var iFrameID = document.getElementById(‘ampStoreFrame’);
if(iFrameID){
var newHeight = (event.data+50)+’px’;
var baseStyle = ‘background-color: transparent; overflow: auto; width:100%; border:0;’;
var newStyle = baseStyle+’height:’+newHeight+’; min-height: ‘+newHeight+’;’;
iFrameID.setAttribute(‘style’,newStyle);
window.scrollTo(0,0);
}
} else {
return;
}
} // end receiveMessage handler function