Berita Liburan 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 [#169698767] [#169358088] Pasang Script Vidy with Custom Script – Desktop ****/ document.addEventListener(“DOMContentLoaded”, function(event) { jQuery.loadScript = function(url, callback) { jQuery.ajax({ url: url, dataType: “script”, success: callback, async: true }); }; if (typeof someObject == “undefined”) $.loadScript(“https://static.vidy.com/embed.min.js”, function() { const createElement = { appendScriptInitVidy() { const articleID = window.kmklabs.article.id; const sites = window.kmklabs.site; switch (sites) { case “liputan6”: appID = “52cc49f0-347c-4f47-9202-7b9745a4c724”; break; case “fimela”: appID = “104e55df-abfd-4183-9194-86435b1e7de1”; break; default: break; } const vidyScript = ` console.log(‘Page loaded’); let vidy = new Vidy({ appid: ‘${appID}’, postid: ‘${articleID}’, content: ‘.read-page-upper’, autoload: true }); ]]>>
`;
$(“head”).append(vidyScript);
},
scriptEmbedVidy() {
const scriptTag = document.createElement(“script”);
scriptTag.type = “text/javascript”;
scriptTag.dataset.cfasync = false;
scriptTag.src = “https://static.vidy.com/embed.min.js”;
document.head.appendChild(scriptTag);
}
};
if (window.kmklabs.pageType === “ReadPage”) {
createElement.scriptEmbedVidy();
createElement.appendScriptInitVidy();
}
});
}); /*** END of [#169698767] [#169358088] Pasang Script Vidy with Custom Script – 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 [#170021941] Skinning Content Promotion Sea Games 2019 – Desktop ****/ $(document).ready(function() {
const cssHandler = {
rawCss: function() {
const style = `
.content-promotion__seagames .content-promotion–stm__wrapper {
background-color: #2e328b;
border-radius: 8px;
background-image: url(“https://preview-kly.akamaized.net/seagames2019/content-promotion-sea-games-2019-background.png”);
background-repeat: no-repeat;
background-position: left bottom;
background-size: contain;
margin-top: 50px;
padding-bottom: 15px;
border-bottom: none;
}
.content-promotion__seagames .content-promotion–header-stm__link,
.content-promotion__seagames .content-promotion–header-stm__title {
height: 100%;
}
.content-promotion__seagames .content-promotion–header-stm__link-title {
color: transparent;
margin-top: 0;
}
.content-promotion__seagames .content-promotion–header-stm {
display: block;
background-image: url(“data:image/svg+xml,%3Csvg width=’97px’ height=’49px’ viewBox=’0 0 97 49′ version=’1.1′ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’%3E%3C!– Generator: sketchtool 58 (101010) – https://sketch.com –%3E%3Ctitle%3E3BB1D7B8-57C9-49CB-ABF5-7FA5A2871F1B%3C/title%3E%3Cdesc%3ECreated with sketchtool.%3C/desc%3E%3Cg id=’Page-1′ stroke=’none’ stroke-width=’1′ fill=’none’ fill-rule=’evenodd’%3E%3Cg id=’Skinning-Sea-Games-Liputan6-Desktop’ transform=’translate(-271.000000, -1070.000000)’ fill-rule=’nonzero’%3E%3Cg id=’SEA-GAMES-2019-+-Ikuti-Workshop-MoJo-+-Workshop-MoJo-Disabi-+-Workshop-MoJo-Disabi-+-Countdown-2-+-Group-3-+-20181130_194904-+-WEBSITE-BANNER2-+-Group-Mask’ transform=’translate(242.000000, 1055.000000)’%3E%3Cg id=’SEA-GAMES-2019′ transform=’translate(29.554400, 15.256801)’%3E%3Cpath d=’M-2.13162821e-14,8.34960033 C0.268800011,10.4664004 1.83120007,11.9112005 4.77120019,11.9112005 C7.82880031,11.9112005 9.42480037,10.4496004 9.42480037,8.34960033 C9.42480037,6.70320027 8.68560035,5.46000022 5.32560021,4.65360018 C3.44400014,4.23360017 2.95680012,3.89760015 2.95680012,3.09120012 C2.95680012,2.26800009 3.56160014,1.84800007 4.58640018,1.84800007 C6.08160024,1.84800007 6.46800026,2.6208001 6.60240026,3.34320013 L9.12240036,3.34320013 C8.95440036,1.64640007 7.72800031,-1.77635684e-14 4.65360018,-1.77635684e-14 C1.91520008,-1.77635684e-14 0.403200016,1.36080005 0.403200016,3.37680013 C0.403200016,4.89185474 1.12987332,6.02777545 4.05379991,6.76924371 L4.78320587,6.94580625 C6.40195609,7.35926045 6.87120027,7.77100831 6.87120027,8.65200034 C6.87120027,9.49200038 6.30000025,10.0296004 4.9560002,10.0296004 C3.61200014,10.0296004 2.78880011,9.50880038 2.5200001,8.34960033 L-2.13162821e-14,8.34960033 Z M19.4712008,4.68720019 L13.9272006,4.68720019 L13.9272006,2.21760009 L19.7064008,2.21760009 L19.7064008,0.168000007 L11.4912005,0.168000007 L11.4912005,11.7432005 L19.7400008,11.7432005 L20.0424008,9.69360039 L13.9272006,9.69360039 L13.9272006,6.75360027 L19.4712008,6.75360027 L19.4712008,4.68720019 Z M28.2744011,9.07200036 L29.2320012,11.7432005 L31.8696013,11.7432005 L27.7536011,0.168000007 L24.612001,0.168000007 L20.6808008,11.7432005 L23.1504009,11.7432005 L24.040801,9.07200036 L28.2744011,9.07200036 Z M27.7368011,7.02240028 L24.578401,7.02240028 L25.3732346,4.46250428 C25.6787354,3.46342514 25.929751,2.6082001 26.090401,1.96560008 L26.107201,1.96560008 L26.2603409,2.49939628 C26.5648033,3.52278795 27.04358,4.95688441 27.7368011,7.02240028 Z M47.5776019,5.25840021 L42.5880017,5.25840021 L42.5880017,7.30800029 L45.1248018,7.30800029 L45.1248018,7.4256003 C45.1248018,8.45040034 44.7216018,9.9456004 42.5880017,9.9456004 C40.2864016,9.9456004 39.5136016,7.98000032 39.5136016,5.98080024 C39.5136016,3.94800016 40.1856016,1.94880008 42.5712017,1.94880008 C44.2680018,1.94880008 44.8728018,2.87280011 45.1080018,3.64560014 L47.6112019,3.64560014 C47.3424019,1.68000007 45.5784018,-1.77635684e-14 42.6048017,-1.77635684e-14 C38.9592015,-1.77635684e-14 36.9264015,2.6208001 36.9264015,6.09840024 C36.9264015,9.39120037 38.8080015,11.9448005 42.1680017,11.9448005 C43.7808017,11.9448005 44.9064018,11.4744005 45.5448018,10.6008004 C45.5784018,10.9872004 45.6456018,11.3904005 45.7464018,11.7432005 L47.5776019,11.7432005 L47.5776019,5.25840021 Z M56.5152022,9.07200036 L57.4728023,11.7432005 L60.1104024,11.7432005 L55.9944022,0.168000007 L52.8528021,0.168000007 L48.9216019,11.7432005 L51.391202,11.7432005 L52.2816021,9.07200036 L56.5152022,9.07200036 Z M55.9776022,7.02240028 L52.8192021,7.02240028 L53.6140357,4.46250428 C53.9195365,3.46342514 54.1705522,2.6082001 54.3312022,1.96560008 L54.3480022,1.96560008 L54.501142,2.49939628 C54.8056044,3.52278795 55.2843811,4.95688441 55.9776022,7.02240028 Z M71.3832028,11.7432005 L73.8024029,11.7432005 L73.8024029,0.168000007 L70.2072028,0.168000007 L69.6650561,1.83721691 C68.8138742,4.49537161 67.9218027,7.4604003 67.6872027,8.70240035 L67.6704027,8.70240035 C67.3176027,6.98880028 66.3096026,3.19200013 65.4024026,0.168000007 L61.6728025,0.168000007 L61.6728025,11.7432005 L63.9576025,11.7432005 L63.9576025,7.5936003 C63.9576025,5.61120022 63.9072025,3.22560013 63.8064025,1.86480007 L63.8904025,1.86480007 L64.0368319,2.51432093 C64.5993054,4.9366278 65.661707,8.8441047 66.4440026,11.7432005 L68.5776027,11.7432005 L69.4437189,8.88880482 C70.2489011,6.20777492 70.9858463,3.64925232 71.3832028,1.89840008 L71.4672028,1.89840008 L71.4391132,2.78423051 C71.4047068,4.08576016 71.3832028,5.81952023 71.3832028,7.39200029 L71.3832028,11.7432005 Z M84.5376034,4.68720019 L78.9936031,4.68720019 L78.9936031,2.21760009 L84.7728034,2.21760009 L84.7728034,0.168000007 L76.557603,0.168000007 L76.557603,11.7432005 L84.8064034,11.7432005 L85.1088034,9.69360039 L78.9936031,9.69360039 L78.9936031,6.75360027 L84.5376034,6.75360027 L84.5376034,4.68720019 Z M86.1168034,8.34960033 L88.6368035,8.34960033 C88.9056035,9.50880038 89.7288036,10.0296004 91.0728036,10.0296004 C92.4168037,10.0296004 92.9880037,9.49200038 92.9880037,8.65200034 C92.9880037,7.77100831 92.5187595,7.35926045 90.9000093,6.94580625 L90.4512036,6.83760027 C87.2928035,6.09840024 86.5200034,4.9392002 86.5200034,3.37680013 C86.5200034,1.36080005 88.0320035,-1.77635684e-14 90.7704036,-1.77635684e-14 C93.8448037,-1.77635684e-14 95.0712038,1.64640007 95.2392038,3.34320013 L92.7192037,3.34320013 C92.5848037,2.6208001 92.1984037,1.84800007 90.7032036,1.84800007 C89.6784036,1.84800007 89.0736035,2.26800009 89.0736035,3.09120012 C89.0736035,3.89760015 89.5608036,4.23360017 91.4424036,4.65360018 C94.8024038,5.46000022 95.5416038,6.70320027 95.5416038,8.34960033 C95.5416038,10.4496004 93.9456037,11.9112005 90.8880036,11.9112005 C87.9480035,11.9112005 86.3856034,10.4664004 86.1168034,8.34960033 Z’ id=’SEAGAMES’ fill=’%23FFFFFF’%3E%3C/path%3E%3Cpath d=’M23.1732009,47.7432019 L24.015601,42.1740017 L9.41400037,42.1740017 C9.91320039,40.8125471 11.3805459,39.0990396 14.925537,36.5640753 L15.9527196,35.8359564 C21.0871883,32.1625388 22.8924009,30.0060012 22.8924009,25.700401 C22.8924009,21.1140008 20.1780008,16.3872007 12.2688005,16.3872007 C5.1552002,16.3872007 1.69200007,20.8332008 1.27080005,26.121601 L7.72920031,26.121601 C8.15040032,23.4540009 9.22680037,21.5820009 12.2688005,21.5820009 C14.8428006,21.5820009 16.1532006,23.0796009 16.1532006,25.747201 C16.1532006,28.2030868 15.0805149,29.3181155 11.6526636,31.865216 L10.4904004,32.7204013 C3.79800015,37.5876015 1.41120006,41.9400017 1.41120006,47.3220019 L1.41120006,47.7432019 L23.1732009,47.7432019 Z M39.3192016,16.3872007 C30.4740012,16.3872007 27.3852011,23.922001 27.3852011,32.3460013 C27.3852011,40.8636016 30.1464012,48.3048019 39.1788016,48.3048019 C48.2410863,48.3048019 50.9539782,40.8134321 51.0180336,32.4646163 L51.019202,32.1588013 C51.019202,23.4072009 47.9304019,16.3872007 39.3192016,16.3872007 Z M39.3192016,21.7224009 C43.3440017,21.7224009 44.0928018,26.215201 44.0928018,32.2056013 L44.0878604,33.131418 C44.0248138,38.7191348 43.310919,42.9696017 39.2724016,42.9696017 C34.9950428,42.9696017 34.2884935,38.0879887 34.2654013,32.5447394 L34.2648014,32.2524013 C34.2648014,25.606801 35.3880014,21.7224009 39.3192016,21.7224009 Z M67.4460027,47.7432019 L67.4460027,16.9020007 L62.6724025,16.9020007 C60.9408024,18.8676007 57.9924023,20.5056008 55.0440022,21.0672008 L55.0440022,26.074801 C56.5884022,25.934401 59.2092024,25.372801 60.6132024,24.717601 L60.6132024,47.7432019 L67.4460027,47.7432019 Z M73.8576029,40.1148016 C74.419203,43.9056017 77.3676031,48.3048019 84.5280034,48.3048019 C94.2156037,48.3048019 96.4152038,39.4128016 96.4152038,30.7548012 C96.4152038,23.1732009 93.4668037,16.4340007 84.7620034,16.4340007 C77.6016031,16.4340007 73.4364029,21.0204008 73.4364029,27.0576011 C73.4364029,32.6268013 77.0400031,36.9792015 83.4048033,36.9792015 C86.0724034,36.9792015 88.5528035,36.1836014 89.8164036,34.4052014 L89.7697181,35.1775478 C89.5405852,38.5628516 88.8446653,43.1100017 84.8088034,43.1100017 C82.2348033,43.1100017 81.1584032,41.9400017 80.5500032,40.1148016 L73.8576029,40.1148016 Z M84.8088034,21.6288009 C88.6464035,21.6288009 89.4888036,24.811201 89.4888036,26.8704011 C89.4888036,30.2868012 87.8508035,31.7844013 84.9024034,31.7844013 C82.0008033,31.7844013 80.1756032,29.8656012 80.1756032,26.7300011 C80.1756032,23.8752009 81.7200032,21.6288009 84.8088034,21.6288009 Z’ id=’2019′ fill=’%23FDC109’%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E”);
background-repeat: no-repeat;
background-size: 97px 49px;
width: 97px;
height: 49px;
position: absolute;
top: 15px;
left: 30px;
padding: 0;
}
.content-promotion__seagames .content-promotion–stm__slider.slick-initialized.slick-slider {
margin-left: 150px;
padding-top: 45px;
}
.content-promotion__seagames .content-promotion–stm__thumbnail img {
width: 180px;
height: 102px;
}
.content-promotion__seagames .content-promotion–stm__item {
width: 180px;
}
.content-promotion__seagames .content-promotion–stm__caption {
font-family: AcuminPro;
font-size: 14px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
line-height: 1.29;
letter-spacing: normal;
color: #ffffff;
height: 55px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.content-promotion__seagames .content-promotion–stm__icon-left {
left: unset;
right: 45px;
top: 10px;
}
.content-promotion__seagames .content-promotion–stm__icon-right {
right: 10px;
top: 10px;
}
.content-promotion__seagames .content-promotion–stm__icon-left, .content-promotion–stm__icon-right {
background-color: #ef4600;
border-radius: 100%;
background-size: 23px 23px;
height: 23px;
width: 23px;
}
.content-promotion__seagames .i-sl-left-circle {
background-image: url(“data:image/svg+xml,%3Csvg xmlns=’http://www.w3.org/2000/svg’ width=’6′ height=’9′ viewBox=’0 0 6 9’%3E%3Cpath fill=’%23FEC000′ fill-rule=’evenodd’ d=’M5.332.41l.058.06a.75.75 0 0 1-.077 1.103L2.013 4.2l3.3 2.627A.75.75 0 0 1 5.39 7.93l-.058.06a.8.8 0 0 1-1.079.076L.287 4.907a.75.75 0 0 1-.273-.704.752.752 0 0 1 .273-.71L4.253.334A.8.8 0 0 1 5.332.41z’/%3E%3C/svg%3E”);
background-size: 6px 9px;
background-repeat: no-repeat;
background-position: center;
}
.content-promotion__seagames .i-sl-right-circle {
background-image: url(“data:image/svg+xml,%0A%3Csvg xmlns=’http://www.w3.org/2000/svg’ width=’6′ height=’9′ viewBox=’0 0 6 9’%3E%3Cpath fill=’%23FEC000′ fill-rule=’evenodd’ d=’M.268 7.99L.21 7.93a.75.75 0 0 1 .077-1.103l3.3-2.627-3.3-2.627A.75.75 0 0 1 .21.47L.268.41A.8.8 0 0 1 1.347.333l3.966 3.159a.75.75 0 0 1 .273.704.752.752 0 0 1-.273.71L1.347 8.066A.8.8 0 0 1 .268 7.99z’/%3E%3C/svg%3E%0A”);
background-size: 6px 9px;
background-repeat: no-repeat;
background-position: center;
}
.content-promotion–stm__thumbnail {
border-radius: 7.2px;
}
`;
return style;
},
cssAppend: function() {
const styleSheet = document.createElement(“style”);
styleSheet.type = “text/css”;
styleSheet.innerText = this.rawCss();
document.head.appendChild(styleSheet);
}
};
$(“.content-promotion”).each(function() {
cpSeaGames = $(this).find(
‘.content-promotion–header-stm__link[title=”SEA GAMES 2019″]’
);
if (cpSeaGames.length > 0) {
$(this).addClass(“content-promotion__seagames”);
cssHandler.cssAppend();
}
});
}); /*** END of [#170021941] Skinning Content Promotion Sea Games 2019 – 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 [#171015803] [Lip6] Pasang Content Buzzer Cek Fakta desktop ****/ window.addEventListener(‘DOMContentLoaded’, function () {
(function () {
const appendContentBuzzerCekFakta = {
‘do’: function () {
const rawHTML = `
`; const widgetOtosiaAndBolanet = `
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