Berita Vaksin Merah Putih Hari Ini – Kabar Terbaru Terkini | Liputan6.com (function(d,a,b,l,e,_) { d[b]=d[b]||function(){(d[b].q=d[b].q||[]).push(arguments)};e=a.createElement(l); e.async=1;e.charset=’utf-8′;e.src=’//static.dable.io/dist/plugin.min.js’; _=a.getElementsByTagName(l)[0];_.parentNode.insertBefore(e,_); })(window,document,’dable’,’script’); dable(‘setService’, ‘liputan6.com’); dable(‘sendLogOnce’); ]]> 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); })(); ]]> x != “”); }; /* DMP CATEGORY LIST */ window.createDMPTracker = function(adsList,dfpTracker){ var dmpEl,dmpON,dmpId = 1, dmpList=[“car-toyota”, “car-electric”, “bike-electric”, “fashion-kids”, “news”, “car-honda”, “car-suzuki”, “car-daihatsu”, “car-mitsubishi”, “car-wuling”, “car-datsun”, “car-lcgc”, “car-mpv”, “car-premium”, “bike-honda”, “bike-yamaha”, “bike-suzuki”, “finance-savings”, “finance-deposit”, “finance-credit-card”, “finance-stock-exchange”, “finance-ewallet”, “finance-gold”, “loan-kpr”, “loan-kkb”, “loan-for-bussines”, “loan-online”, “education-college”, “education-seminar”, “education-courses”, “beauty-treatment”, “beauty-plastic-surgery”, “health-hospital”, “health-diet”, “health-nutrition”, “health-fitness”, “insurance-life”, “insurance-health”, “insurance-education”, “insurance-travel”, “insurance-houses”, “insurance-car”, “insurance-bike”, “hotel-domestic”, “hotel-international”, “ticket-airplane”, “ticket-train”, “tourism-domestic”, “tourism-international”, “online-transportation”, “telco-provider”, “telco-internet”, “telco-tv-cable”, “electronic-mobile”, “electronic-notebook”, “electronic-desktop”, “electronic-home-appliance”, “fmcg-coffee”, “fmcg-milk-product”, “fmcg-beverage”, “fmcg-frozen-food”, “fmcg-healthy-food”, “fmcg-snack”, “fmcg-men-haircare”, “fmcg-women-haircare”, “fmcg-skin-treatment”, “fmcg-dental-care”, “fmcg-foot-hand-care”, “fmcg-tobacco”, “ecommerce-marketplace”, “hobby-esport”, “hobby-sport”, “hobby-collection”, “hobby-pet”, “property-houses”, “property-apartment”, “fashion-men”, “fashion-women”, “fashion-hijab”, “all-event”, “beauty-event”, “lifestyle-event”, “fashion-event”, “music-event”, “women-event”, “education-event”, “automotive-event”, “parenting-event”, “korean-event”, “comedy-event”, “gamer-event”, “tv-all-program”, “tv-news-program”, “korean-content”, “movies”, “dangdut”, “music”, “fashion”, “hijab”, “beauty-content”, “women”, “moms”, “health-wellness”, “travelling”, “culinary”, “entrepreneur”, “mobile-apps”,”health-drugs”]; Array.isArray(adsList) && dmpList.forEach(function(v,k){ adsList.forEach(function(l,e){ if(v === l){ cat = v.trim(); dmpEl = document.createElement(‘img’); dmpON = parent.window.document.querySelector(‘#dmp-tracker-‘+dmpId); dmpON ? dmpON.remove() : ”; dmpEl.setAttribute(‘src’,’https://beacon.krxd.net/event.gif?event_id=M361oCpv&event_type=registration&cat=’+cat+’&media=banner’); dmpEl.setAttribute(‘width’,’0′); dmpEl.setAttribute(‘height’,’0′); dmpEl.setAttribute(‘id’,’dmp-tracker-‘+dmpId); console.log(dmpEl); parent.window.document.body.appendChild(dmpEl); dmpId++; } }); }); parent.window.open(dfpTracker, ‘_blank’); }; function track_dmp(){ var kSegments = Krux.segments, dmpTracker = { “t132uuq5f”:”https://bit.ly/kly-fashion-lovers-uss”, “t131yvou0″:”https://bit.ly/kly-beauty-enthusiast-uss”, “t131llctq”:”https://bit.ly/kly-woman-household-uss”, “t13zhj75p”:”https://bit.ly/kly-mom-with-kids-uss”, “t13thh8b8″:”https://bit.ly/kly-milenial-adult-uss”, “tzl02g0bl”:”https://bit.ly/kly-beauty-bss”, “tzlz95r0n”:”https://bit.ly/kly-lifestyle-tips-bss”, “tzlytf64c”:”https://bit.ly/kly-lifestyle-culinary-bss”, “tzh1jktow”:”https://bit.ly/kly-lifestyle-love-bss”, “tw1bejayz”:”https://bit.ly/kly-lifestyle-bss”, “tw019h508″:”https://bit.ly/kly-lifestyle-zodiak-bss”, “twotmzome”:”https://bit.ly/kly-ticket-concert-bss”, “tsankogrh”:”https://bit.ly/kly-sport-bss”, “tsanbbb5e”:”https://bit.ly/kly-automotive-bss”, “tsam3knlf”:”https://bit.ly/kly-soccer-bss”, “tsalg75jn”:”https://bit.ly/kly-computer-electronics-bss”, “tsalarj4o”:”https://bit.ly/kly-parentingv2-bss”, “tsak3623n”:”https://bit.ly/kly-travel-and-culinary-bss”, “tsais9e6x”:”https://bit.ly/kly-fashion-bss”, “tsahjm7yw”:”https://bit.ly/kly-entertaint-bss”, “tsagy2m0m”:”https://bit.ly/kly-health-bss”, “tsagk5a78″:”https://bit.ly/kly-news-bss”, “tsafz8k0v”:”https://bit.ly/kly-finance-bussines-bss”, “tr62t1fj2″:”https://bit.ly/kly-traveller-bss”, “tr6z15p4s”:”https://bit.ly/kly-ecommerce-bss”, “tjtop60dx”:”https://bit.ly/kly-all-sites-v2″, “tqi6kmk44″:”https://bit.ly/kly-male-dss”, “tqi6fygsx”:”https://bit.ly/kly-female-dss”, “t754dx15h”:”https://bit.ly/kly-vidio-news-bss”, “t75388hy0″:”https://bit.ly/kly-vidio-finance-business-bss”, “t7534rm9z”:”https://bit.ly/kly-vidio-automotive-bss”, “t753yw5w8″:”https://bit.ly/kly-vidio-soccer-bss”, “t753jjhnb”:”https://bit.ly/kly-vidio-sport-bss”, “t75wn0zo1″:”https://bit.ly/kly-vidio-parenting-bss”, “t75wi8zsb”:”https://bit.ly/kly-vidio-computer-electronics-bss”, “t75wagtfg”:”https://bit.ly/kly-vidio-entertainment-bss”, “t75v3eefi”:”https://bit.ly/kly-vidio-health-bss”, “t75vxdba2″:”https://bit.ly/kly-vidio-ecommerce-bss”, “t75uql2cv”:”https://bit.ly/kly-vidio-travel-bss”, “t75ugodsj”:”https://bit.ly/kly-vidio-lifestyle-bss”, “t7p1vjdqs”:”https://bit.ly/kly-vidio-fashion-bss”, “t7p1piz5g”:”https://bit.ly/kly-vidio-love-bss”, “t7pxv5m22″:”https://bit.ly/kly-vidio-culinary-bss”, “t7puhdq0d”:”https://bit.ly/kly-vidio-beauty-bss”, }, dmpTrackerContainer = document.createElement(“div”); dmpTrackerContainer.setAttribute(“id”,”dmp-tracker-container”); dmpTrackerContainer.setAttribute(“style”,”display:none;visibility:hidden;”); kSegments.forEach(function(entry,k) { var isDmpTracker = dmpTracker[entry]; if(typeof isDmpTracker !== ‘undefined’){ var dmpSetImg = parent.window.document.querySelector(‘#krux-dmp-tracker-‘+k), dmpTrackImg = document.createElement(‘img’); dmpSetImg ? dmpSetImg.remove() : ”; dmpTrackImg.src = isDmpTracker; dmpTrackImg.setAttribute(‘style’, ‘display:none;visibility:hidden;’); dmpTrackImg.setAttribute(‘id’, ‘krux-dmp-tracker-‘+k); dmpTrackerContainer.appendChild(dmpTrackImg); } }); document.body.appendChild(dmpTrackerContainer); } googletag.cmd.push(function() { const dfp_adunit_name = [“bisnis”, “bola”, “citizen6”, “global”, “health”, “lifestyle”, “news”, “otomotif”, “photo”, “pilkada”, “properti”, “regional”, “showbiz”, “tekno”, “tv”, “video”]; var targetting_channel = (kmklabs.channel.full_slug === “”) ? “homepage” : kmklabs.channel.full_slug; var channel = kmklabs.channel.full_slug, dfp_found = dfp_adunit_name.find(function(name) { return name === channel; }); /* IF CHANNEL NOT EQUAL TO ADUNIT LIST */ channel = (typeof dfp_found === “undefined”) ? “homepage” : channel; var oop_dfpBillboard = ‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-billboard’, oop_gamImmersive = ‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-immersive’, isMatcont = false, urlPath = document.URL, urlArray = urlPath.split(“/”), dfp_Channel = window.location.host, /*INIT CONTENT FILTERING SCRIPT*/ blackListWords = new Array(‘matcont’, ‘aduhai’, ‘kelamin’, ‘vital’, ‘anal’, ‘belahan’, ‘bercinta’, ‘bergairah’, ‘gairah’, ‘intim’, ‘bikini’, ‘bokong’, ‘boob’, ‘bra’, ‘bugil’, ‘celana’, ‘ciuman’, ‘cleavage’, ‘dada’, ‘dewasa’, ‘diremas’, ‘doggie’, ‘ejakulasi’, ‘ereksi’, ‘erotis’, ‘foreplay’, ‘kiss’, ‘gairah’, ‘seks’, ‘gangbang’, ‘horny’, ‘hot’, ‘kamasutra’, ‘keperawanan’, ‘perawan’, ‘kondom’, ‘kontrasepsi’, ‘libido’, ‘lingerie’, ‘masturbasi’, ‘mature’, ‘menggairahkan’, ‘menggoda’, ‘mesra’, ‘miss-v’, ‘mr-p’, ‘nakal’, ‘naughty’, ‘nipple’, ‘nipples’, ‘onani’, ‘oral’, ‘oral seks’, ‘organ’, ‘orgasme’, ‘paha’, ‘pantat’, ‘panties’, ‘payudara’, ‘pelecehan’, ‘telanjang’, ‘penetrasi’, ‘penis’, ‘perkosa’, ‘perkosaan’, ‘pole’, ‘porno’, ‘pornoaksi’, ‘pornografi’, ‘telentang’, ‘provokatif’, ‘putting’, ‘ranjang’, ‘sex’, ‘penetratif’, ‘seksi’, ‘seksual’, ‘sensual’, ‘seronok’, ‘doll’, ‘toys’, ‘skandal’, ‘sperma’, ‘striptease’, ‘striptis’, ‘syur’, ‘terangsang’, ‘tiduri’, ‘topless’, ‘vagina’, ‘vibrator’, ‘lendir’, ‘prostitusi’, ‘homoseks’, ‘meraba-raba’, ‘mesum’, ‘keperawanan’, ‘memerkosa’, ‘rudapaksa’, ‘kemaluan’), /* INIT SPECIAL KEYWORDS FOR ADS TARGETTING */ taggedAds = new Array(‘kasus asusila’, ‘pemerkosaan’, ‘prostitusi’, ‘hubungan seksual’, ‘hubungan intim’, ‘pornografi’, ‘video porno’, ‘bercinta’, ‘ereksi’, ‘seks’, ‘berita hoax’, ‘ternyata hoax’, ‘ahed tamimi’, ‘konflik palestina israel’, ‘konflik suriah’, ‘ujaran kebencian’, ‘g30s’, ‘kediktatoran arab saudi’, ‘konflik palestina-israel’, ‘fpi’, ‘penembakan’, ‘pelecehan seksual’, ‘tips seks’, ‘komunitas swinger’, ‘fenomena kelainan seksual’, ‘penyimpangan seks’, ‘posisi seks’, ‘obat kuat’, ‘bentuk payudara’, ‘implan payudara’, ‘chat firza-rizieq’, ‘anarkisme suporter sepakbola’, ‘bentrok suporter’, ‘pengeroyokan’, ‘penganiayaan’, ‘begal motor’, ‘kekerasan pada wartawan’, ‘pemerkosaan anak’, ‘pencabulan’, ‘bentrokan warga’, ‘bentrokan’, ‘kasus narkoba’, ‘akibat merokok’, ‘bahaya merokok’, ‘berhenti merokok’, ‘cara berhenti merokok’, ‘efek berhenti merokok’, ‘larangan merokok’, ‘tips berhenti merokok’, ‘rokok elektrik’, ‘pilpres 2019’, ‘koalisi pilpres 2019’, ‘koalisi prabowo’, ‘koalisi jokowi’, ‘prabowo-sandiaga’, ‘ratna sarumpaet’, ‘capres jokowi’, ‘capres prabowo’, ‘kebohongan ratna sarumpaet’, ‘prabowo subianto’, ‘jemaah ansharut daulah’, ‘aliran sesat’, ‘lia eden’, ‘kisah mualaf’, ‘penistaan agama’, ‘suporter tewas’, ‘gempa palu’, ‘gempa donggala’, ‘gempa sulawesi tengah’, ‘pembunuhan’, ‘tsunami palu’, ‘penemuan mayat’, ‘lion air jatuh di karawang’, ‘lion air jatuh’, ‘pembunuhan sadis’, ‘lion air hilang kontak’, ‘pesawat jatuh’, ‘pesawat hilang kontak’, ‘kecelakaan’, ‘kapal tenggelam di danau toba’, ‘kecelakaan bus’, ‘kapal tenggelam’, ‘kasus tabrak lari’, ‘bunuh diri’, ‘perselingkuhan’, ‘kisah perselingkuhan’, ‘razia pasangan mesum’, ‘seks bebas’, ‘gangguan jiwa’, ‘tes keperawanan’, ‘kontroversi hukuman mati’, ‘stres dan depresi’, ‘ahok gugat cerai veronica tan’, ‘Kanker’, ‘Impotensi’, ‘merokok’, ‘Perokok’, ‘Rokok’, ‘tembakau’, ‘Pelanggaran’, ‘Tablet’, ‘Overdosis’, ‘Jantung’, ‘Stroke’, ‘Cancer’, ‘Narkoba’, ‘Djarum’, ‘Ganja’, ‘BNN’, ‘Obesitas’, ‘Osteoporosis’, ‘Kanker’, ‘Impotensi’, ‘merokok’, ‘Perokok’, ‘Rokok’, ‘tembakau’, ‘Pelanggaran’, ‘Tablet’, ‘Overdosis’, ‘Jantung’, ‘Stroke’, ‘Cancer’, ‘Narkoba’, ‘Djarum’, ‘Ganja’, ‘BNN’, ‘Obesitas’, ‘Osteoporosis’), /* POPULATE META DATA KEYWORDS */ dfp_pageTitle = urlArray[urlArray.length – 1], dfp_titles = dfp_pageTitle.klyFiltering(“-“), dfp_pageKeywords = document_meta(“keywords”), dfp_keyword = dfp_pageKeywords.klyFiltering(“,”), /* POPULATE META DATA DESC */ dfp_pageDesc = document_meta(“description”), dfp_desc = dfp_pageDesc.klyFiltering(“,”), is_taggedAds = new Array(), /*TARGET BY ARTICLE TITLE*/ dfp_article = kmklabs.gtm.articleTitle, /*TARGET BY SUB CATEGORY*/ dfp_subCategory = kmklabs.gtm.subCategory, /*TARGET BY SUB SUB CATEGORY*/ dfp_subSubCategory = kmklabs.gtm.subSubCategory, gam_billboard, gam_topfrm, gam_bottomfrm, gam_skinad, tagForAds = (typeof kmklabs !== ‘undefined’) ? kmklabs.gtm.tag.replace(/[^A-Za-z0-9|- ]/ig,””).klyFiltering(“|”) : “”;/*NEW*/ /*MATURE CONTENT DEFINED VAR & SET TARGETTING*/ if (!blackListWords) { var blackListWords = new Array(‘matcont’); } var dfp_keywords = dfp_keyword.concat(dfp_titles, dfp_desc, tagForAds), userAgent = navigator.userAgent.toLowerCase(); const GAMisTablet = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent); //search from keyword, desc & tag meta data dfp_keywords.forEach(function(sKeyword) { tagForAds.push(sKeyword); if (inArray(sKeyword, taggedAds)) { is_taggedAds.push(sKeyword); } if (inArray(sKeyword, blackListWords)) { isMatcont = true; } }); if (is_taggedAds.length > 0) { is_taggedAds.push(‘all’); googletag.pubads().setTargeting(“taggedAds”, is_taggedAds); } if (isMatcont) { googletag.pubads().setTargeting(“isMatcont”, [“1”]); } /* DEFINE IMMERSIVE TAG – DO NOT CHANGE THE SLOT ORDER, IMMERSIVE ALWAYS ON THE 1st POSITION – */ var gam_immersive = googletag.defineOutOfPageSlot(oop_gamImmersive, ‘div-gpt-ad-liputan6-immersive-oop’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-sc’, [300, 250], ‘div-gpt-ad-liputan6-sc’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-halfpage1’, [[300, 250],[300, 600]], ‘div-gpt-ad-liputan6-halfpage1’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-halfpage2’, [[300, 250],[300, 600]], ‘div-gpt-ad-liputan6-halfpage2’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-lb’, [[970, 90],[728, 90],[970, 250]], ‘div-gpt-ad-liputan6-lb’).addService(googletag.pubads()).setTargeting(“leaderboard_type”, [‘direct’]); /*OUT OF PAGE SLOT*/ googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-balloon’, ‘div-gpt-ad-liputan6-balloon-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-contextual’, ‘div-gpt-ad-liputan6-contextual-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-headline1’, ‘div-gpt-ad-liputan6-dfp-headline1-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-headline2’, ‘div-gpt-ad-liputan6-dfp-headline2-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-headline3’, ‘div-gpt-ad-liputan6-dfp-headline3-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-inarticle’, ‘div-gpt-ad-liputan6-inarticle-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-middle’, ‘div-gpt-ad-liputan6-middle’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-popup’, ‘div-gpt-ad-liputan6-popup-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-newsTag1’, ‘div-gpt-ad-liputan6-newsTag1-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-newsTag2’, ‘div-gpt-ad-liputan6-newsTag2-oop’).addService(googletag.pubads()); googletag.pubads().addEventListener(‘slotRenderEnded’, function(event) { var dfp_slotElementId = event.slot.getSlotId().getDomId(), /* get adunit dom id*/ dfp_lb_keyTargetting = []; if (event.slot == gam_immersive) { if (event.isEmpty) { gam_billboard = googletag.defineOutOfPageSlot(oop_dfpBillboard, ‘div-gpt-ad-liputan6-billboard-oop’).addService(googletag.pubads()); gam_topfrm = googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-topfrm’, ‘div-gpt-ad-liputan6-topfrm-oop’).addService(googletag.pubads()); gam_bottomfrm = googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-bottomfrm’, ‘div-gpt-ad-liputan6-bottomfrm-oop’).addService(googletag.pubads()); googletag.display(‘div-gpt-ad-liputan6-billboard-oop’); googletag.display(‘div-gpt-ad-liputan6-topfrm-oop’); googletag.display(‘div-gpt-ad-liputan6-bottomfrm-oop’); if(!GAMisTablet){ gam_skinad = googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/’ + channel + ‘/dfp-skinad’, ‘div-gpt-ad-liputan6-skinad-oop’).addService(googletag.pubads()); googletag.display(‘div-gpt-ad-liputan6-skinad-oop’); googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm, gam_skinad]); }else{ googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm]); } } } /* DISPLAY NONE THE IFRAME, FOR ADS ELEMENT OUTSIDE IT’S IFRAME CONTAINER */ if (dfp_slotElementId.match(/-oop/) && !dfp_slotElementId.match(/billboard|lb/)) { if (document.getElementById(dfp_slotElementId) && document.getElementById(dfp_slotElementId).getElementsByTagName(‘iframe’)[0] && (document.getElementById(dfp_slotElementId).getElementsByTagName(‘iframe’)[0].getAttribute(‘height’) == 1)) { document.getElementById(dfp_slotElementId).getElementsByTagName(‘iframe’)[0].style.display = “none”; } } }); /*GET META*/ function document_meta(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 : ''; } function inArray(needle, haystack) { var length = haystack.length; for (var i = 0; i 0) { if ($(“.woi-carousel-slide”).length > 0) { var flashbannerwidth = $(“.woi-carousel-slide”).width(); } else if ($(“#latest-news-headline”).length > 0) { var flashbannerwidth = $(“#latest-news-headline”).width(); } else { var flashbannerwidth = $(“.gallery-images”).width(); } $(“#middle_ads #Advertisement”).attr(‘width’, flashbannerwidth); } }); //remove duplicate iframe on rumah indofood ads $(window).load(function() { $(‘#div-gpt-ad-1452747766035-8 > iframe’).remove(); }); $(document).ready(function() { var sponsoredArticle = $(‘.articles–iridescent-list–text-item__sponsored-label’).parent().parent().parent(); var articlePlace = [1, 2]; sponsoredArticle.each(function(index, value) { $(value).insertAfter($(“article.articles–iridescent-list–item”).eq(articlePlace[index])); }); // fix video embed mail online $(‘iframe[title*=”MailOnline”]’).attr(‘width’, ‘100%’); }); /* Hide popular article count #128641363 */ $(document).ready(function() { $(‘.article-snippet–small__count’).hide(); }); /* BEGIN IPIFY */ $(function() { var c = $(”, { text: “function getIP(json){if (console) { console.log(‘IP: ‘ + json.ip); } }” }); var i = $(”, { src: “https://api.ipify.org?format=jsonp&callback=getIP” }); $(‘head’).append(c); $(‘head’).append(i); }); /* END IPIFY */ $(document).ready(function() { // remove me after fix-style-remove-custom-script $(“.content-promotion–header-stm__link-title”).css(‘display’, ‘block’); }); /*** END of Javascript Public ****/ /*** START of Moving layout for adwords ****/ $(document).ready(function(){ if(window.kmklabs.pageType ==’ChannelPage’){ //$(“.fixed-sidebar .content-promotion:eq(0)”).after($(“.channel-ad_ad-mr1”).parents(“.box”)); if(kmklabs.channel.full_slug ==”pilkada”){ $(“.newsletter_desktop-aside”).before($(“.channel-ad_ad-mr1”).parents(“.box”)); } }else if(window.kmklabs.pageType == “ReadPage” && window.kmklabs.channel.full_slug!=”apec”){ $(“.fixed-sidebar #popular-articles”).after($(“.article-ad_ad-mr1”).parents(“.box”)); } }); /*** END of Moving layout for adwords ****/ /*** START of BUG SINGLEDOMAIN ****/ if(window.kmklabs.pageType == “ReadPage” && window.location.hostname.indexOf(‘www’) === -1) { $(document).on(‘shown.bs.modal’, function() { var checkExist = setInterval(function() { if($(‘.conversation–form form’).length) { var path = $(‘.conversation–form form’).attr(“action”); var pathArray = path.split(“/read”); path = “/read” + pathArray[1]; $(‘.conversation–form form’).attr(“action”, path); clearInterval(checkExist); } }, 1000); }); } /*** END of BUG SINGLEDOMAIN ****/ /*** START of [ADS] Additional javascript for banner ****/ function gamScrollTweakHeader() { document.addEventListener(‘scroll’, function(){ var elSibling; var btnMore = document.querySelector(‘.hideshow.more.navbar–menu–item__more-item.navbar–menu–item__more-item_slim’); // var moreWrapper = btnMore.querySelector(‘.dropdown-menu.navbar–menu–item__more-sub-menu’); // elSibling = btnMore.previousElementSibling.previousElementSibling; // if(document.documentElement.scrollTop > 50){ // elSibling.style.display = ‘none’; // }else{ // elSibling.style.display = ‘inline-block’; // } }); } /*** END of [ADS] Additional javascript for banner ****/ /*** START of [URL Parameter] – [#161981220 – #161277187] [Visual Adjustment] Margin–Header-Body-Footer [readpage, home, subkanal, subchannel, video, photo] ****/ (function () { const cssLoader = { ‘urlPrefix’: ‘?loadCosmetic’, ‘cssFileLocation’: ‘./index.css’, ‘cssInline’: ` .navbar–top__wrapper { padding: 0px 12px; } .navbar–menu__list { padding: 0px 12px; } .navbar–menu__right-panel { padding-right: 12px; width: 135px; } .navbar–menu__list_slim { width: 835px!important; } .navbar–menu_slim .navbar–menu__right-panel { padding-right: 0px; width: 133px; } .navbar–menu-subchannel { padding: 0px 12px; } .navbar–menu-subchannel__container{ padding: 0px 12px; } .footer__row { padding: 0px 12px; } .footer__link-wrapper { width: 477px; } .container-main #main { padding: 0px 12px; } .container-main_slim #main { padding: 0px 12px; } .inner-container-article { width: 640px; } .photogalleries .container-main #main { padding: 0px 0px; } .photogalleries .container-main_slim #main { padding: 0px 0px; } .videogalleries .container-main #main { padding: 0px 0px; } .videogalleries .container-main_slim #main { padding: 0px 0px; } /* add padding in photo */ .photogalleries .gallery–headlines__featured-aside { padding: 0px 12px; background-color: #FFFFFF; } .photogalleries .gallery–headlines__featured { position: relative; float: left; width: 725px; } .photogalleries .gallery–headlines–featured–photo__image img { position: relative; bottom: 21px; } .photogalleries section#photo-gallery-popular { padding: 0px 12px; } .photogalleries .gallery–grid__item.js-gallery-grid-item { width: 230px; margin-right: 12px; } .photogalleries section#photo-gallery-recommended { padding: 0px 12px; } .photogalleries section#photo-gallery-latest { padding: 0px 12px; } .videogalleries .content { padding: 0px 12px; } .videogalleries .gallery–headlines-big–video__wrapper { width: 294px; } .videogalleries .gallery–grid__item.js-gallery-grid-item.gallery–grid__item-headline { margin-right: 12px; } .videogalleries .main .content .box-main { margin-right: 16px; } `, ‘cssCallerExternal’: function () { const cssLink = document.createElement(“link”); cssLink.setAttribute(“rel”, “stylesheet”); cssLink.setAttribute(“type”, “text/css”); cssLink.setAttribute(“href”, this.cssFileLocation); return cssLink; }, ‘cssCreator’: function () { const styleTag = document.createElement(‘style’); styleTag.type = ‘text/css’; styleTag.appendChild(document.createTextNode(this.cssInline)); return styleTag; }, ‘getURL’: function () { const rawURL = window.location.href; const headDOM = document.querySelector(‘head’); const bodyDOM = document.querySelector(‘body’); // load from href // rawURL.includes(this.urlPrefix) ? headDOM.appendChild(this.cssCallerExternal()) : null; // load from internal rawURL.includes(this.urlPrefix) ? bodyDOM.appendChild(this.cssCreator()) : null; } } const jsLoader = { ‘urlPrefix’: ‘?loadNewJS’, ‘jsInline’: ` const test = document.querySelector(‘.red’); test.addEventListener(‘click’, function(){ console.log(this); }) `, ‘jsCreator’: function () { const scriptTag = document.createElement(‘script’); scriptTag.type = ‘text/javascript’; scriptTag.appendChild(document.createTextNode(this.jsInline)); return scriptTag; }, ‘getURL’: function () { const rawURL = window.location.href; const headDOM = document.querySelector(‘head’); const bodyDOM = document.querySelector(‘body’); // load from internal rawURL.includes(this.urlPrefix) ? bodyDOM.appendChild(this.jsCreator()) : null; } } document.addEventListener(‘DOMContentLoaded’, function () { cssLoader.getURL(); // jsLoader.getURL(); }) })(); /*** END of [URL Parameter] – [#161981220 – #161277187] [Visual Adjustment] Margin–Header-Body-Footer [readpage, home, subkanal, subchannel, video, photo] ****/ /*** START of [#161980855] PIP readpage kanal video ****/ $(document).ready(function () { (function () { const cssHandler = { ‘cssInline’: ` .read-page–video-gallery–item__vidio-embed{ -webkit-transition: opacity 0.3s ease-out; -moz-transition: opacity 0.3s ease-out; -o-transition: opacity 0.3s ease-out; transition: opacity 0.3s ease-out; } .pip-container { position: fixed; top: 160px; width: 300px !important; z-index: 99; height: 168px; margin-left: 661px; opacity: 1; border-radius: 5px; overflow: hidden; -webkit-animation: fadein 0.3s; /* Safari, Chrome and Opera > 12.1 */ -moz-animation: fadein 0.3s; /* Firefox < 16 */ -ms-animation: fadein 0.3s; /* Internet Explorer */ -o-animation: fadein 0.3s; /* Opera < 12.1 */ animation: fadein 0.3s; } .pip-video { position: absolute; top: -5px; left: -5px; width: 310px; } .read-page--video-gallery--item { width: 650px; height: 360px; display: inline-block; margin-left: -5px; } .i-pip-button-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Ccircle id='b' cx='10' cy='10' r='10'/%3E%3Cfilter id='a' width='175%25' height='175%25' x='-37.5%25' y='-37.5%25' filterUnits='objectBoundingBox'%3E%3CfeOffset in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur in='shadowOffsetOuter1' result='shadowBlurOuter1' stdDeviation='2.5'/%3E%3CfeColorMatrix in='shadowBlurOuter1' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(5 5)'%3E%3Cuse fill='%23000' filter='url(%23a)' xlink:href='%23b'/%3E%3Cuse fill='%23FFF' xlink:href='%23b'/%3E%3C/g%3E%3Cpath fill='%23787878' d='M15 14.265l2.942-2.942a.52.52 0 1 1 .735.735L15.735 15l2.942 2.942a.52.52 0 1 1-.735.735L15 15.735l-2.942 2.942a.52.52 0 1 1-.735-.735L14.265 15l-2.942-2.942a.52.52 0 1 1 .735-.735L15 14.265z'/%3E%3C/g%3E%3C/svg%3E"); position: fixed; width: 30px; height: 30px; top: 144px; display: block; border-radius: 50%; background-size: 30px; z-index: 101; margin-left: 945px; cursor: pointer; opacity: 0; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Firefox 12.1 */ @-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Internet Explorer */ @-ms-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Opera < 12.1 */ @-o-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } /* Firefox 12.1 */ @-webkit-keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } /* Internet Explorer */ @-ms-keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } /* Opera < 12.1 */ @-o-keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } `, 'cssCreator': function () { const styleTag = document.createElement('style'); styleTag.type = 'text/css'; styleTag.appendChild(document.createTextNode(this.cssInline)); return styleTag; }, 'executor': function () { const bodyDOM = document.querySelector('body'); bodyDOM.appendChild(this.cssCreator()) } } const windowHandler = { 'getWindowHeight': function () { return window.innerHeight; }, 'getWindowWidth': function () { return window.innerWidth; }, 'positionAtMiddle': function (iFrameDOM) { let iklanHeight = document.querySelector('#dfp-topframe-main-cont') || 0; const channelHeight = document.querySelector('.navbar--menu__list-wrapper').offsetHeight; let subchannelHeight = document.querySelector('.navbar--menu-subchannel') || 0; if (iklanHeight !== 0) { iklanHeight = iklanHeight.offsetHeight; } else { iklanHeight = 0 } if (subchannelHeight !== 0) { subchannelHeight = subchannelHeight.offsetHeight; } else { subchannelHeight = 0; } const totalHeight = Number.parseInt(iklanHeight + channelHeight + subchannelHeight) var bounding = iFrameDOM.getBoundingClientRect(); if (bounding.bottom <= totalHeight) { return true; } else { return false } }, } const closeHandler = { 'isClicked' : false, 'executor': function() { const closeButton = document.querySelector('.i-pip-button-close'); const videoFrame = document.querySelector('.read-page--video-gallery--item__vidio-embed') const videoContainer = document.querySelector('.read-page--video-gallery--item__vidio-container'); closeButton.addEventListener('click', function() { closeHandler.isClicked = true; videoFrame.classList.remove('pip-video'); videoContainer.classList.remove('pip-container'); videoContainer.style.opacity = '1'; closeButton.style.opacity = '0'; videoContainer.style.boxShadow = 'none'; videoContainer.parentElement.style.backgroundColor = 'transparent'; //$(videoFrame).attr('src', $(videoFrame).attr('src')); }); } } const debunceFunction = { 'delayer': 30, 'do': function (func) { var debounce_timer; window.onscroll = function () { if (debounce_timer) { window.clearTimeout(debounce_timer); } debounce_timer = window.setTimeout(function () { func(); }, debunceFunction.delayer); }; } } const miniVideoHandler = { 'getDocumentType': function () { return window.kmklabs.gtm.type; }, 'executor': function () { if (this.getDocumentType() === 'VideoGallery') { $(".read-page--video-gallery--item__vidio-embed").wrap( "" ); $(".read-page--video-gallery--item").prepend('‘); cssHandler.executor(); closeHandler.executor(); const optimizeFunc = debunceFunction.do; const videoFrameContainer = document.querySelector(‘.read-page–video-gallery–item’); const videoFrame = document.querySelector(‘.read-page–video-gallery–item__vidio-embed’) const videoContainer = document.querySelector(‘.read-page–video-gallery–item__vidio-container’); const closeButtonElement = document.querySelector(‘.i-pip-button-close’); optimizeFunc(function () { const result = windowHandler.positionAtMiddle(videoFrameContainer); if (result == true && !videoFrame.classList.contains(‘pip-video’)) { // closeHandler.isClicked = true; if(!closeHandler.isClicked) { videoFrame.classList.add(‘pip-video’) videoContainer.parentElement.style.backgroundColor = ‘#E1E1E1’; videoContainer.style.boxShadow = ‘0 4px 24px 0 rgba(36,51,72,0.44)’; videoContainer.classList.add(‘pip-container’) closeButtonElement.style.opacity = ‘1’; } // note add css } else { closeHandler.isClicked = false; if (result == false && videoFrame.classList.contains(‘pip-video’)){ videoContainer.style.opacity = ‘0’; closeButtonElement.style.opacity = ‘0’; setTimeout(function () { videoFrame.classList.remove(‘pip-video’); videoContainer.classList.remove(‘pip-container’); videoContainer.style.opacity = ‘1’; videoContainer.style.boxShadow = ‘none’; videoContainer.parentElement.style.backgroundColor = ‘transparent’; }, 200); } // remove pip video tag class } }) } } } miniVideoHandler.executor(); })(); }); /*** END of [#161980855] PIP readpage kanal video ****/ /*** START of [DESKTOP] Pasang Widget SCTV + Indosiar [Homepage, KanalPage] ****/ $(document).ready(function () { (function () { const server = { ‘getDateTime’ : function() { const xhr = new XMLHttpRequest(); xhr.open(‘GET’, document.location, false); xhr.send(null); const response = xhr.getAllResponseHeaders().split(‘rn’).reduce((result, current) => { let [name, value] = current.split(‘: ‘); result[name] = value; return result; }, {}); return response.date; }, ‘getTimeStamp’ : function() { // const respDate = this.getDateTime(); // return Date.parse(respDate); return Date.now(); }, ‘getDateString’ : function() { // const respDate = this.getDateTime(); // const today = new Date(respDate); const today = new Date(); const dateString = today.getMonth() + 1 + “/” + today.getDate() + “/” + today.getFullYear(); return dateString; } }; const widget = { ‘getIframeSource’ : function(channel) { switch(channel) { case “sctv”: return `
${eventTitle} `; } } const handler = { ‘currentSiteType’: function () { const currentSiteType = window.kmklabs.gtm.subCategory; return currentSiteType; }, ‘pasang’: function () { if (window.location.pathname !== ‘/pages/infeed’) { if ((window.kmklabs.pageType == “ChannelPage” || window.kmklabs.pageType == “ReadPage”) && (window.kmklabs.channel.full_slug != “video” && window.kmklabs.channel.full_slug != “photo”)) { const rightElement = document.querySelectorAll(‘.fixed-sidebar .box’); const parentSelector = $(‘.live–streaming’).length > 0 ? ‘.live–streaming’ : ‘#phenomenon-tags’; let iframe = $(widget.getIframe()); // cek if current live streaming from cms is same with streaming from widget if(iframe.is(‘.live–streaming’)) { let iframeSrc = iframe.find(‘iframe’).attr(‘src’).split(‘/embed’)[0]; let liveSrc = $(‘.live–streaming’).length > 0 ? $(‘.live–streaming[data-component-name=”desktop:asides:livestreamer”] iframe’).attr(‘src’) : ”; if(liveSrc.indexOf(iframeSrc) > -1) { iframe = widget.getIframeSource(“jadwal-tv”); } } $(iframe).insertAfter(parentSelector); } } } }; const windowsMessageHandler = { ‘receiveMessage’: function () { window.addEventListener(‘message’, function (event) { const evenData = event.data; if (evenData.childHeight != undefined) { const tinggi = event.data.childHeight; const iframe = document.querySelector(‘.jadwal-tv’) || null; if (iframe !== null) { iframe.style.height = `${tinggi+20}px`; } } // const newHeight = event.data.childHeight; }, false) } }; // const getLiveStreamingStatus = { // ‘status’: {}, // ‘isItActive’: function () { // const klyLiveStreaming = document.querySelector(‘.live-streaming-kly-tv’) // if (klyLiveStreaming) { // this.status = true // } else { // this.status = false; // } // } // } // getLiveStreamingStatus.isItActive(); // #3 handler.pasang(); windowsMessageHandler.receiveMessage(); })(); }); /*** END of [DESKTOP] Pasang Widget SCTV + Indosiar [Homepage, KanalPage] ****/ /*** START of [#164724658] berita terkini hide list ke 6 – 15 ****/ if (window.kmklabs.pageType === ‘ReadPage’) { if ($(‘ul[data-feature-name=”berita-terkini”] > li’).length) { $(‘ul[data-feature-name=”berita-terkini”] > li’).each(function(index, element) { if (index > 4) { $(element).hide() } }); } } /*** END of [#164724658] berita terkini hide list ke 6 – 15 ****/ /*** START of [HOTFIX] LIvereport Desktop ****/ if (window.kmklabs.pageType === ‘LiveReportPage’) { $(‘.livereport–key-moment__list-item’).each(function (index, element) { $(element).bind(“click”, function() { scrollToTargetAdjusted(‘.livereport–streamline__grid:nth-child(‘+ (index+1) +’)’); }); }); function scrollToTargetAdjusted(targetClass){ var node = document.querySelector(targetClass); var yourHeight = 50; // scroll to your element node.scrollIntoView(true); // now account for fixed header var scrolledY = window.scrollY; if(scrolledY){ window.scroll({ top: scrolledY – yourHeight, behavior: “smooth”}); } } } /*** END of [HOTFIX] LIvereport Desktop ****/ /*** START of custom title for article ****/ if( kmklabs.pageType == “ReadPage”){ // article id #2868646 if(kmklabs.article.id.toString()==”2868646″ ){ $(“.read-page–header–title”).text(“Film Animasi Karya SMK Raden Umar Said Kudus Rilis di Jakarta Tuai Apresiasi”); } // article id #2989443 if(kmklabs.article.id.toString()==”2989443″ ){ $(“.read-page–header–title”).text(“5 Alasan Vivo V5s Pure White Edisi Ramadhan Layak Jadi Kado Spesial “); } // article id #2990849 if(kmklabs.article.id.toString()==”2996283” ){ $(“.read-page–header–title”).text(“Beginilah Suasana Keberangkatan 15 Ribu Pedagang Jamu di Mudik Gratis Sido Muncul”); } // article id #3026992 if(kmklabs.article.id.toString()==”3026992″ ){ $(“.read-page–header–title”).text(“Kontes Castrol Legendary Bikers 2017 Berhadiah Tiket Nonton MotoGP Sepang”); } if(kmklabs.article.id.toString()==”3122709″ ){ $(“.read-page–header–title”).text(“Garda Oto Digital Jadi Inovasi Baru untuk Klaim Asuransi Kendaraan”); } if(kmklabs.article.id.toString()==”3123716″ ){ $(“.read-page–header–title”).text(“9 Fitur Safety Ini, Jadikan Avanza dan Veloz Mobil Idaman Masyarakat Indonesia”); } if(kmklabs.article.id.toString()==”3141687″ ){ $(“.read-page–header–title”).text(“Multilayer Park Seluas 2 Ha Pertama di Indonesia Ada di Vasanta Innopark”); } if(kmklabs.article.id.toString()==”3213760″ ){ $(“.read-page–header–title”).text(“Hey Para Pekerja, Hindari Kebiasaan Ini Supaya Kekebalan Tubuh Kuat”); } if(kmklabs.article.id.toString()==”3215448″ ){ $(“.read-page–header–title”).text(“Nikmati Sensasi Bersantap 22 Sky Lounge Hotel Santika Premiere Hayam Wuruk”); } if(kmklabs.article.id.toString()==”3215448″ ){ $(“.read-page–header–title”).text(“Nikmati Sensasi Bersantap 22 Sky Lounge Hotel Santika Premiere Hayam Wuruk”); } if(kmklabs.article.id.toString()==”3229093″ ){ $(“.read-page–header–title”).text(“Terobosan Baru Ini Jadi Solusi Masalah Perempuan Saat Mencuci Pakaian”); } } /*** END of custom title for article ****/ /*** START of [#168945338] [#172369136] [Liputan6] Pasang Dable Desktop ****/ $(document).ready(function () { const excludeChannels = [‘hot’, ‘surabaya’]; const channelName = window.kmklabs.channel.full_slug; const pageType = window.kmklabs.pageType; const articleType = window.kmklabs.gtm.type; let isDableInserted = false; if (!excludeChannels.includes(channelName) && pageType === ‘ReadPage’ && articleType == “TextTypeArticle”) { window.addEventListener(“scroll”, function() { if ($(‘.relateds-slow__header’).length > 0 && isDableInserted === false) { $(”).insertAfter(‘.relateds-slow__header’); (function(d,a,b,l,e,_) { if(d[b]&&d[b].q)return;d[b]=function(){(d[b].q=d[b].q||[]).push(arguments)};e=a.createElement(l); e.async=1;e.charset=’utf-8′;e.src=’//static.dable.io/dist/plugin.min.js’; _=a.getElementsByTagName(l)[0];_.parentNode.insertBefore(e,_); })(window,document,’dable’,’script’); dable(‘renderWidget’, ‘dablewidget_BoxBAkl8’); isDableInserted = true; } }); } }); /*** END of [#168945338] [#172369136] [Liputan6] Pasang Dable Desktop ****/ /*** START of [171402059] [172853211] [Bug] Embed Kita Bisa – Desktop ****/ $(document).ready(function () { var gatewayIframe = document.querySelectorAll(“.gateway-donation-iframe”); var pageType = window.kmklabs.pageType; if (pageType === “ReadPage” && gatewayIframe.length > 0) { var isMultiplePage = window.kmklabs.article.isMultipage; var channelName = window.kmklabs.channel.full_slug; if (isMultiplePage && (channelName !== “hot” && channelName !== “surabaya”)) { window.addEventListener(“scroll”, function () { gatewayIframe.forEach(function (item) { var contentWindowIframe = item.contentWindow; item.height = contentWindowIframe.document.body.offsetHeight + 10 + “px”; }); }); } else if (channelName === “hot” || channelName === “surabaya”) { gatewayIframe.forEach(function (item) { var iframeSrc = item.src; var match = iframeSrc.match(/kitabisa/gateway/(d+)/); if (match) { var gatewayId = match[1]; } window.addEventListener( “message”, function (event) { var eventData = event.data; var messageName = “heightEmbedKitabisa-” + gatewayId; var heightEmbedKitabisa = eventData[messageName]; if (heightEmbedKitabisa != undefined) { item.height = heightEmbedKitabisa + 10 + “px”; } }, false ); }); } } }); /*** END of [171402059] [172853211] [Bug] Embed Kita Bisa – Desktop ****/ /*** START of [RAMADAN 2018] redirect tag populer to channel ****/ $(‘.tag-snippet__link[data-slug=”ramadan-2018″]’).attr(‘href’,’https://www.liputan6.com/ramadan’); /*** END of [RAMADAN 2018] redirect tag populer to channel ****/ /*** START of [#177802591] Penambahan Menu Quran ****/ $( “.navbar–menu–item:eq( 5 )” ).remove() $(‘
- `; } else if( i == 2 ) { columnHtml = `
-
- `; } else if( i == 3 ) { columnHtml = `
-
- `; } else if( i == 4 ) { columnHtml = `
-
- `; } else if( i == 5 ) { columnHtml = `
-
- `; } else if( i == 6 ) { columnHtml = `
-
- `; } else if( i == 7 ) { columnHtml = `
-
- `; } $(“.navbar–menu–item__more-sub-menu”).append(columnHtml); } $(“.navbar-mega-menu__column”).css({ ‘display’ : ‘block’, ‘width’ : ‘110px’, ‘float’ : ‘left’ }); $(“.navbar-mega-menu__column_ul”).css(“padding-left”,”0px”); for (var i = totalColumn ; i >= 1; i–) { if (i == 7) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(20)”).appendTo($(“.navbar-mega-menu__column_ul-col-seven”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(19)”).appendTo($(“.navbar-mega-menu__column_ul-col-seven”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(18)”).appendTo($(“.navbar-mega-menu__column_ul-col-seven”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-seven .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-seven .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 6) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(17)”).appendTo($(“.navbar-mega-menu__column_ul-col-six”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(16)”).appendTo($(“.navbar-mega-menu__column_ul-col-six”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(15)”).appendTo($(“.navbar-mega-menu__column_ul-col-six”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-six .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-six .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 5) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(14)”).appendTo($(“.navbar-mega-menu__column_ul-col-five”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(13)”).appendTo($(“.navbar-mega-menu__column_ul-col-five”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(12)”).appendTo($(“.navbar-mega-menu__column_ul-col-five”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-five .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-five .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 4) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(11)”).appendTo($(“.navbar-mega-menu__column_ul-col-four”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(10)”).appendTo($(“.navbar-mega-menu__column_ul-col-four”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(9)”).appendTo($(“.navbar-mega-menu__column_ul-col-four”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-four .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-four .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 3) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(8)”).appendTo($(“.navbar-mega-menu__column_ul-col-three”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(7)”).appendTo($(“.navbar-mega-menu__column_ul-col-three”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(6)”).appendTo($(“.navbar-mega-menu__column_ul-col-three”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-three .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-three .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 2) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(5)”).appendTo($(“.navbar-mega-menu__column_ul-col-two”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(4)”).appendTo($(“.navbar-mega-menu__column_ul-col-two”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(3)”).appendTo($(“.navbar-mega-menu__column_ul-col-two”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-two .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-two .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } else if (i == 1) { $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(2)”).appendTo($(“.navbar-mega-menu__column_ul-col-one”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(1)”).appendTo($(“.navbar-mega-menu__column_ul-col-one”)); $(“.navbar–menu–item__more-sub-menu .navbar–menu–item:eq(0)”).appendTo($(“.navbar-mega-menu__column_ul-col-one”)); var switch0 = $(“.navbar-mega-menu__column_ul-col-one .navbar–menu–item:eq(0)”); var switch2 = $(“.navbar-mega-menu__column_ul-col-one .navbar–menu–item:eq(2)”); switch0.after(switch2.clone()); switch2.after(switch0).remove(); } } $(“.navbar-mega-menu__column_ul .navbar–menu–item .navbar–menu–item__link”).css(“color”, “#000”); }); }); /*** END of [#177864396] Enhance Dropdown Menu Lainnya ****/ /*** START of [#162749673] [#165715785] [#174333545] Widget Pasang Widget visual stories, mobil otosia, widget bola.net ****/ $(document).ready(function () { (function () { const getLiveStreamingStatus = { ‘status’: {}, ‘isItActive’: function () { const klyLiveStreaming = document.querySelector(‘.live-streaming-kly-tv’) if (klyLiveStreaming) { this.status = true } else { this.status = false; } } } const appendVisualStoriesHandler = { ‘isShowOtosia’: function () { const channelName = window.kmklabs.channel.name || null; if (channelName === “Bisnis” || channelName === “Tekno”) { return true; } return false; }, ‘isChannelBola’: function () { const channelName = window.kmklabs.channel.name || null; if (channelName === “Bola”) { return true; } return false; }, ‘do’: function () { const pageType = window.kmklabs.pageType || null; const articleType = window.kmklabs.gtm.type || null; if ((pageType === “ChannelPage” || pageType === “ReadPage”) && articleType !== “PhotoGallery”) { const halfpage = $(‘#div-gpt-ad-liputan6-halfpage1’); const widgetVisualStories = `
-
-
-
-
-
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 adsCatList.find(alVal => alVal == val)); window.createCDPTracker(filteredCat, macro); */ window.createCDPTracker(adsCatList, macro); parent.window.open(dfpTracker, ‘_blank’); }; window.createCDPTracker = function(cat, macro) { var cName = ‘liputan6_id_visitor_id=’, cVisitorId = document.cookie.split(‘;’).find(v => { return v.match(cName);}), partnerUID = cVisitorId ? decodeURIComponent(cVisitorId).trim().replace(cName, ”) : 0, gamMacro = typeof macro === “string” ? JSON.parse(macro) : macro, defaultKey = { adunitId: “ads_adunit_id”, advertiserId: “ads_advertiser_id”, creativeId: “ads_creative_id”, lineitemId: “ads_lineitem_id”, orderId: “ads_order_id”, }; actionDetails = Object.keys(gamMacro).reduce((obj, k) => Object.assign(obj, defaultKey[k] ? { [defaultKey[k]]: gamMacro[k] } : { [k]: gamMacro[k] }), {}), cdpData = { action: actionDetails.action ? actionDetails.action : ‘ads_click’, action_category: cat, action_details: actionDetails.action ? (delete actionDetails.action,actionDetails=actionDetails) : actionDetails, visitor_id: partnerUID }; console.log(“%c DATA CDP : “, “color:#cad315; font-size:12px; font-weight: bold; -webkit-text-stroke: 1px black;”, cdpData); console.log(“%c PARTNER USER ID : “, “color:#cad315; font-size:12px; font-weight: bold; -webkit-text-stroke: 1px black;”, partnerUID); partnerUID ? window.VidioPersonalization.sendData(null, cdpData) : ”; }; googletag.cmd.push(function() { var urlPath = document.URL, isMatcont = false, /*INIT CONTENT FILTERING SCRIPT*/ blackListWords = new Array(‘matcont’, ‘aduhai’, ‘kelamin’, ‘vital’, ‘anal’, ‘belahan’, ‘bercinta’, ‘bergairah’, ‘gairah’, ‘intim’, ‘bikini’, ‘bokong’, ‘boob’, ‘bra’, ‘bugil’, ‘celana’, ‘ciuman’, ‘cleavage’, ‘dada’, ‘dewasa’, ‘diremas’, ‘doggie’, ‘ejakulasi’, ‘ereksi’, ‘erotis’, ‘foreplay’, ‘kiss’, ‘seks’, ‘gangbang’, ‘horny’, ‘hot’, ‘kamasutra’, ‘keperawanan’, ‘perawan’, ‘kondom’, ‘kontrasepsi’, ‘libido’, ‘lingerie’, ‘masturbasi’, ‘mature’, ‘menggairahkan’, ‘menggoda’, ‘mesra’, ‘miss-v’, ‘mr-p’, ‘nakal’, ‘naughty’, ‘nipple’, ‘nipples’, ‘onani’, ‘oral’, ‘oral seks’, ‘organ’, ‘orgasme’, ‘paha’, ‘pantat’, ‘panties’, ‘payudara’, ‘pelecehan’, ‘telanjang’, ‘penetrasi’, ‘penis’, ‘perkosa’, ‘perkosaan’, ‘pole’, ‘porno’, ‘pornoaksi’, ‘pornografi’, ‘telentang’, ‘provokatif’, ‘putting’, ‘ranjang’, ‘sex’, ‘penetratif’, ‘seksi’, ‘seksual’, ‘sensual’, ‘seronok’, ‘doll’, ‘toys’, ‘skandal’, ‘sperma’, ‘striptease’, ‘striptis’, ‘syur’, ‘terangsang’, ‘tiduri’, ‘topless’, ‘vagina’, ‘vibrator’, ‘lendir’, ‘prostitusi’, ‘homoseks’, ‘meraba-raba’, ‘mesum’, ‘memerkosa’, ‘rudapaksa’, ‘kemaluan’, ‘menewaskan’, ‘menewaskan orang’, ‘mengancam nyawa’, ‘meninggal’, ‘meninggal dunia’, ‘orang mati’, ‘orang tewas’, ‘pemakaman’, ‘petugas penyelamat’, ‘telah meninggal’, ‘terbunuh’, ‘tewas’, ‘tewaskan’, ‘tim penyelamat’, ‘wanita meninggal’, ‘autopsi’, ‘belasungkawa’, ‘bencana’, ‘bencana besar’, ‘bunuh orang’, ‘bunuh diri’, ‘darurat bencana’, ‘dilaporkan tewas’, ‘dimakamkan’, ‘dipastikan tewas’, ‘ditemukan mati’, ‘ditemukan tewas’, ‘hilangnya nyawa’, ‘identitas korban’, ‘inalillahi’, ‘jasad korban’, ‘jasadnya’, ‘jenasah wanita’, ‘jenazah’, ‘jenazah pria’, ‘jenazah teridentifikasi’, ‘jasad’, ‘kehilangan hidupnya’, ‘kehilangan nyawa’, ‘kehilangan nyawanya’, ‘kematian’, ‘korban’, ‘korban jiwa’, ‘korban meninggal’, ‘korban tewas’, ‘mati’, ‘mayat’, ‘mayat korban’, ‘membunuh’, ‘membunuh istrinya’, ‘membunuh mereka’, ‘membunuh suaminya’, ‘menemui ajal’, ‘mengalami koma’, ‘menghembuskan nafas terakhir’, ‘menimbulkan korban’, ‘meninggal akibat sakit’, ‘menyebabkan kematian’, ‘meregang nyawa’, ‘meregggut nyawa’, ‘modar’, ‘nyawa hilang’, ‘nyawa melayang’, ‘penyebab kematian’, ‘tak bernyawa’, ‘tak sadarkan diri’, ‘terkapar’, ‘tidak bernyawa’, ‘tutup usia’, ‘wafat’, ‘kematian virus’, ‘kematian wabah’, ‘korban terinfeksi’, ‘virus menyerang’, ‘merenggut nyawa’, ‘pelayat’, ‘hilangkan nyawa’, ‘renggut nyawa’, ‘wabah’, ‘keadaan kritis’, ‘kehilangan darah’, ‘merenggut jiwa’, ‘telan nyawa’, ‘menelan nyawa’, ‘memakan nyawa’, ‘dinyatakan meninggal’, ‘nyawa tak tertolong’, ‘penyakit’, ‘sakit pernapasan’, ‘sesak’, ‘korona’, ‘corona’, ‘odp’, ‘pdp’, ‘virus’, ‘rumah sakit’, ‘Covid-19’, ‘virus korona’, ‘positif korona’, ‘COVID-19’, ‘virus corona’, ‘terjangkit COVID-19’, ‘terinfeksi virus corona’), /* POPULATE META DATA KEYWORDS */ dfp_pageTitle = kmklabs.article && kmklabs.article.title.klyFiltering(‘ ‘), dfp_titles = (typeof dfp_pageTitle !== ‘undefined’) ? dfp_pageTitle : ”, dfp_pageKeywords = GAMLibrary.documentMeta(“keywords”), dfp_keyword = dfp_pageKeywords.klyFiltering(“,”), /* POPULATE META DATA DESC */ dfp_pageDesc = GAMLibrary.documentMeta(“description”), dfp_desc = dfp_pageDesc.klyFiltering(“,”), tagForAds = (typeof kmklabs !== ‘undefined’) ? kmklabs.gtm.tag.replace(/[^A-Za-z0-9|- ]/ig,””).klyFiltering(“|”) : “”, dfp_keywords = dfp_keyword.concat(dfp_titles, dfp_desc, tagForAds); /*MATURE CONTENT DEFINED VAR & SET TARGETTING*/ if (!blackListWords) { var blackListWords = new Array(‘matcont’); } /*search from keyword, desc & tag meta data*/ blackListWords = GAMLibrary.arrToLowerCase(blackListWords); dfp_keywords.forEach(function(sKeyword) { sKeyword = sKeyword.toLowerCase(); tagForAds.push(sKeyword); if (GAMLibrary.inArray(sKeyword, blackListWords)) { isMatcont = true; } }); /* DEFINE IMMERSIVE TAG – DO NOT CHANGE THE SLOT ORDER, IMMERSIVE ALWAYS ON THE 1st POSITION – */ var gam_immersive = googletag.defineOutOfPageSlot(GAMLibrary.gamImmersive, ‘div-gpt-ad-liputan6-immersive-oop’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/dfp-sc’, [[300, 250],[250, 250]], ‘div-gpt-ad-liputan6-sc’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/dfp-halfpage1’, [[300, 250],[300, 600],[160, 600]], ‘div-gpt-ad-liputan6-halfpage1’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/dfp-halfpage2’, [[300, 250],[300, 600],[160, 600]], ‘div-gpt-ad-liputan6-halfpage2’).addService(googletag.pubads()); googletag.defineSlot(‘/36504930/www.liputan6.com/dfp-lb’, [[970, 90],[728, 90],[970, 250]], ‘div-gpt-ad-liputan6-lb’).addService(googletag.pubads()).setTargeting(“leaderboard_type”, [‘direct’]); /*OUT OF PAGE SLOT*/ googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-balloon’, ‘div-gpt-ad-liputan6-balloon-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-contextual’, ‘div-gpt-ad-liputan6-contextual-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-headline1’, ‘div-gpt-ad-liputan6-dfp-headline1-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-headline2’, ‘div-gpt-ad-liputan6-dfp-headline2-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-headline3’, ‘div-gpt-ad-liputan6-dfp-headline3-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-inarticle’, ‘div-gpt-ad-liputan6-inarticle-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-middle’, ‘div-gpt-ad-liputan6-middle’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-popup’, ‘div-gpt-ad-liputan6-popup-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-newsTag1’, ‘div-gpt-ad-liputan6-newsTag1-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-newsTag2’, ‘div-gpt-ad-liputan6-newsTag2-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-crm-headline’, ‘div-gpt-ad-liputan6-crm-headline-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-crm-1’, ‘div-gpt-ad-liputan6-crm1-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-crm-2’, ‘div-gpt-ad-liputan6-crm2-oop’).addService(googletag.pubads()); googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-crm-3’, ‘div-gpt-ad-liputan6-crm3-oop’).addService(googletag.pubads()); googletag.pubads().addEventListener(‘slotRenderEnded’, function(event) { var dfp_slotElementId = event.slot.getSlotId().getDomId(); if (event.slot == gam_immersive) { if (event.isEmpty) { gam_billboard = googletag.defineOutOfPageSlot(GAMLibrary.dfpBillboard, ‘div-gpt-ad-liputan6-billboard-oop’).addService(googletag.pubads()); gam_topfrm = googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-topfrm’, ‘div-gpt-ad-liputan6-topfrm-oop’).addService(googletag.pubads()); gam_bottomfrm = googletag.defineSlot(‘/36504930/www.liputan6.com/dfp-bottomfrm’, [468, 60], ‘div-gpt-ad-liputan6-bottomfrm-oop’).addService(googletag.pubads()); googletag.display(‘div-gpt-ad-liputan6-billboard-oop’); googletag.display(‘div-gpt-ad-liputan6-topfrm-oop’); googletag.display(‘div-gpt-ad-liputan6-bottomfrm-oop’); if(!GAMLibrary.GAMisTablet){ gam_skinad = googletag.defineOutOfPageSlot(‘/36504930/www.liputan6.com/dfp-skinad’, ‘div-gpt-ad-liputan6-skinad-oop’).addService(googletag.pubads()); googletag.display(‘div-gpt-ad-liputan6-skinad-oop’); googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm, gam_skinad]); }else{ googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm]); } } } }); /* START TARGETING BLOCK */ if (isMatcont) { googletag.pubads().setTargeting(“isMatcont”, [“1”]);} if(typeof Krux !== “undefined”){ googletag.pubads().setTargeting(‘ksg’, Krux.segments); googletag.pubads().setTargeting(‘kuid’, Krux.user); } googletag.pubads().setTargeting(“tags”,tagForAds); googletag.pubads().setTargeting(“currentUrl”, urlPath); googletag.pubads().setTargeting(“type”, kmklabs.gtm.type); googletag.pubads().setTargeting(“pageType”, kmklabs.pageType); googletag.pubads().setTargeting(“channel”, kmklabs.gtm.subCategory); googletag.pubads().setTargeting(“audience”, kmklabs.gtm.audience.split(“|”)); googletag.pubads().setTargeting(“isAdvertorial”, typeof (isAdvertorial = kmklabs.article && kmklabs.article.isAdvertorial.toString()) === “undefined” ? “false” : isAdvertorial); googletag.pubads().setTargeting(“isMultipage”, typeof (isMultipage = kmklabs.article && kmklabs.article.isMultipage.toString()) === “undefined” ? “false” : isMultipage ); googletag.pubads().setTargeting(“articleId”, kmklabs.gtm.articleId.toString()); googletag.pubads().setTargeting(“site”, kmklabs.site); googletag.pubads().setTargeting(“age”, typeof (age = kmklabs.gtm.age) === “undefined” ? “false” : kmklabs.gtm.age.toString()); googletag.pubads().setTargeting(“gender”, typeof (gender = kmklabs.gtm.gender) === “undefined” ? “false” : kmklabs.gtm.gender.toString()); /* END TARGETING BLOCK */ /* SET VISITOR ID AS PUBLISHER PROVIDED ID – START*/ var cVisitorId = (visId = document.cookie.split(‘liputan6_id_visitor_id=’)[1]) ? visId.split(‘;’)[0].replace(/[^a-zA-Z0-9]/ig,”) : 0; cVisitorId ? googletag.pubads().setPublisherProvidedId(cVisitorId+’kly’) : ”; /* SET VISITOR ID AS PUBLISHER PROVIDED ID – END*/ googletag.pubads().setCentering(true); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-immersive-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-sc’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-halfpage1’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-halfpage2’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-lb’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-balloon-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-contextual-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-dfp-headline1-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-dfp-headline2-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-dfp-headline3-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-inarticle-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-middle’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-popup-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-newsTag1-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-newsTag2-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-crm-headline-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-crm1-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-crm2-oop’); }); googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-liputan6-crm3-oop’); }); ]]>
Leave a Reply