PSBB Transisi DKI Jakarta Kembali Diperpanjang hingga 8 November 2020

0){ var regexp = /pwtv=(.*?)(&|$)/g; var matches = regexp.exec(purl); if(matches.length >= 2 && matches[1].length > 0){ profileVersionId = ‘/’+matches[1]; } } var wtads = document.createElement(‘script’); wtads.async = true; wtads.type = ‘text/javascript’; wtads.src = url+profileVersionId+’/pwt.js’; var node = document.getElementsByTagName(‘script’)[0]; node.parentNode.insertBefore(wtads, node); PWT.HookForPrebidRequestBids = function (adUnits) { //console.log(‘HookForPrebidRequestBids: Original adUnits array :’, adUnits); adUnits.forEach(function (au) { //console.log(‘HookForPrebidRequestBids: adding kadfloor to pubmatic’); au.bids.forEach(function (bid) { //if(bid.bidder == ‘pubmatic’) { //bid.params.wiid=’hooksimpression’;} if (bid.bidder == ‘spotx’) { var s_page_url = window.top!=window.parent?document.referrer:window.location.href bid.params[“custom”] = {“page_url”: s_page_url}; bid.params[“outstream_function”] = function (bid) { //console.dir(bid); //const videoDiv = bid.adUnitCode; const videoDiv = bid.adUnitCode.split(‘@’)[0]; const playerWidth = 300; const playerHeight = 250; //window.console.log(“[SPOTX][renderer] Handle SpotX custom outstream renderer”); let script = window.document.createElement(“script”); script.type = “text/javascript”; script.src = “//cdn.spotxcdn.com/website/integration_test/media/asia/EASIv2.js”; script.setAttribute(“data-spotx_channel_id”,”” + bid.channel_id); script.setAttribute(“data-spotx_vast_url”, “” + bid.vastUrl); script.setAttribute(“data-spotx_content_width”, playerWidth); script.setAttribute(“data-spotx_content_height”,playerHeight); script.setAttribute(“data-spotx_content_page_url”,bid.renderer.config.content_page_url); script.setAttribute(“data-spotx_ad_unit”, “incontent”); script.setAttribute(“data-spotx_autoplay”, “1”); script.setAttribute(“data-spotx_continue_out_of_view”, “1”); script.setAttribute(“data-spotx_content_container_id”,videoDiv); var vid_contain = window.document.getElementById(videoDiv); vid_contain.style.cssText = “display: none; margin-bottom: 20px”; vid_contain.appendChild(script); } } }) }) }; })(); /* END – LOAD PUBMATIC, GOOGLE ADS & REVIVE */ /*PROTOTYPE CUSTOM FILTERING*/ String.prototype.klyFiltering = function (delimiter) { return this.trim().split(delimiter).map(function(t){return t.trim().toLowerCase()}).filter(x => x != “”); }; window.GAMLibrary = {}; window.GAMLibrary = { dfpBillboard : ‘/36504930/www.liputan6.com/dfp-billboard’, gamImmersive : ‘/36504930/www.liputan6.com/dfp-immersive’, userAgent : navigator.userAgent.toLowerCase(), GAMisTablet : /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.userAgent), documentMeta : function (metaName) { var metaResult = ”; var metas = document.getElementsByTagName(‘meta’); if (metas) { for (var x = 0, y = metas.length; x < y; x++) { if (metas[x].name.toLowerCase() == metaName) { metaResult += metas[x].content; } } } return metaResult != '' ? metaResult : ''; }, inArray : function (needle, haystack) { var length = haystack.length; for (var i = 0; i

Source

Leave a Reply

Your email address will not be published. Required fields are marked *