<iframe class='campaign_embed' src='//a.pgtb.me/W8v1B1?embed=1&v_offset=0&autoscroll_p=1' seamless='seamless' frameborder='0' width='100%' scrolling='no' allowfullscreen></iframe> <script type='text/javascript'> (function(){ function loadScript(url, scriptId, callback) { if(document.getElementById(scriptId) != null) { return; } var script = document.createElement('script'); script.type = 'text/javascript'; if (script.readyState) { script.onreadystatechange = function() { if (script.readyState === 'loaded' || script.readyState === 'complete') { script.onreadystatechange = null; callback(); } }; } else { script.onload = function() { callback(); }; } var scriptIdAttr = document.createAttribute('id'); scriptIdAttr.value = scriptId; script.setAttributeNode(scriptIdAttr); script.src = url; document.getElementsByTagName('head')[0].appendChild(script); } function loadEmbed(){ var iframes = document.getElementsByClassName('campaign_embed'); for(var i = 0; i < iframes.length; i++) { iFrameResize({ enablePublicMethods: true }, iframes[i]); } } loadScript( '//d2xcq4qphg1ge9.cloudfront.net/javascript/responsive_embed/20150624/iframeResizer.min.js', 'campaignEmbedder', loadEmbed ); })(); </script>