Últimas notícias
Anuncie no Portal A.com! Saiba mais
Com mais de 20 anos de história, o Portal de Notícias A.Seja pelo nosso site da A ou nas redes sociais: Instagram, Facebook, Twitter e Youtube.
por Redação
var adtags = adtags || {}; adtags.adunits = adtags.adunits || []; adtags.cmd = adtags.cmd || []; var adInline = adInline || {}; adInline.adunits = adInline.adunits || []; adInline.cmd = adInline.cmd || []; adtags.adunits.push({ name: 'a_billboard_ATF', divname: 'div-gpt-ad-1234567890123-0', size: [[970,250],[970,90],[728,90],[336,280],[320,50],[300,250],[300,50],[250,250],[240,200],[200,200]], maxWidth: 970, maxHeight: 250, mobileMaxWidth: 970, mobileMaxHeight: 250, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([970, 0], [[970,250],[970,90],[728,90],[300,250]]). addSize([320, 0], [[336,280],[300,250],[250,250],[240,200],[200,200]]). build(); return ret; } , events: { beforeShow: function(e, adunit){ if (adtags.isMobile() == false) { $('.ads-billboard').addClass('sticky'); var adslot = $('.ads-billboard'); adunit.maxWidth = 728 + 172; $('#'+e.slot.getSlotId().getDomId()).append(''); setTimeout(function() { closeAd(); }, 12000); } } } }); adtags.adunits.push({ name: 'a_rectangle_modal', divname: 'div-gpt-ad-1234567890123-1', size: [[320,50],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200],[180,150]], maxWidth: 640, maxHeight: 480, mobileMaxWidth: 640, mobileMaxHeight: 480, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([768, 0], [[640,480]]). addSize([320, 0], [[300,250]]). build(); return ret; } , events: { beforeShow: function(e, adunit){ $('#'+e.slot.getSlotId().getDomId()).append('') $('#modal').show(); } , view: function(e){ setTimeout(function() { $('#modal').hide(); }, 30000); } , timeframe: -1 } }); adtags.adunits.push({ name: 'a_billboard_bottom', divname: 'div-gpt-ad-1234567890123-2', size: [[970,250],[970,90],[728,90],[336,280],[320,50],[300,250],[300,50],[250,250],[240,200],[200,200]], maxWidth: 970, maxHeight: 250, mobileMaxWidth: 970, mobileMaxHeight: 250, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([970, 0], [[970,250],[970,90],[728,90],[300,250]]). addSize([320, 0], [[336,280],[300,250],[250,250],[240,200],[200,200]]). build(); return ret; } }); adtags.adunits.push({ name: 'a_leaderboard_FB', divname: 'div-gpt-ad-1234567890123-3', size: [[970,90],[728,90],[300,100],[320,50],[300,50]], maxWidth: 970, maxHeight: 90, mobileMaxWidth: 970, mobileMaxHeight: 90, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([970, 0], [[970,90],[728,90],[300,100]]). addSize([320, 0], [[320,50],[300,100],[300,50]]). build(); return ret; } ,delay:15 , events: { beforeShow: function(e, adunit){ if (adtags.isMobile() == false) adunit.maxWidth = 970 + 172; $('body').css('margin-bottom', '130px'); $('#'+e.slot.getSlotId().getDomId()).append(''); setTimeout(function() { if (adtags.isMobile() == false) $('.fixer-footer .ad-unit').width(e.size[0] + 20); $('.fixer-footer').show(); $('.fixer-footer').css('margin', '0 calc(50% - ' + ((e.size[0]+30)/2) + 'px)'); $('.fixer-footer').css('width', (30 + e.size[0]) + 'px'); }, 1000); } } }); adtags.adunits.push({ name: 'a_half_page', divname: 'div-gpt-ad-1234567890123-4', size: [[300,600],[120,600],[160,600],[320,50],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200]], maxWidth: 300, maxHeight: 600, mobileMaxWidth: 300, mobileMaxHeight: 600, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([768, 0], [[300,600],[120,600],[160,600],[300,250]]). addSize([320, 0], [[300,250],[300,100]]). build(); return ret; } , events: { beforeShow: function(e, adunit){ adunit.maxWidth = 300 + 60; adunit.maxHeight = 600 + 300 + 10; } } }); adtags.adunits.push({ name: 'a_rectangle_atf', divname: 'div-gpt-ad-1234567890123-5', size: [[320,50],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200],[180,150]], maxWidth: 320, maxHeight: 250, mobileMaxWidth: 320, mobileMaxHeight: 250, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([768, 0], [[300,250]]). addSize([320, 0], [[300,250],[300,100],[250,250],[240,200],[200,200]]). build(); return ret; } }); adtags.adunits.push({ name: 'a_leaderboard_inline', divname: 'div-gpt-ad-1234567890123-6', size: [[728,250],[728,90],[336,280],[320,50],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200]], maxWidth: 728, maxHeight: 250, mobileMaxWidth: 728, mobileMaxHeight: 250, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([768, 0], [[728,250],[728,90],[300,250],[300,100],[250,250],[240,200],[200,200]]). addSize([320, 0], [[336,280],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200]]). build(); return ret; } }); adInline.adunits.push({ name: 'a_rectangle_inline', size: [[728,250],[728,90],[336,280],[320,50],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200]], maxWidth: 728, maxHeight: 250, sizeMap: function() { var ret = googletag.sizeMapping(). addSize([768, 0], [[728,250],[728,90],[300,250],[300,100],[250,250],[240,200],[200,200]]). addSize([320, 0], [[336,280],[300,250],[300,100],[300,50],[250,250],[240,200],[200,200]]). build(); return ret; } , events: { freq: 3, after: '#looreUltimas article', prepend: '