Newsletter Smile

SMILE NEWSLETTER

Sign up and find out all about our promotions, discounts and news

(function() { var id = ‘smIframe-qwc35erwt1an60qz’; var PREFIX_OUTGOING = ‘SM_RESIZE_IFRAME:’ + id; var PREFIX_INCOMING = ‘SM_IFRAME_HEIGHT:’ + id + ‘:’; var iframe; var findIframe = function() { if (iframe) { return iframe; } iframe = document.getElementById(id); return iframe; }; window.addEventListener(‘resize’, function() { findIframe() && iframe.contentWindow.postMessage(PREFIX_OUTGOING, ‘*’); }); window.addEventListener(‘message’, function(event) { var messageData = event.data; try { if (messageData.indexOf(PREFIX_INCOMING) !== 0) { return; } findIframe() && (iframe.style.height = parseInt(messageData.replace(PREFIX_INCOMING, ”)) + ‘px’); } catch (e) {} }); }());