Agenda do Portal - Eventos
Image
';if('srcdoc'in iframe){iframe.srcdoc=docHtml;}else{var doc=iframe.contentDocument||(iframe.contentWindow&&iframe.contentWindow.document);if(doc){doc.open();doc.write(docHtml);doc.close();}} iframe.addEventListener('load',function(){resizeIframeToContent(iframe,container,height);});} function resizeIframeToContent(iframe,container,fallbackHeight){var update=function(){try{var doc=iframe.contentDocument||(iframe.contentWindow&&iframe.contentWindow.document);if(!doc){return;} var body=doc.body;if(!body){return;} var innerHeight=Math.max(body.scrollHeight,body.offsetHeight,doc.documentElement?doc.documentElement.scrollHeight:0);if(innerHeight&&!isNaN(innerHeight)){iframe.style.height=innerHeight+'px';if(container&&container.length){var currentMin=parseInt(container.css('min-height'),10)||0;if(innerHeight>currentMin){container.css('min-height',innerHeight+'px');}} return;}}catch(e){} if(fallbackHeight){iframe.style.height=fallbackHeight+'px';}};update();setTimeout(update,200);setTimeout(update,600);} function isAdSense(html){try{var hasAdsby=/adsbygoogle/i.test(html);var hasClient=/data-ad-client=\"ca-.*?\"/i.test(html)||/pagead\/js\/adsbygoogle\.js/i.test(html);return!!(hasAdsby&&hasClient);}catch(e){return false;}} function isDcmTag(html){try{var s=String(html);if(/class=['"]dcmads['"]/i.test(s))return true;if(/dcmads\.js/i.test(s))return true;return false;}catch(e){return false;}} function prepareAdSenseHtml(html,w,h){try{var out=String(html);if(window.adsbygoogle){out=out.replace(/]+pagead\/js\/adsbygoogle\.js[^>]*><\/script>/ig,'');} if(w>0&&h>0){if(!/class=\"adsbygoogle\"[^>]*style=/i.test(out)){out=out.replace(/h){var s=h/ch;wrap.style.transform='scale('+s+')';wrap.style.width=(100/s)+'%';}else{wrap.style.transform='';wrap.style.width='';}}