Berita Liburan Hari Ini


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 `

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



Source

Leave a Reply

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