CINXE.COM

Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco

<!DOCTYPE html> <html lang="en"> <head> <script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({ "content_id": "271058247", "content_site": "Kompas.com", "content_site_id": "27", "content_category": "Travel", "content_subcategory": "Food Story", "content_location": "Grobogan", "content_author": "Kontributor Grobogan, Puthut Dwi Putranto Nugroho", "content_aid1": "1212", "content_aid2": "", "content_aid3": "", "content_editor": "Ni Luh Made Pertiwi F", "content_eid": "", "content_lipsus": "", "content_lipsus_id": "", "content_sensi": "", "content_type": "Standard", "content_PublishedDate": "2017-04-25 06:03:00", "content_Month_PubDate": "04", "content_Year_PubDate": "2017", "content_Date_PubDate": "25", "content_source": "", "content_tag": "swike", "content_title": "Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco - Kompas.com", "content_tags": "swike, Kota Swike", "content_total_words": 633, "content_autopaging": true, "content_total_pages": 1, "content_current_page": 1 });</script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PT7PC4');</script> <!-- End Google Tag Manager --> <title>Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco</title> <link href="//securepubads.g.doubleclick.net" rel="dns-prefetch"> <link href="//asset.kompas.com" rel="dns-prefetch"> <link href="//adsimg.kompas.com" rel="dns-prefetch"> <link href="//tpc.googlesyndication.com" rel="dns-prefetch"> <link href="//cm.g.doubleclick.net" rel="dns-prefetch"> <link href="//apis.kompas.com" rel="dns-prefetch"><meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width"> <meta name="description" content="Purwodadi sudah sejak lama mengantongi jargon sebagai 'Kota Swike'. "> <meta name="keywords" content="swike, Kota Swike, , swike, makanan dari kodok, kuliner khas Purwodadi, kuliner jawa tengah, kota swike , "> <meta name="googlebot-news" content="index, follow" /> <meta name="googlebot" content="index, follow" /> <meta name="author" content="Kompas Cyber Media"> <meta name="robots" content="index, follow" /> <meta name="robots" content="max-image-preview:large"> <meta name="language" content="id" /> <meta name="geo.country" content="id" /> <meta http-equiv="content-language" content="In-Id" /> <meta name="geo.placename" content="Indonesia" /> <!-- S:fb meta --> <meta property="og:type" content="article" /> <meta property="og:image" content="https://asset.kompas.com/crops/sTcrBz3a1dk2eXAQHPRL67cbUaM=/0x76:1000x576/780x390/filters:watermark(data/photo/2020/03/10/5e6775cf5d848.png,0,-0,1)/data/photo/2017/04/24/2135893990.jpg" /> <meta property="og:title" content="Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco" /> <meta property="og:description" content="Purwodadi sudah sejak lama mengantongi jargon sebagai 'Kota Swike'. "> <meta property="og:url" content="https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" /> <meta property="og:site_name" content="KOMPAS.com" /> <meta property="fb:app_id" content="324557847592228" /> <!-- e:fb meta --> <!-- S:tweeter card --> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@kompascom" /> <meta name="twitter:creator" content="@kompascom"> <meta name="twitter:title" content="Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco" /> <meta name="twitter:description" content="Purwodadi sudah sejak lama mengantongi jargon sebagai 'Kota Swike'. " /> <meta name="twitter:image" content="https://asset.kompas.com/crops/sTcrBz3a1dk2eXAQHPRL67cbUaM=/0x76:1000x576/780x390/filters:watermark(data/photo/2020/03/10/5e6775cf5d848.png,0,-0,1)/data/photo/2017/04/24/2135893990.jpg" /> <!-- E:tweeter card --> <meta name="content_category" content="Travel" /> <meta name="content_subcategory" content="Food Story" /> <meta name="content_location" content="Grobogan" /> <meta name="content_author_id" content="1212" /> <meta name="content_author" content="Kontributor Grobogan, Puthut Dwi Putranto Nugroho" /> <meta name="content_editor_id" content="" /> <meta name="content_editor" content="Ni Luh Made Pertiwi F" /> <meta name="content_lipsus" content="" /> <meta name="content_lipsus_id" content="" /> <meta name="content_sensi" content="" /> <meta name="content_type" content="Standard" /> <meta name="content_PublishedDate" content="2017-04-25 06:03:00" /> <meta property="article:published_time" content="2017-04-24T23:03:00+00:00" /> <meta name="content_source" content="" /> <meta name="content_tag" content="swike" /> <meta name="content_tags" content="swike, Kota Swike" /> <meta name="content_total_words" content="633" /> <meta name="subscription" content="False" /> <meta name="lestari_sdgs" content="" /> <meta name="content_total_pages" content="1" /> <meta name="content_current_page" content="1" /> <link rel="preload" as="image" href="https://asset.kompas.com/crop/0x76:1000x576/780x390/data/photo/2017/04/24/2135893990.jpg"> <link rel="preload" href="https://securepubads.g.doubleclick.net/tag/js/gpt.js" as="script"> <link rel="canonical" href="https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" /> <link rel="dns-prefetch" href="twitter.com"> <link rel="shortcut icon" href="https://asset.kompas.com/data/2017/wp/images/favicon2017.ico"> <link rel="stylesheet" href="https://asset.kompas.com/data/2024/11/05/kompascom/desktop/css/kcm2017-article.min.css" type="text/css"> <link rel="stylesheet" href="https://asset.kompas.com/data/2024/01/12/15/kompascom/desktop/css/kcm2017-iconpack-article.min.css" type="text/css"> <link rel="stylesheet" href="https://asset.kompas.com/data/2024/10/09/css/kgm-verify.min.css" type="text/css"> <link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:200,300,700|Roboto:300,300i,400,400i,500,700,700i" as="style"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:200,300,700|Roboto:300,300i,400,400i,500,700,700i"> <link rel="preconnect" href="https://scripts.jixie.media"/> <script src="https://asset.kompas.com/data/2017/wp/js/jquery-1.12.0.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/modernizr.custom.js"></script> <link rel="preconnect" href="https://scripts.jixie.media"/> <script type="text/javascript"> window.jixie_o = { accountid: "9262bf2590d558736cac4fff7978fcb1", partner_cookie: 'kmps_usrid', external_ids: ['tdid','tdid2','jxtoko','ifo'], sha256mail_cookie:'usermail', ad_blocker: true, logbids: true, userprofile: true, sha256ph_cookie:'kmps_uphn', }; </script> <script async src="https://scripts.jixie.media/jxpublisher_3_1.min.js"></script> <script type="text/javascript"> var keyword_data = "swike, Kota Swike, , swike, makanan dari kodok, kuliner khas Purwodadi, kuliner jawa tengah, kota swike , " var array_keywords = keyword_data.split(","); window.jixie_p = window.jixie_p || []; window.jixie_p.push({ action: "visit", parameters:{ itemid:"20170425060300827", keywords:array_keywords, title:"Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco", description: "Purwodadi sudah sejak lama mengantongi jargon sebagai 'Kota Swike'.", category: "Travel" } }); </script> <script> var keywordBrandSafety = "GROBOGAN, KOMPAS.com - Di Kabupaten Grobogan, Jawa Tengah khususnya di Kecamatan Purwodadi, kodok menjelma menjadi makanan khas yang digandrungi oleh masyarakat di sana. Mereka menyebutnya Swike. Hidangan ini dipercaya berasal dari pengaruh masakan Tionghoa yang masuk ke Indonesia. Tekstur daging kodok dianggap serupa daging ayam. Bagi telinga warga pada umumnya, Purwodadi sudah sejak lama mengantongi jargon sebagai &quot;Kota Swike&quot;. Kodok hijau yang habitatnya di persawahan itu, diracik dengan bumbu tradisional menjadi makanan yang kesohor di kalangan para pecandunya. Masakan berkuah layaknya sup yang konon merupakan perpaduan ramuan dari Tionghoa dan lokal ini sangat mengakar kuat di Kabupaten Grobogan terutama di Kota Purwodadi.&amp;nbsp; Luar biasa mudahnya menemukan warung makan swike di Purwodadi. Di sejumlah titik pusat kota hingga perdesaan, ada banyak warga yang menjajakan masakan yang mengandalkan bahan dasar tauco itu. Seperti halnya rumah makan &quot;Swike Asli Purwodadi&quot; atau lebih getol dengan sebutan swike 'Cik Ping' yang tak lain adalah nama pemilik rumah makan ini. Tempat makan yang setiap harinya ramai dikunjungi para penikmat kodok itu berlokasi di Jalan Kolonel Sugiono, Kecamatan Purwodadi, Grobogan. Rumah makan lintas generasi ini diklaim sudah ada sejak tahun 1901. Untuk menunjukkan eksistensinya, pengelola pun menuliskan tahun perdana mereka berdiri pada baliho yang terpampang di depan rumah makan sederhana tersebut. Bukan perkara mudah, rumah makan 'Cik Ping' telah bertahan lebih dari seabad. Selain warga Grobogan, tercatat pula warga luar kota acap kali menyempatkan diri mampir di rumah makan ini. Sampai-sampai, sederet artis kenamaan seperti Robby Sugara, Inul Daratista, Didi Kempot dan petinju Cris John pernah turut menyambanginya. Terpajang foto-foto orang terkenal di tembok rumah makan bernuasa asri itu. Shanty Tjandra Wati&amp;nbsp; (54) atau akrab disapa Cik Ping, menuturkan, awal mulanya, sebelum tahun 1900, generasi pertama sesepuhnya itu berdagang swike dengan berkeliling berjalan kaki mengangkat pikulan di wilayah Purwodadi. Hingga akhirnya nasib baik menghantarkan leluhurnya bernama Kong Giring itu untuk berjualan swike dengan mangkal di rumah yang saat ini menjadi rumah makan 'Cik Ping'. &quot;Untuk mengenangnya, pikulan itu masih dipergunakan di warung. Kami adalah generasi kelima. Kami buka cabang di Jalan Imam Bonjol, Semarang sejak 1997 dan di Jalan Diponegoro, Yogyakarta sejak 40 tahun lalu,&quot; terang Cik Ping kepada Kompas.com, Minggu (23/4/2017) sore. Reputasi rumah makan 'Cik Ping' yang menyajikan panganan kodok hijau di Purwodadi bukan isapan jempol belaka. Dalam kurun sehari, rumah makan yang berada di jantung kota Purwodadi ini bisa menghabiskan 50 kilogram paha kodok hijau yang telah diramu. Bahan utama hidangan ini adalah kaki kodok dengan dibumbui jahe, bawang putih, garam, lada dan tauco. Swike dihidangkan dengan perasan jeruk nipis, taburan bawang putih goreng, dan daun seledri. Agar lebih lengkap, swike biasanya dinikmati dengan nasi putih. Hal istimewa dari swike olahan Cik Ping adalah kekuatan kuahnya serta meresapnya bumbu pada daging kodok. Cik Ping menyisipkan ramuan rahasia dalam menciptakan tauco sebagai bahan dasar membuat swike. Tauco sendiri merupakan hasil fermentasi kedelai hitam atau kuning dan penambahan larutan garam. &quot;Swike kami istimewa pada tauconya. Kami juga memilih kecap yang berkualitas untuk memadukan rasa manis pada kuah. Untuk yang berselera pedas, kami sediakan ulek'an cabai,&quot; pungkas Cik Ping. Harganya cukup terjangkau menyesuaikan rasa lezatnya. Swike kuah dihargai Rp 20.000 per porsi. Ada pula pepes berisi telur, jeroan dan daging kodok berbalut daun pisang dijual Rp 10.000 per bungkus. Kodok goreng tepung atau mentega Rp 25.000 per porsi. Tongseng dan rica kodok Rp 25.000 per porsi serta Rambak atau kerupuk kulit kodok Rp 4.000 sebungkus. &quot;Enak banget olahan kodok di sini terutama swike kuahnya. Bumbu yang disajikan meresap ke dalam daging kodok dan kuahnya enak. Perpaduan, manis, asam, asin dan pedas. Saya bersama keluarga dan teman-teman sering jajan di sini. Pokoknya nendang di lidah mas,&quot; kata Cahya Wandita Kusuma (28), seorang pengunjung, warga Jagalan, Purwodadi. Simak breaking news dan berita pilihan kami langsung di ponselmu. Pilih saluran andalanmu akses berita Kompas.com WhatsApp Channel : https://www.whatsapp.com/channel/0029VaFPbedBPzjZrk13HO3D. Pastikan kamu sudah install aplikasi WhatsApp ya."; </script> <!-- Start Ad Blocking Recovery Message --> <script async src="https://fundingchoicesmessages.google.com/i/pub-9012468469771973?ers=1" nonce="IOvmxAasolBKwB_qzaJVMg"></script><script nonce="IOvmxAasolBKwB_qzaJVMg">(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();</script> <!-- Endof Ad Blocking Recovery Message --><!-- Start: GPT Async --> <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> <!--jixie prebid tracker start--> <script type="text/javascript"> window.pbjs=window.pbjs||{},pbjs.que=pbjs.que||[],pbjs.que.push(function(){window._jxbidsq=window._jxbidsq||[],pbjs.onEvent("auctionInit",function(n){_jxbidsq.push(["auctionInit",n])}),pbjs.onEvent("auctionEnd",function(n){_jxbidsq.push(["auctionEnd",n])}),pbjs.onEvent("bidWon",function(n){_jxbidsq.push(["bidWon",n])}),pbjs.onEvent("bidTimeout",function(n){_jxbidsq.push(["bidTimeout",n])}),pbjs.onEvent("bidRequested",function(n){_jxbidsq.push(["bidRequested",n])}),pbjs.onEvent("setTargeting",function(n){_jxbidsq.push(["setTargeting",n])}),pbjs.onEvent("bidResponse",function(n){_jxbidsq.push(["bidResponse",n])})}),window.googletag=window.googletag||{cmd:[]},googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(n){_jxbidsq.push(["slotRenderEnded",n])}),googletag.pubads().addEventListener("impressionViewable",function(n){_jxbidsq.push(["impressionViewable",n])})}); </script> <!--jixie prebid tracker end--> <script async src="https://adsimg.kompas.com/html5/prebid/kompas/prebid9.16.0r.js"></script> <script type="text/javascript"> function getCookieUid(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1);} if(c.indexOf(name)==0){return c.substring(name.length,c.length);}} return"";} var uuid__=getCookieUid("_jxtdid"); window.getUid2AdvertisingToken = async () => { var id; if (typeof window.jxGetUid2 == 'function') { id = await window.jxGetUid2(); } else { id = getCookieUid('__uid2_advertising_token', null); } return id; } var PREBID_TIMEOUT=2e3,FAILSAFE_TIMEOUT=3e3,HB_TIMEOUT=1e3,adUnits=[{code:"div-gpt-ad-Top_1-1",ortb2Imp:{ext:{gpid:"1000008-EIftKYAWdx",data:{pbadslot:"1000008-EIftKYAWdx"}}},mediaTypes:{banner:{sizes:[[728,90],[970,90],[970,250]]}},bids:[{bidder:"kargo",params:{placementId:"_kGDB9vTtyF"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[728,90]}},{bidder:"ix",params:{siteId:449983,size:[970,90]}},{bidder:"ix",params:{siteId:449983,size:[970,250]}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"96602",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-EIftKYAWdx"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_970x250"}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484332}},{bidder:"gumgum",params:{zone:"o4idpqq7",slot:986382}},{bidder:"gumgum",params:{zone:"o4idpqq7",slot:986383}},{bidder:"gumgum",params:{zone:"o4idpqq7",slot:986384}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"57e032c6-38f9-40b0-98c5-e31378a7bd88"}}]},{code:"div-gpt-ad-Giant",ortb2Imp:{ext:{gpid:"1000008-eLIsfXaJKT",data:{pbadslot:"1000008-eLIsfXaJKT"}}},mediaTypes:{banner:{sizes:[[300,600],[300,250]]},video:{context:"outstream",playerSize:[300,250],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},bids:[{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,600]}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_1"}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93799",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-eLIsfXaJKT"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484334}},{bidder:"gumgum",params:{zone:"o4idpqq8",slot:986385}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"7b9642cc-1770-402b-a101-9d8996fe7724"}}]},{code:"div-gpt-ad-Right_3",ortb2Imp:{ext:{gpid:"1000008-xcBkzfm9sk",data:{pbadslot:"1000008-xcBkzfm9sk"}}},mediaTypes:{banner:{sizes:[[300,250]]},video:{context:"outstream",playerSize:[300,250],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},bids:[{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"openx",params:{unit:"540782264",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,250]}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_2"}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93800",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-xcBkzfm9sk"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484336}},{bidder:"gumgum",params:{zone:"o4idpqq9",slot:986386}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484336}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"9d4e1284-fcf4-4b63-bdb6-50f136a98b13"}},{bidder:"ix",params:{siteId:449983,size:[300,250],video:{context:"outstream",playerSize:[300,250],mimes:["video/mp4","video/webm","applications/javascript"],protocols:[2,3,5,6],api:[2,7],playbackmethod:[6],skip:1,w:300,h:250,minduration:5,maxduration:60,delivery:[2],linearity:1}}}]},{code:"div-gpt-ad-Right_4",ortb2Imp:{ext:{gpid:"1000008-O3cqWflq2S",data:{pbadslot:"1000008-O3cqWflq2S"}}},mediaTypes:{banner:{sizes:[[300,250]]},video:{context:"outstream",playerSize:[300,250],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},bids:[{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,250]}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93800",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-O3cqWflq2S"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_2"}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484338}},{bidder:"gumgum",params:{zone:"o4idpqq10",slot:986387}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"07e5c539-9255-46dc-8789-979460152db4"}}]},{code:"div-gpt-ad-Right_5",ortb2Imp:{ext:{gpid:"1000008-olHKAR4nCE",data:{pbadslot:"1000008-olHKAR4nCE"}}},mediaTypes:{banner:{sizes:[[300,250]]},video:{context:"outstream",playerSize:[300,250],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},bids:[{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,250]}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93800",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-olHKAR4nCE"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_2"}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484340}},{bidder:"gumgum",params:{zone:"o4idpqq11",slot:986388}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"92b8aba2-6d19-4dc2-8988-e76f09e0d82c"}}]},{code:"div-gpt-ad-Skin_Left",ortb2Imp:{ext:{gpid:"1000008-z5ebaX9aVC",data:{pbadslot:"1000008-z5ebaX9aVC"}}},mediaTypes:{banner:{sizes:[[100,650],[100,550]]}},bids:[{bidder:"openx",params:{unit:"559086528",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:980352,size:[100,650]}},{bidder:"ix",params:{siteId:980352,size:[100,550]}},{bidder:"jixie",params:{unit:"1000008-z5ebaX9aVC"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:478004,zoneId:2838618}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"f6d5bf9d-8c31-404e-afae-acb95645f56d"}}]},{code:"div-gpt-ad-Skin_Right",ortb2Imp:{ext:{gpid:"1000008-jL7PEcvKLc",data:{pbadslot:"1000008-jL7PEcvKLc"}}},mediaTypes:{banner:{sizes:[[100,650],[100,550]]}},bids:[{bidder:"openx",params:{unit:"559086532",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:980353,size:[100,650]}},{bidder:"ix",params:{siteId:980353,size:[100,550]}},{bidder:"jixie",params:{unit:"1000008-jL7PEcvKLc"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:478006,zoneId:2838620}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"f608f5e6-f157-4c66-b60e-e4a328ce3ab6"}}]},{code:"div-gpt-ad-Horizontal_Ad",ortb2Imp:{ext:{gpid:"1000008-9gpvwZPpkd",data:{pbadslot:"1000008-9gpvwZPpkd"}}},mediaTypes:{banner:{sizes:[[468,60],[1100,50]]}},bids:[{bidder:"kargo",params:{placementId:"_jkQklh8wPV"}},{bidder:"openx",params:{unit:"559086526",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[468,60]}},{bidder:"ix",params:{siteId:449983,size:[1100,50]}},{bidder:"jixie",params:{unit:"1000008-9gpvwZPpkd"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:478002,zoneId:2838616}},{bidder:"gumgum",params:{zone:"o4idpqq15",slot:986390}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"3659dda0-8c94-40f5-9f5f-e12d4526ad38"}}]},{code:"div-gpt-ad-Skyscraper",ortb2Imp:{ext:{gpid:"1000008-gPQXfLjNet",data:{pbadslot:"1000008-gPQXfLjNet"}}},mediaTypes:{banner:{sizes:[[120,600],[160,600]]}},bids:[{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[120,600]}},{bidder:"ix",params:{siteId:449983,size:[160,600]}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"96680",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-gPQXfLjNet"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_2"}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484342}},{bidder:"gumgum",params:{zone:"o4idpqq12",slot:986389}}, {bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"15b951a5-81cc-4533-ac1d-2888b8ca0b0c"}}]},{code:"div-gpt-ad-Zone_OSM",mediaTypes:{banner:{sizes:[[300,250],[1,1]]},video:{context:"outstream",playerSize:[300,250],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},bids:[{bidder:"teads",params:{placementId:165952,pageId:151713}},{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,250]}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93800",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-O3cqWflq2S"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_2"}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484338}},{bidder:"gumgum",params:{zone:"o4idpqq10",slot:986387}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"07e5c539-9255-46dc-8789-979460152db4"}}]},{code:"gpt_unit_/31800665/KOMPAS.COM/travel/vignette_0",mediaTypes:{banner:{sizes:[[300,250],[320,480],[336,280]]},video:{context:"outstream",playerSize:[[300,250],[320,480],[336,280]],api:[1,2],protocols:[2,3,5,6],minduration:5,maxduration:30,mimes:["video/mp4","application/javascript"],placement:2,linearity:1,delivery:[1,2],plcmt:4}},ortb2Imp:{instl:1},bids:[{bidder:"kargo",params:{placementId:"_blRlCURcHY"}},{bidder:"openx",params:{unit:"540782269",delDomain:"kompascybermedia-d.openx.net"}},{bidder:"ix",params:{siteId:449983,size:[300,600]}},{bidder:"triplelift",params:{inventoryCode:"kg_kompas_desktop_article_imu_1"}},{bidder:"smartadserver",params:{networkId:"3727",siteId:"363578",pageId:"1293724",formatId:"93799",domain:"https://prg8.smartadserver.com"}},{bidder:"jixie",params:{unit:"1000008-eLIsfXaJKT"}},{bidder:"teads",params:{placementId:165951,pageId:151712}},{bidder:"rubicon",params:{accountId:11834,siteId:434086,zoneId:2484334}},{bidder:"gumgum",params:{zone:"o4idpqq8",slot:986385}},{bidder:"smilewanted",params:{zoneId:"kgmedia.id_hb_display_1"}},{bidder:"oms",params:{publisherId:"20739"}},{bidder:"pstudio",params:{pubid:"9e680c92-bdf1-41b0-a7f7-281d394574df",adtagid:"7b9642cc-1770-402b-a101-9d8996fe7724"}}]}],gptadslots=[],googletag=googletag||{};(googletag.cmd=googletag.cmd||[]),googletag.cmd.push(function(){googletag.pubads().disableInitialLoad()});var pbjs=pbjs||{};function initAdserver(){pbjs.initAdserverSet||((pbjs.initAdserverSet=!0),googletag.cmd.push(function(){pbjs.que.push(function(){pbjs.setTargetingForGPTAsync(),googletag.pubads().refresh()})}))}(pbjs.que=pbjs.que||[]),pbjs.que.push(function(){pbjs.mergeConfig({jixie:{genids:[{id:"esha",ck:"usermail"},{id:"psha",ck:"kmps_uphn"},{id:"_jxtoko"},{id:"_jxifo"}]}}),pbjs.setConfig({enableSendAllBids:!0,enableTIDs:!0,priceGranularity:"high",userSync:{userIds:[{name:"uid2"},{name:"unifiedId",value:{tdid:uuid__}}],filterSettings:{iframe:{bidders:'*',filter:'include'},image:{bidders:'*',filter:'include'}}},currency:{adServerCurrency:"USD"},syncsPerBidder:0}),(pbjs.bidderSettings={standard:{storageAllowed:!0}}),pbjs.addAdUnits(adUnits),pbjs.requestBids({bidsBackHandler:initAdserver,timeout:PREBID_TIMEOUT})}),setTimeout(function(){initAdserver()},FAILSAFE_TIMEOUT); </script> <script type="text/javascript"> googletag.cmd.push(function() { gptadslots[1]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[728, 90], [970, 90], [970, 250], [360, 100], [360, 150], [384, 100], [393, 100]],'div-gpt-ad-Top_1-1').setTargeting('Pos',['Top_1']).setTargeting('kg_pos', ['top_1']).addService(googletag.pubads());gptadslots[112]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[300,600],[300,250],[160,600]],'div-gpt-ad-Giant').setTargeting('Pos',['Giant']).setTargeting('kg_pos', ['giant']).addService(googletag.pubads());gptadslots[31]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[300,250],[300,600]],'div-gpt-ad-Right_3').setTargeting('Pos',['Right_3']).setTargeting('kg_pos', ['right_3']).addService(googletag.pubads());gptadslots[41]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[300,250],[300,600]],'div-gpt-ad-Right_4').setTargeting('Pos',['Right_4']).setTargeting('kg_pos', ['right_4']).addService(googletag.pubads());gptadslots[9]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[468,60],[728,90],[970,90],[1100,50],[1100,150]],'div-gpt-ad-Horizontal_Ad').setTargeting('Pos',['Horizontal_Ad']).setTargeting('kg_pos', ['horizontal_ad']).addService(googletag.pubads());gptadslots[0] = googletag.defineOutOfPageSlot('/31800665/KOMPAS.COM/travel', 'div-gpt-ad-162839915433418391-oop').setTargeting('Pos',['Overlay']).setTargeting('kg_pos', ['overlay']).addService(googletag.pubads());gptadslots[10]= googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[120,600],[160,600]],'div-gpt-ad-Skyscraper').setTargeting('Pos',['Skyscraper']).setTargeting('kg_pos', ['skyscraper']).addService(googletag.pubads());gptadslots[4112]= googletag.defineOutOfPageSlot('/31800665/KOMPAS.COM/travel','div-gpt-ad-974648810682144181-4112').setTargeting('Pos',['native_banner_article']).setTargeting('kg_pos', ['native_banner_article']).addService(googletag.pubads());setContextualTargeting(); if(typeof keywordBrandSafety === 'undefined'){ console.log("no article keywords"); }else{ console.log("execute keywords"); setKeywordTargeting(); } function setContextualTargeting() { dfp_keywords = getKeywords(); console.log(dfp_keywords); googletag.pubads().setTargeting('contextual_targeting', dfp_keywords); } function getKeywords(){ var metas = document.getElementsByTagName('meta'); var str = (metas.namedItem("content_tags") || {}).content; if (str!=null){ var keywords = str.toLowerCase().split(",").map(function(item) { return item.trim().replace(/\s\s+/g, ' '); }); return keywords; } return ['']; } // s:new keyword targeting via GAM function setKeywordTargeting() { dfp_keywords = getArticle(); console.log(dfp_keywords); googletag.pubads().setTargeting('keyword_targeting', dfp_keywords); } function getArticle(){ var strKey = keywordBrandSafety; if (strKey!=null){ var keywords = strKey.toLowerCase().split(/[ .]/).map(function(item) { return item.trim().replace(/\W*(&amp;quot;)\W*/g, '').replace(/([^a-zA-Z0-9]$|[()\n\"])/g, ''); }); keywords = keywords.filter((str) => str !== ''); return keywords; } return null; } // e:new keyword targeting via GAM try{ // Retrieving local storage var ls = window.localStorage; var lr = ls.getItem("_jxitr"); if (lr && lr.length > 2){ try{ googletag.pubads().setTargeting('jx_audience_interest', JSON.parse(lr).join().split(',')); }catch {} } var li = ls.getItem("_jxitd"); if (li && li.length > 2){ try{ googletag.pubads().setTargeting('jx_audience_intend', JSON.parse(li).join().split(',')); }catch {} } }catch(e){ //console.log("Localstorage not accessible or any other error: " + e.message); } if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ googletag.pubads().setTargeting('kg_inv_type','mweb'); }else{ googletag.pubads().setTargeting('kg_inv_type','desktop'); } googletag.pubads().setTargeting('kg_group_sites','kompas_com'); var rl_adx_val = ''; var rl_adx_sec = new Date().getSeconds(); if(rl_adx_sec==1||rl_adx_sec==2){rl_adx_val='300';} if(rl_adx_sec==3||rl_adx_sec==4){rl_adx_val='600';} if(rl_adx_sec==5||rl_adx_sec==6){rl_adx_val='900';} if(rl_adx_sec==7||rl_adx_sec==8){rl_adx_val='1200';} if(rl_adx_sec==9||rl_adx_sec==10){rl_adx_val='1500';} console.log('rl_adx_val = '+rl_adx_val); if(rl_adx_val!=''){ googletag.pubads().setTargeting('rl_adx',rl_adx_val); }googletag.pubads().setTargeting('currentUrl', '2017/04/25/060300827');googletag.pubads().setTargeting('page', 'page_1');googletag.pubads().setTargeting('gender', JSON.parse(localStorage.getItem('sso_gender')?localStorage.getItem('sso_gender'):'{"gender":"unknown"}').gender); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script> <!-- End: GPT --> <!-- (ads.google.head.rs) --> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.kompas.com/", "potentialAction": { "@type": "SearchAction", "target": "https://search.kompas.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <script type="application/ld+json"> {"@context":"http:\/\/schema.org","@type":"NewsArticle","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/travel.kompas.com\/read\/xml\/2017\/04\/25\/060300827\/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco#"},"headline":"Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco","image":{"@type":"ImageObject","url":"https:\/\/asset.kompas.com\/crops\/sTcrBz3a1dk2eXAQHPRL67cbUaM=\/0x76:1000x576\/780x390\/filters:watermark(data\/photo\/2020\/03\/10\/5e6775cf5d848.png,0,-0,1)\/data\/photo\/2017\/04\/24\/2135893990.jpg","height":500,"width":750},"datePublished":"2017-04-24T23:03:00+00:00","dateModified":"2017-04-24T23:03:00+00:00","author":{"@type":"Person","name":"Ni Luh Made Pertiwi F","url":"https:\/\/indeks.kompas.com\/profile\/1212"},"publisher":{"@type":"Organization","name":"Kompas.com","logo":{"@type":"ImageObject","url":"https:\/\/asset.kompas.com\/data\/2017\/wp\/images\/logo-kompascom-jmd.png","width":255,"height":55}},"description":"Purwodadi sudah sejak lama mengantongi jargon sebagai 'Kota Swike'. "}</script> <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Organization", "url": "https://www.kompas.com", "logo": "https://asset.kompas.com/data/2018/kompascom/images/logo-kompascom-biru.png", "sameAs" : [ "https://www.facebook.com/kompascom", "https://www.twitter.com/kompascom", "https://instagram.com/kompascom", "https://line.me/ti/p/%40kompas.com" ] } </script> <style type="text/css"> /* Avoid empty images to appear as broken */ img:not([src]):not([srcset]) { visibility: hidden; } /* Fix for images to never exceed the width of the container */ img { max-width: 100%; } </style> <script type="text/javascript"> function fb_share(e,o){return u=o,t=e,window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function tweet_share(t,x=''){return u=t,window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(u)+"&url="+encodeURIComponent(x),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function plus_share(t){return u=t,window.open("https://plus.google.com/share?url="+encodeURIComponent(u),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function telegram_share(e,o,x){return u=o,t=e,window.open("https://t.me/share/url?url="+encodeURIComponent(u)+"&text="+encodeURIComponent(t)+x,"sharer","toolbar=0,status=0,width=626,height=436"),!1}function whatsapp_share(e,o){return u=o,t=e,window.open("https://wa.me/?text="+encodeURIComponent(u)+" - "+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function whatsapp_share_new(e,o){return u=o,t=e,window.open("https://wa.me/?text="+encodeURIComponent(t)+encodeURIComponent(u),"sharer","toolbar=0,status=0,width=626,height=436"),!1} </script> <meta name="google-site-verification" content="oHnKUtgqOLtZOYp5HWas27GCVmPbsKDE5NHDPrsOJpc" /> <script> document.addEventListener('DOMContentLoaded', function() { var addebug = document.querySelectorAll('.footerCopyright'); for (i = 0; i < addebug.length; ++i) { addebug[i].addEventListener('click', function handleClick() { console.log('Debugged'); googletag.openConsole(); }); } }); </script> <script async src="https://cdn.oval.id/tracker/p/kompas/oval_web_analytics_latest.js"></script> <!-- Meta Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '423063207362401'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=423063207362401&ev=PageView&noscript=1" /></noscript> <!-- End Meta Pixel Code --></head> <body class="theme--travel page--read"> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PT7PC4" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <div class="wrap"> <!-- header--> <div class="header header--sumpah-pemuda clearfix"> <div class="row clearfix header__wrap"> <div class="container clearfix header__row"> <div class="row col-offset-fluid clearfix"> <div class="col-bs10-5 clearfix"> <div class="logo"> <a href="https://www.kompas.com"> <style>.logo img {width:auto;}.logo {width:auto;}</style> <!-- <img src="https://asset.kompas.com/data/2017/wp/images/logo-kompascom-ri77.png" alt="Kompas.com" width="310" height="50" id="anni26-img"> --> <!-- <img src="https://asset.kompas.com/data/2024/07/25/kompascom/hut/desktop/images/logo-kompascom-ri79.png" alt="28 Tahun Kompas.com, Jernih Melihat Dunia" id="anni26-img"> --> <img src="https://asset.kompas.com/data/2024/09/13/kompascom/hut/desktop/logo-kompascom-29-desktop.png" alt="29 Tahun Kompas.com, Jernih Melihat Dunia"> </a> <!-- <a href="https://vik.kompas.com/harapan-jurnalisme-berkelanjutan" class="anni25-link"></a> --> </div> </div> <div class="col-bs10-5 clearfix"> <form class="search search--header col-bs12-8 col-offset-0" action="https://search.kompas.com/search/"> <input class="form__input form__input__header" id="search" type="text" name="q" placeholder="cari tokoh, topik atau peristiwa"> <button type="button" class="form__button__clear" role="button"> <span class="kcm__close__icon"></span> </button> <input class="form__button form__button__header" type="submit" name="submit"> <span class="search--icon"> <svg class="icon icon-search" title="icon-search"> <use xlink:href="#icon-search" /> </svg> </span> </form> <div class="dark-header-item"> <div class="dark-wrapper js-darkWrapper"> <button type="button" class="button-default js-darkSetter" id="menu-darkmode" aria-label="Atur mode" aria-expanded="false" aria-controls="darkmode"> <span class="icon-svg icon-darkmode" aria-hidden="true"></span> </button> <div class="dark-setting"> <ul> <li> <button type="button" role="button" class="button dark-link js-darkToggle" data-dark="system">Otomatis</button> </li> <li> <button type="button" role="button" class="button dark-link js-darkToggle" data-dark="dark">Mode Gelap</button> </li> <li> <button type="button" role="button" class="button dark-link js-darkToggle" data-dark="light">Mode Terang</button> </li> </ul> </div> </div> </div> <div class="loyalty__link" id="loyalty_koin" style="display: none"> <a href="https://play.kompas.com/loyalty"> <span class="icon-svg icon-koin"></span> <span class="loyalty__link__text">Koin</span> <i class="loyalty__link__badge active"></i> </a> </div> <div class="sso__header col-bs12-4"> <ul class="sso__wrap"> <li class="sso__item"> <a class="sso__link sso__link__icon js-sso-user" href="javascript:void(0)"> <i class="sso__icon__login" id="sso__icon__login_top"></i> <i class="sso__badge" style="display: none;"></i> </a> <div class="sso__option -fixed -hide js-sso-user-board"> <ul> <li id="sso__item"><a id="txt_signin" href="https://account.kompas.com/login/a29tcGFz/aHR0cHM6Ly90cmF2ZWwua29tcGFzLmNvbS9yZWFkLzIwMTcvMDQvMjUvMDYwMzAwODI3L21lbmNpY2lwaS5zd2lrZS5wdXJ3b2RhZGkuc3VwLmtvZG9rLmRlbmdhbi50YXVjbw=="><span><i class="sso__icon__login"></i> Login</span></a></li> <li></li> <li> <a href="https://activity.kompas.com/voucher?source=navbar" class="myvalue__btn -new"> <span><div class="myvalue__icon"><img class="lozad" data-src="https://asset.kompas.com/data/2024/myvalue/desktop/images/icon-myvalue.png" alt=""></div> Voucher</span> <div class="myvalue__btn__wrap"> <div class="myvalue__icon"><img class="lozad" data-src="https://asset.kompas.com/data/2024/myvalue/desktop/images/icon-myvalue-gif.gif" alt=""></div> <span>Ada voucher buat kamu</span> </div> </a> </li> <li><a href="https://plus.kompas.com"><span><i class="sso__icon__subscription"></i> Gabung Kompas.com+ <i class="sso__badge__inline"></i></span></a></li> <li></li> <li><a href="https://activity.kompas.com/saved"><span><i class="sso__icon__bookmark"></i> Konten yang disimpan</span></a></li> <li></li> <li><a href="https://activity.kompas.com/liked"><span><i class="sso__icon__liked"></i> Konten yang disukai</span></a></li> <li></li> <li><a href="https://activity.kompas.com/minat"><span><i class="sso__icon__interest"></i> Atur Minat</span></a></li> <li></li> <li id="feedback__item"><a href="https://www.kompas.com/feedback"><span><i class="sso__icon__notif"></i> Berikan Masukanmu <i class="sso__badge__inline" style="display: none;"></i></span></a></li> </ul> </div> </li> </ul> </div> <div class="kid__wrap"> <a target="_blank" href="https://komp.as/darikompascom" class="kid__button">Langganan Kompas.id</a> </div> </div> </div> </div> </div> <!-- nav--> <div class="js-nav-offset"></div> <div class="row clearfix nav"> <!-- (ads.skin.full) --> <div class="container clearfix nav__wrap"> <div class="logo logo--sticky"> <a href="https://www.kompas.com"><img class="lozad" data-src="https://asset.kompas.com/data/2017/wp/images/logo-kompascom-2017.png" alt="www.kompas.com" /></a> </div> <ul class="nav__row clearfix"> <li class="nav__item"> <a href="https://news.kompas.com?source=navbar" class="nav__link nav__link--news">News</a> <ul class="nav__sub nav__sub--news"> <li class="nav__subitem"> <a href="https://nasional.kompas.com" class="nav__sublink">Nasional</a> </li> <li class="nav__subitem"> <a href="https://megapolitan.kompas.com" class="nav__sublink">Megapolitan</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/global" class="nav__sublink">Global</a> </li> <li class="nav__subitem"> <a href="https://inside.kompas.com/suratpembaca" class="nav__sublink">Surat Pembaca</a> </li> <li class="nav__subitem"> <a href="https://kilasdaerah.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Daerah</a> </li> <li class="nav__subitem"> <a href="https://kilaskorporasi.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Korporasi</a> </li> <li class="nav__subitem"> <a href="https://kilaskementerian.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Kementerian</a> </li> <li class="nav__subitem"> <a href="https://sorotpolitik.kompas.com" class="nav__sublink nav__sublink--hot">Sorot Politik</a> </li> <li class="nav__subitem"> <a href="https://kilasbadannegara.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Badan Negara</a> </li> <li class="nav__subitem"> <a href="https://kelanaindonesia.kompas.com" class="nav__sublink nav__sublink--hot">Kelana Indonesia</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/topik-pilihan/list/7782/kalbe-health-corner" class="nav__sublink nav__sublink--hot">Kalbe Health Corner</a> </li> <li class="nav__subitem"> <a href="https://kilasparlemen.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Parlemen</a> </li> <li class="nav__subitem"> <a href="https://kilasbumn.kompas.com" class="nav__sublink nav__sublink--hot">Kilas BUMN</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/cekfakta" class="nav__sublink">Cek Fakta</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/konsultasihukum" class="nav__sublink">Konsultasi Hukum</a> </li> <li class="nav__subitem"> <a href="https://news.kompas.com/search" class="nav__sublink">Indeks</a> </li> <li class="nav__subitem"> <a href="https://regional.kompas.com" class="nav__sublink">Regional</a> <ul class="nav__subsub"> <li class="nav__subitem"> <a href="https://surabaya.kompas.com" class="nav__subsublink">Surabaya</a> </li> <li class="nav__subitem"> <a href="https://medan.kompas.com" class="nav__subsublink">Medan</a> </li> <li class="nav__subitem"> <a href="https://makassar.kompas.com" class="nav__subsublink">Makassar</a> </li> <li class="nav__subitem"> <a href="https://yogyakarta.kompas.com" class="nav__subsublink">Yogyakarta</a> </li> <li class="nav__subitem"> <a href="https://bandung.kompas.com" class="nav__subsublink">Bandung</a> </li> <li class="nav__subitem"> <a href="https://denpasar.kompas.com" class="nav__subsublink">Denpasar</a> </li> </ul> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/hype" class="nav__sublink">Hype</a> </li> </ul> </li> <!-- <li class="nav__item"> <a href="https://www.kompas.com/ramadhan?source=navbar" class="nav__link nav__link--new">Ramadhan</a> </li> --> <li class="nav__item"> <a href="https://pemilu.kompas.com?source=navbar" class="nav__link nav__link">Pemilu</a> </li> <li class="nav__item"> <a href="https://ikn.kompas.com?source=navbar" class="nav__link nav__link--new">IKN</a> <ul class="nav__sub nav__sub--ikn"> <li class="nav__subitem"> <a href="https://ikn.kompas.com/news" class="nav__sublink">News</a> </li> <li class="nav__subitem"> <a href="https://ikn.kompas.com/city" class="nav__sublink">City</a> </li> <li class="nav__subitem"> <a href="https://ikn.kompas.com/infrastructure" class="nav__sublink">Infrastructure</a> </li> <li class="nav__subitem"> <a href="https://ikn.kompas.com/community" class="nav__sublink">Community</a> </li> <li class="nav__subitem"> <a href="https://ikn.kompas.com/housings" class="nav__sublink">Housings</a> </li> <li class="nav__subitem"> <a href="https://indeks.kompas.com?site=ikn" class="nav__sublink">Indeks</a> </li> <li class="nav__subitem"> <a href="https://ikn.kompas.com/foresta" class="nav__sublink">Foresta</a> </li> </ul> </li> <li class="nav__item"> <a href="https://tekno.kompas.com?source=navbar" class="nav__link nav__link--tekno">Tekno</a> <ul class="nav__sub nav__sub--tekno"> <li class="nav__subitem"> <a href="https://tekno.kompas.com/apps-os" class="nav__sublink">Apps &amp; OS</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/gadget" class="nav__sublink">Gadget</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/internet" class="nav__sublink">Internet</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/hardware" class="nav__sublink">Hardware</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/business" class="nav__sublink">Business</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/game" class="nav__sublink">Game</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/galeri" class="nav__sublink">Galeri</a> </li> <li class="nav__subitem"> <a href="https://tekno.kompas.com/search" class="nav__sublink">Indeks</a> </li> <li class="nav__subitem"> <a href="https://pubads.g.doubleclick.net/gampad/clk?id=6163907479&iu=/31800665/KOMPAS.COM/tekno" class="nav__sublink nav__sublink--hot">Tech Innovation</a> </li> <li class="nav__subitem"> <a href="https://kilasinternet.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Internet</a> </li> </ul> </li> <li class="nav__item"> <a href="https://otomotif.kompas.com?source=navbar" class="nav__link nav__link--otomotif">Otomotif</a> <ul class="nav__sub nav__sub--otomotif"> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/motor" class="nav__sublink">Motor</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/mobil" class="nav__sublink">Mobil</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/sport" class="nav__sublink">Sport</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/niaga" class="nav__sublink">Niaga</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/komunitas" class="nav__sublink">Komunitas</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/otopedia" class="nav__sublink">Otopedia</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/merapah" class="nav__sublink nav__sublink--hot">Merapah</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/ev-leadership" class="nav__sublink nav__sublink--hot">EV Leadership</a> </li> <li class="nav__subitem"> <a href="https://otomotif.kompas.com/elektrifikasi" class="nav__sublink nav__sublink--hot">Elektrifikasi</a> </li> <li class="nav__subitem"> <a href="https://lipsus.kompas.com/pameranotomotifnasional2024" class="nav__sublink nav__sublink--hot">Pameran</a> </li> </ul> </li> <li class="nav__item"> <a href="https://bola.kompas.com?source=navbar" class="nav__link nav__link--bola">Bola</a> <ul class="nav__sub nav__sub--bola"> <li class="nav__subitem"> <a href="https://bola.kompas.com/timnas-indonesia" class="nav__sublink">Timnas Indonesia</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-indonesia" class="nav__sublink">Liga Indonesia</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-italia" class="nav__sublink">Liga Italia</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-champions" class="nav__sublink">Liga Champions</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-lain" class="nav__sublink">Liga Lain</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-inggris" class="nav__sublink">Liga Inggris</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/liga-spanyol" class="nav__sublink">Liga Spanyol</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/internasional" class="nav__sublink">Internasional</a> </li> <li class="nav__subitem"> <a href="https://bola.kompas.com/bundesliga" class="nav__sublink">Bundesliga</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/motogp" class="nav__sublink">Motogp</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/badminton" class="nav__sublink">Badminton</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/sports" class="nav__sublink">Sports</a> </li> <li class="nav__subitem"> <a href="https://indeks.kompas.com?site=bola" class="nav__sublink">Indeks</a> </li> </ul> </li> <li class="nav__item"> <a href="https://lifestyle.kompas.com?source=navbar" class="nav__link nav__link--lifestyle">Lifestyle</a> <ul class="nav__sub nav__sub--lifestyle"> <li class="nav__subitem"> <a href="https://lifestyle.kompas.com/wellness" class="nav__sublink">Wellness</a> </li> <li class="nav__subitem"> <a href="https://lifestyle.kompas.com/fashion" class="nav__sublink">Fashion</a> </li> <li class="nav__subitem"> <a href="https://lifestyle.kompas.com/relationship" class="nav__sublink">Relationship</a> </li> <li class="nav__subitem"> <a href="https://lifestyle.kompas.com/parenting" class="nav__sublink">Parenting</a> </li> <li class="nav__subitem"> <a href="https://lifestyle.kompas.com/beauty" class="nav__sublink">Beauty & Grooming</a> </li> <li class="nav__subitem"> <a href="https://genbest.kompas.com" class="nav__sublink nav__sublink--hot">Sadar Stunting</a> </li> <li class="nav__subitem"> <a href="https://buku.kompas.com" class="nav__sublink">Buku</a> </li> </ul> </li> <li class="nav__item"> <a href="https://www.kompas.com/tren?source=navbar" class="nav__link nav__link--tren">Tren</a> </li> <li class="nav__item"> <a href="https://lestari.kompas.com?source=navbar" class="nav__link nav__link--lestari">Lestari</a> </li> <li class="nav__item"> <a href="https://health.kompas.com?source=navbar" class="nav__link nav__link--health">Health</a> </li> <li class="nav__item"> <a href="https://money.kompas.com/?source=navbar" class="nav__link nav__link--money">Money</a> <ul class="nav__sub nav__sub--money"> <li class="nav__subitem"> <a href="https://money.kompas.com/ekbis" class="nav__sublink">Ekbis</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/keuangan" class="nav__sublink">Keuangan</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/syariah" class="nav__sublink">Syariah</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/industri" class="nav__sublink">Industri</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/energi" class="nav__sublink">Energi</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/karier" class="nav__sublink">Karier</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/cuan" class="nav__sublink">Cuan</a> </li> <li class="nav__subitem"> <a href="https://money.kompas.com/belanja" class="nav__sublink">Belanja</a> </li> <!-- <li class="nav__subitem"> <a href="https://money.kompas.com/smartpreneur" class="nav__sublink">Smartpreneur</a> </li> --> <!-- <li class="nav__subitem"> <a href="https://kilasbumn.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas BUMN</a> </li> --> <li class="nav__subitem"> <a href="https://kilasbadan.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Badan</a> </li> <li class="nav__subitem"> <a href="https://kilastransportasi.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Transportasi</a> </li> <li class="nav__subitem"> <a href="https://kilasfintech.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Fintech</a> </li> <li class="nav__subitem"> <a href="https://kilasperbankan.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Perbankan</a> </li> <li class="nav__subitem"> <a href="https://kolom.kompas.com/Tanya.Pajak" class="nav__sublink">Tanya Pajak</a> </li> <li class="nav__subitem"> <a href="https://indeks.kompas.com?site=money" class="nav__sublink">Indeks</a> </li> <li class="nav__subitem"> <a href="https://kilasinvestasi.kompas.com/" class="nav__sublink nav__sublink--hot">Kilas Investasi</a> </li> </ul> </li> <li class="nav__item"> <a href="https://properti.kompas.com/?source=navbar" class="nav__link nav__link--properti">Properti</a> <ul class="nav__sub nav__sub--properti"> <li class="nav__subitem"> <a href="https://www.kompas.com/properti" class="nav__sublink">News</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/hunian" class="nav__sublink">Hunian</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/arsitektur" class="nav__sublink">Arsitektur</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/beranda" class="nav__sublink">Beranda</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/konsultasi" class="nav__sublink">Konsultasi</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/figur" class="nav__sublink">Figur</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/tips" class="nav__sublink">Tips</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/galeri-360" class="nav__sublink">Galeri 360</a> </li> <li class="nav__subitem"> <a href="https://properti.kompas.com/search" class="nav__sublink">Indeks</a> </li> <li class="nav__subitem"> <a href="https://sorot.kompas.com" class="nav__sublink nav__sublink--hot">Sorot Properti</a> </li> </ul> </li> <li class="nav__item"> <a href="https://www.kompas.com/food?source=navbar" class="nav__link nav__link--food">Food</a> <ul class="nav__sub nav__sub--food"> <li class="nav__subitem"> <a href="https://www.kompas.com/food/resep" class="nav__sublink">Resep</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/tips-kuliner" class="nav__sublink">Tips Kuliner</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/food-news" class="nav__sublink">Food News</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/food-story" class="nav__sublink">Food Story</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/tempat-makan" class="nav__sublink">Tempat Makan</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/gallery" class="nav__sublink">Galeri</a> </li> <li class="nav__subitem"> <a href="https://kilasfood.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Food</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/food/panduan-kuliner-yogyakarta" class="nav__sublink">Panduan Kuliner Yogyakarta</a> </li> </ul> </li> <li class="nav__item"> <a href="https://umkm.kompas.com/?source=navbar" class="nav__link nav__link--umkm">UMKM</a> <ul class="nav__sub nav__sub--umkm"> <li class="nav__subitem"> <a href="https://umkm.kompas.com" class="nav__sublink">Beranda UMKM</a> </li> <li class="nav__subitem"> <a href="https://umkm.kompas.com/training" class="nav__sublink">Training</a> </li> <li class="nav__subitem"> <a href="https://umkm.kompas.com/jagoan-lokal" class="nav__sublink">Jagoan Lokal</a> </li> <li class="nav__subitem"> <a href="https://umkm.kompas.com/program" class="nav__sublink">Program</a> </li> <li class="nav__subitem"> <a href="https://kilasumkm.kompas.com" class="nav__sublink nav__sublink--hot">Kilas UMKM</a> </li> <li class="nav__subitem"> <a href="https://sorotumkm.kompas.com" class="nav__sublink nav__sublink--hot">Sorot UMKM</a> </li> </ul> </li> <li class="nav__item"> <a href="https://edukasi.kompas.com/?source=navbar" class="nav__link nav__link--edukasi">Edukasi</a> <ul class="nav__sub nav__sub--edukasi"> <li class="nav__subitem"> <a href="https://edukasi.kompas.com/sekolah" class="nav__sublink">Sekolah</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/edu" class="nav__sublink">Edu News</a> </li> <li class="nav__subitem"> <a href="https://edukasi.kompas.com/perguruan-tinggi" class="nav__sublink">Perguruan Tinggi</a> </li> <li class="nav__subitem"> <a href="https://edukasi.kompas.com/pendidikan-khusus" class="nav__sublink">Pendidikan Khusus</a> </li> <li class="nav__subitem"> <a href="https://edukasi.kompas.com/beasiswa" class="nav__sublink">Beasiswa</a> </li> <li class="nav__subitem"> <a href="https://edukasi.kompas.com/literasi" class="nav__sublink">Literasi</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/skola" class="nav__sublink nav__link--new">Skola</a> </li> <li class="nav__subitem"> <a href="https://kilaspendidikan.kompas.com" class="nav__sublink nav__sublink--hot">Kilas Pendidikan</a> </li> </ul> </li> <li class="nav__item"> <a href="https://travel.kompas.com/?source=navbar" class="nav__link nav__link--travel--active">Travel</a> <ul class="nav__sub nav__sub--travel"> <li class="nav__subitem"> <a href="https://travel.kompas.com/travel-news" class="nav__sublink">Travel News</a> </li> <li class="nav__subitem"> <a href="https://travel.kompas.com/travel-ideas" class="nav__sublink">Travel Ideas</a> </li> <li class="nav__subitem"> <a href="https://travel.kompas.com/hotel-story" class="nav__sublink">Hotel Story</a> </li> <li class="nav__subitem"> <a href="https://travel.kompas.com/travelpedia" class="nav__sublink">Travelpedia</a> </li> <li class="nav__subitem"> <a href="https://travel.kompas.com/galeri" class="nav__sublink">Galeri</a> </li> <li class="nav__subitem"> <a href="https://ohayojepang.kompas.com" class="nav__sublink">Ohayo Jepang</a> </li> <li class="nav__subitem"> <a href="https://travel.kompas.com/search" class="nav__sublink">Indeks</a> </li> </ul> </li> <li class="nav__item"> <a href="#" class="nav__link nav__link--lainnya"><span class="icoBase icoInline icoBurger" aria-label="Lainnya" title="Lainnya"></span></a> <ul class="nav__sub nav__sub--lainnya"> <li class="nav__subitem"> <a href="https://video.kompas.com?source=navbar" class="nav__sublink">Video</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/parapuan?source=navbar" class="nav__sublink">Parapuan</a> </li> <li class="nav__subitem"> <a href="https://kolom.kompas.com/?source=navbar" class="nav__sublink">Kolom</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/sains?source=navbar" class="nav__sublink">Sains</a> </li> <li class="nav__subitem"> <a href="https://jeo.kompas.com/?source=navbar" class="nav__sublink">JEO</a> </li> <li class="nav__subitem"> <a href="https://foto.kompas.com/photo?source=navbar" class="nav__sublink">Foto</a> </li> <li class="nav__subitem"> <a href="https://vik.kompas.com/?source=navbar" class="nav__sublink">VIK</a> </li> <li class="nav__subitem"> <a href="https://www.kompas.com/homey?source=navbar" class="nav__sublink">Homey</a> </li> <li class="nav__subitem"> <a href="https://katanetizen.kompas.com/?source=navbar" class="nav__sublink">Kata Netizen</a> </li> </ul> </li> </ul> <ul id="lestariMenu" class="nav__sub nav__sub--lestari navSub"> <li class="navSub-col --col1"> <div class="navSub-label">KATEGORI PROGRAM</div> <ul class="navSub-inner"> <li><a href="https://lestari.kompas.com/pemerintah">Pemerintah</a></li> <li><a href="https://lestari.kompas.com/swasta">Swasta</a></li> <li><a href="https://lestari.kompas.com/lsm-figur">LSM/Figur</a></li> <li><a href="https://lestari.kompas.com/bumn">BUMN</a></li> </ul> </li> <li class="navSub-col --col2"> <div class="navSub-subcol --subcol"> <div class="navSub-grup"><a href="https://lestari.kompas.com/category/kesehatan">Kesehatan</a></div> <ul class="navSub-inner"> <li><a href="https://lestari.kompas.com/tujuan/kehidupan-sehat-dan-sejahtera">Kehidupan sehat dan sejahtera</a></li> <li><a href="https://lestari.kompas.com/tujuan/air-bersih-dan-sanitasi-layak">Air bersih dan sanitasi layak</a></li> </ul> <div class="navSub-grup"><a href="https://lestari.kompas.com/category/pendidikan">Pendidikan</a></div> <ul class="navSub-inner"> <li><a href="https://lestari.kompas.com/tujuan/pendidikan-berkualitas">Pendidikan Berkualitas</a></li> </ul> <div class="navSub-grup"><a href="https://lestari.kompas.com/category/lingkungan">Lingkungan</a></div> <ul class="navSub-inner"> <li><a href="https://lestari.kompas.com/tujuan/energi-bersih-dan-terjangkau">Energi Bersih dan Terjangkau</a></li> <li><a href="https://lestari.kompas.com/tujuan/penanganan-perubahan-iklim">Penanganan Perubahan Iklim</a></li> <li><a href="https://lestari.kompas.com/tujuan/ekosistem-lautan">Ekosistem Lautan</a></li> <li><a href="https://lestari.kompas.com/tujuan/ekosistem-daratan">Ekosistem Daratan</a></li> </ul> </div> <div class="navSub-subcol --subcol"> <div class="navSub-grup"><a href="https://lestari.kompas.com/category/ekonomi-dan-umkm">Ekonomi dan UMKM</a></div> <ul class="navSub-inner"> <li><a href="https://lestari.kompas.com/tujuan/tanpa-kemiskinan">Tanpa Kemiskinan</a></li> <li><a href="https://lestari.kompas.com/tujuan/tanpa-kelaparan">Tanpa Kelaparan</a></li> <li><a href="https://lestari.kompas.com/tujuan/kesetaraan-gender">Kesetaraan Gender</a></li> <li><a href="https://lestari.kompas.com/tujuan/pekerjaan-layak-dan-pertumbuhan-ekonomi">Pekerjaan Layak dan Pertumbuhan ekonomi</a></li> <li><a href="https://lestari.kompas.com/tujuan/industri-inovasi-dan-infrastruktur">Industri, Inovasi &amp; Infrastruktur</a></li> <li><a href="https://lestari.kompas.com/tujuan/berkurangnya-kesenjangan">Berkurangnya Kesenjangan</a></li> <li><a href="https://lestari.kompas.com/tujuan/kota-dan-pemukiman-yang-berkelanjutan">Kota &amp; Pemukiman yang Berkelanjutan</a></li> <li><a href="https://lestari.kompas.com/tujuan/konsumsi-dan-produksi-yang-bertanggungjawab">Konsumsi &amp; Produksi yang bertanggungjawab</a></li> </ul> </div> </li> <li class="navSub-col --col3"> <div class="navSub-label">PROGRAM LESTARI</div> <ul class="navSub-inner"> <li> <a href="https://lestari.kompas.com/program/cantikpreneurship" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/02/2109/kompascom/desktop/images/lestari/logo-jagoan-lokal.png" alt="Cantikpreneurship"> </a> </li> <li> <a href="https://lestari.kompas.com/program/jernihkan-bumi" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/02/2109/kompascom/desktop/images/lestari/logo-jernihkan-bumi.png" alt="Jernihkan Bumi"> </a> </li> <li> <a href="https://lestari.kompas.com/program/jernihkan-harapan" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/02/2109/kompascom/desktop/images/lestari/logo-jernihkan-harapan.png" alt="Jernihkan Harapan"> </a> </li> <li> <a href="https://lestari.kompas.com/program/festival-ceban" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/02/2109/kompascom/desktop/images/lestari/logo-festival-ceban.png" alt="Festival Ceban"> </a> </li> <li> <a href="https://lestari.kompas.com/program/jurnalisme-berkebangsaan" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/06/07/kompascom/desktop/lestari/images/logo_gate_jurnalisme.png" alt="Jurnalisme Berkebangsaan"> </a> </li> <li> <a href="https://lestari.kompas.com/program/generasi-bangkit" class="navLestariProgram"> <img src="https://asset.kompas.com/data/2023/06/22/kompascom/mobile/lestari/images/logo-generasibangkit.svg?v=1" alt="Generasi Bangkit"> </a> </li> </ul> <a class="navSub-more" href="https://lestari.kompas.com/program">Lihat semua</a> </li> </ul> </div> <!-- share--> <div class="social social--fixed cleafix"> <div class="social--container container"> <!-- share --> <span class="social--text">Bagikan:</span> <div class="social social--article clearfix"> <div class="social__item"> <a class="social__link social__link--facebook" href="javascript:void(0)" onclick="fb_share('Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco','https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?utm_source=Facebook&utm_medium=Referral&utm_campaign=Sticky_Desktop')"> <svg class="icon icon-facebook" title="icon-facebook"> <use xlink:href="#icon-facebook"/> </svg> </a> </div> <div class="social__item"> <a class="social__link social__link--twitter" href="javascript:void(0)" onclick="tweet_share('Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco\n\nKlik untuk baca: https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?utm_source=Twitter&utm_medium=Referral&utm_campaign=Sticky_Desktop\n\nKompascom+ baca berita tanpa iklan: https://kmp.im/plus2 \nDownload aplikasi: https://kmp.im/app2','https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?utm_source=Twitter&utm_medium=Referral&utm_campaign=Sticky_Desktop')"> <svg class="icon icon-twitter" title="icon-twitter"> <use xlink:href="#icon-twitter"/> </svg> </a> </div> <div class="social__item"> <a class="social__link social__link--whatsapp" href="javascript:void(0)" onclick="whatsapp_share_new('*Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco*\n\nKlik untuk baca:\n', 'https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?utm_source=Whatsapp&utm_medium=Referral&utm_campaign=Sticky_Desktop\n\nKompascom+ baca berita tanpa iklan: https://kmp.im/plus3 \nDownload aplikasi: https://kmp.im/app3')"> <svg class="icon icon-whatsapp" title="icon-whatsapp"> <use xlink:href="#icon-whatsapp"></use> </svg> </a> </div> <div class="social__item"> <a class="social__link social__link--telegram" href="javascript:void(0)" onclick="telegram_share('**Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco**', 'https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?utm_source=Telegram&utm_medium=Referral&utm_campaign=Sticky_Desktop', '%0D%0A%0D%0AKompascom%2B baca berita tanpa iklan: https://kmp.im/plus5%0D%0ADownload aplikasi: https://kmp.im/app5')"> <svg class="icon icon-telegram" title="icon-telegram"> <use xlink:href="#icon-telegram"></use> </svg> </a> </div> <div class="social__item"> <a class="social__link social__link--copy" href="https://travel.kompas.com/copy/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" style="display: none;"> <svg class="icon icon-copy" title="icon-copy"> <use xlink:href="#icon-copy"/> </svg> </a> </div> <!-- <div class="social__item"> <a class="social__link social__link--comment" href="http://travel.kompas.com/komentar/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco"> <span class="icon icon-comment"></span> </a> </div> --> <!-- <div class="social__item"> <a class="social__link social__link--google-plus" href="javascript:void(0);" onclick="plus_share('https://travel.kompas.com/read/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco')"> <svg class="icon icon-google-plus" title="icon-google-plus"> <use xlink:href="#icon-google-plus"/> </svg> </a> </div> --> </div> <p class="social--dshare" id="dsharetitle">Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco</p> <div class="comment__read__bar"> <span>Komentar: </span> <div class="social social--article clearfix"> <div class="social__item"> <a class="social__link" href="http://travel.kompas.com/komentar/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco"> <span class="icon icon-comment"></span> <div class="comment__counter total_comment"></div> </a> </div> </div> </div> </div> </div> </div> </div> <script src="https://asset.kompas.com/data/2023/11/03/darkmode/js/dark-mode.min.js"></script> <!-- (ads.welcomescreen) --> <!-- (ads.skin) --> <!-- container--> <div class="container clearfix"> <div class="row mt2 col-offset-fluid clearfix"> <div class="col-xs-10"> <div class="kcm kcm__top clearfix"> <div class="kcm__sticky__top"> <div id='div-gpt-ad-Top_1-1'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Top_1-1'); }); </script> </div> <!-- DFP Vignette --> <script> if(document.cookie.indexOf('vignette_cookies=') == -1){ var getVignette = function() { googletag.cmd.push(function() { din = googletag.defineOutOfPageSlot('/31800665/KOMPAS.COM/travel/vignette', googletag.enums.OutOfPageFormat.INTERSTITIAL); if (din !== null) { din.setTargeting('Pos', ['vignette']); din.setTargeting('kg_pos', ['vignette']); din.addService(googletag.pubads()); } googletag.pubads().enableSingleRequest(); googletag.enableServices(); googletag.pubads().refresh([din]); }); }; getVignette(); // setcookie 1 jam var d = new Date() d.setTime(d.getTime() + 1800 * 1000) document.cookie = "vignette_cookies=1;expires=" + d.toUTCString() + ";domain=.kompas.com;path=/";document.cookie = "vignette_cookies_session=1" } </script> <!-- End DFP Vignette --> </div> </div> </div> </div> <div class="gate-kgplus"> <span>Baca berita tanpa iklan. <a href="https://traid.jixie.io/sync/ck?desturl=https%3A%2F%2Fplus.kompas.com%2F%3Fsource%3DKompas.com%26medium%3Dbelowads%26campaign%3DBacaBeritaTanpaIklan&cid=3085&cpid=804">Gabung Kompas.com+</a></span> </div> <div class="row mt2 col-offset-fluid clearfix"> <iframe id="randomIframe" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border: 0px;vertical-align: bottom;height: 200px;width: 100%;"></iframe> </div> <script> // Daftar URL widget var widgetUrls = [ "https://widget.kompas.com/pilkada/v1", "https://widget.kompas.com/jokowi-prabowo/v1?v=2" ]; // Fungsi untuk memilih URL acak dari array widgetUrls function getRandomWidgetUrl() { return widgetUrls[Math.floor(Math.random() * widgetUrls.length)]; } // Menyisipkan URL acak ke dalam atribut src dari iframe document.getElementById("randomIframe").src = getRandomWidgetUrl(); </script> <!-- (ads.focus.update) --> <!-- read--> <div class="row mt2 col-offset-fluid clearfix"> <div class="col-bs10-10"> <!-- tagging--> <!-- breadcrumb--> <!-- breadcrumb--> <h3 class="breadcrumb clearfix"> <ul class="breadcrumb__wrap" itemscope itemtype="http://schema.org/BreadcrumbList"> <li class="breadcrumb__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="breadcrumb__link" itemtype="https://schema.org/Thing" itemprop="item" href="https://www.kompas.com"><span itemprop="name">Kompas.com</span></a><meta itemprop="position" content="1" /></li> <li class="breadcrumb__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="breadcrumb__link" itemtype="https://schema.org/Thing" itemprop="item" href="https://travel.kompas.com/"><span itemprop="name">Travel</span></a><meta itemprop="position" content="2" /></li> <li class="breadcrumb__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="breadcrumb__link" itemtype="https://schema.org/Thing" itemprop="item" href="https://travel.kompas.com/food-story"><span itemprop="name">Food Story</span></a><meta itemprop="position" content="3" /></li> </ul> </h3> <!-- topik pilihan --> <!-- (ads.header) --> <!-- partner like bbcnews --> <!-- read title--> <h1 class="read__title">Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco</h1> </div> </div> <!-- read--> <div class="row col-offset-fluid clearfix js-giant-wp-sticky-parent"> <div class="col-bs10-7 js-read-article"> <!-- read header--> <div class="read__header col-offset-fluid clearfix"> <div class="col-bs10-10"> <!-- author--> <div class="read__time"><a href="https://www.kompas.com/">Kompas.com</a> - 25/04/2017, 06:03 WIB</div> </div> <div class="col-bs10-10"> <div class="credit" role="link" onclick="javascript:window.location.href='http://indeks.kompas.com/profile/1212/Puthut.Dwi.Putranto.Nugroho'"> <div class="credit-picture"> <div class="credit-picture-img avatarInit" data-avatar-initial="PD"> </div> </div> <div class="credit-title"> <div class="credit-title-name"> <h6>Puthut Dwi Putranto Nugroho</h6> </div> <p>Penulis</p> </div> </div> </div> <div class="col-bs10-10"> <!-- reaction blok --> <div class="reaction -top"> <div class="reactionList display-flex"> <button class="button reactionItem reactionIteration" aria-label="Like Article" data-ttp="like"> <span class="icoBase icoLike"></span> <span class="reactionTxt"></span> </button> <button class="button reactionItem reactionIteration" aria-label="Dislike Article" data-ttp="dislike"> <span class="icoBase icoDislike"></span> </button> <button data-url="https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" data-title="Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco" data-campaign="Top_Desktop" class="button buttonShare reactionItem" aria-label="Share Article"> <span class="icoBase icoShare"></span> </button> <button class="button reactionItem reactionIteration" aria-label="Bookmark Article" data-ttp="bookmark"> <span class="icoBase icoBookmark"></span> </button> <a href="http://travel.kompas.com/komentar/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" class="button buttonComment reactionItem" aria-label="Comment Article"> <span class="icoBase icoComment"></span> <span class="reactionTxt total_comment"></span> </a> </div> </div> <script> (function() { const guid = ".xml.2017.04.25.060300827"; const kmps_usrid = ""; const base_api_url = "https://api.kompas.com/"; const login_url = "https://account.kompas.com/login/a29tcGFz/aHR0cHM6Ly90cmF2ZWwua29tcGFzLmNvbS9yZWFkLzIwMTcvMDQvMjUvMDYwMzAwODI3L21lbmNpY2lwaS5zd2lrZS5wdXJ3b2RhZGkuc3VwLmtvZG9rLmRlbmdhbi50YXVjbw=="; const user_bookmark_url = "https://activity.kompas.com/saved?order=desc"; const user_like_url = "https://activity.kompas.com/liked?order=desc"; const publisher = 'kompas'; const platform = 'desktop'; const type = 'article'; let process = false; window.addEventListener('DOMContentLoaded', function() { // clone widget top to widget bottom const paging = document.querySelector('.read__paging'); if (paging !== null) { const reactionWidget = document.querySelector('.reaction.-top').cloneNode(true); reactionWidget.className = 'reaction -bottom'; reactionWidget.querySelector('.buttonShare').setAttribute('data-campaign', 'Bottom_Desktop') paging.after(reactionWidget); } else { const reactionBottom = document.querySelector('#reaction-bottom'); const reactionWidget = document.querySelector('.reaction.-top').cloneNode(true); reactionWidget.className = 'reaction -bottom'; reactionWidget.querySelector('.buttonShare').setAttribute('data-campaign', 'Bottom_Desktop') if (!!reactionBottom) { reactionBottom.appendChild(reactionWidget); } } // set attribute : posisi share top/bottom document.querySelectorAll(".buttonShare").forEach(element => element.addEventListener('click', event => { let parent = element.closest('.reaction'); if (parent !== null) { let socmedList = document.querySelector(".socmedList"); if (parent.className == 'reaction -top') { socmedList.setAttribute("data-area", "top"); } else if (parent.className == 'reaction -bottom') { socmedList.setAttribute("data-area", "bottom"); } } })); check_reaction_temp(); if(document.cookie.indexOf('kmps_usrid=') != -1){ get_data_reaction(); } document.querySelectorAll(".buttonBookmark, .buttonLike, .buttonDislike").forEach(element => element.addEventListener('click', event => { if (process == false) { if (kmps_usrid) { if (element.classList.contains('buttonBookmark')) { if (element.classList.contains('-active')) { do_unbookmark(); } else { do_bookmark(); } } else if (element.classList.contains('buttonLike')) { if (element.classList.contains('-active')) { do_like_delete(); } else { do_like_add(); } } else if (element.classList.contains('buttonDislike')) { if (element.classList.contains('-active')) { do_dislike_delete(); } else { do_dislike_add(); } } } else { let sso_query_params = ''; if (element.classList.contains('buttonBookmark')) { localStorage.setItem('reaction_bookmark_temp', 1) sso_query_params = '?source=kompascom&medium=interaction&campaign=save' } else if (element.classList.contains('buttonLike')) { localStorage.setItem('reaction_like_temp', 1) sso_query_params = '?source=kompascom&medium=interaction&campaign=like' } else if (element.classList.contains('buttonDislike')) { localStorage.setItem('reaction_dislike_temp', 1) sso_query_params = '?source=kompascom&medium=interaction&campaign=dislike' } window.location.href = login_url + sso_query_params; } } })); // start reaction rule var url_continue = "https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco"; function oneTapShow(tipe='') { let otd = document.getElementById('kgmModal-onetap') if(!!otd) { let kgOne1 = document.getElementById('kgOne1'); let kgOne2 = document.getElementById('kgOne2'); if(tipe=='reaction'){ kgOne1.style.display = 'none'; kgOne2.style.display = 'block'; }else{ kgOne2.style.display = 'none'; kgOne1.style.display = 'block'; } otd.classList.remove('-hide'); } } function oneTapHide() { let otd = document.getElementById('kgmModal-onetap') if(!!otd) { otd.classList.add('-hide'); } } function hideButtonClose(){ document.getElementById('kgmModal-onetap-close-tag').style.display = 'none'; document.getElementById('kgmModal-onetap-close-page').style.display = 'none'; document.getElementById('kgmModal-onetap-close-iteraction').style.display = 'none'; } document.querySelectorAll(".reactionIteration").forEach(element => element.addEventListener('click', event => { hideButtonClose(); var kgmModalOneTapIteraction = document.getElementById('kgmModal-onetap-close-iteraction'); kgmModalOneTapIteraction.style.display = "block"; var trigger_touch_point = 'click_like'; var label = 'Like'; var title = 'Suka konten ini? Login untuk menyimpan preferensimu'; if(element.dataset.ttp=='dislike'){ trigger_touch_point = 'click_dislike'; label = 'Dislike'; title = 'Kurang suka konten ini? Login untuk menyimpan preferensimu'; }else if(element.dataset.ttp=='bookmark'){ trigger_touch_point = 'click_bookmark'; label = 'Bookmark'; title = 'Login untuk simpan dan baca nanti'; } localStorage.setItem(`reaction_${label.toLowerCase()}_temp`, 1) // document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger='+trigger_touch_point) document.getElementById('kgmModal-title').innerHTML = title; // var script = document.createElement("script"); // (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); // document.getElementById('kgmModal-onetap').dataset.eventLabel = label // document.getElementById('kgmModal-onetap-close-iteraction').dataset.eventLabel = label oneTapShow('reaction'); })); // end reaction rule }); function check_reaction_temp() { if (kmps_usrid) { if (localStorage.getItem('reaction_bookmark_temp')) { localStorage.removeItem('reaction_bookmark_temp'); do_bookmark(); } else if (localStorage.getItem('reaction_like_temp')) { localStorage.removeItem('reaction_like_temp'); do_like_add(); } else if (localStorage.getItem('reaction_dislike_temp')) { localStorage.removeItem('reaction_dislike_temp'); do_dislike_add(); } } } function toggleBtnBookmark() { const bmarks = document.querySelectorAll('.buttonBookmark'); for (const bmark of bmarks) { bmark.classList.toggle('-active'); } } function toggleBtnLike(toggle = '') { const likes = document.querySelectorAll('.buttonLike'); const icos = document.querySelectorAll('.icoLike'); if (toggle == 'on') { for (const like of likes) { like.classList.add('-active') } for (const ico of icos) { ico.classList.add('animate', 'animateheadshake') } } else if (toggle == 'off') { for (const like of likes) { like.classList.remove('-active') } for (const ico of icos) { ico.classList.remove('animate', 'animateheadshake') } } else { for (const like of likes) { like.classList.toggle('-active') } for (const ico of icos) { if (ico.classList.contains('animate')) { ico.classList.remove('animate', 'animateheadshake') } else { ico.classList.add('animate', 'animateheadshake') } } } } function toggleBtnDislike(toggle = '') { const dlikes = document.querySelectorAll('.buttonDislike'); for (const dlike of dlikes) { if (toggle == 'on') { dlike.classList.add('-active') } else if (toggle == 'off') { dlike.classList.remove('-active') } else { dlike.classList.toggle('-active') } } } function formBody(obj) { let formBody = []; for (var property in obj) { let encodedKey = encodeURIComponent(property); let encodedValue = encodeURIComponent(obj[property]); formBody.push(encodedKey + "=" + encodedValue); } return formBody.join("&"); } async function do_bookmark() { toggleBtnBookmark(); process = true; let url = base_api_url + "2021/reaction/bookmark/add"; let data = { guid, kmps_usrid, type, publisher, platform } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnBookmark(); }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { reactionToast('Artikel berhasil disimpan', user_bookmark_url); setCookieReaction('bookmark'); } }).catch(function(error) { console.log(error); toggleBtnBookmark(); }); setTimeout(() => { process = false; }, "1000"); } async function do_unbookmark() { toggleBtnBookmark(); process = true; let url = base_api_url + "2021/reaction/bookmark/delete"; let data = { guid, kmps_usrid, type, } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnBookmark(); }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { reactionToast('Artikel dihapus dari list yang disimpan'); setCookieReaction('unbookmark'); } }).catch(function(error) { console.log(error); toggleBtnBookmark(); }); setTimeout(() => { process = false; }, "1000"); } async function do_like_add() { toggleBtnLike('on'); const dislikes = document.querySelectorAll('.buttonDislike'); let isDislikeActive = false; for (const dislike of dislikes) { if (dislike.classList.contains('-active')) { isDislikeActive = true; } } if (isDislikeActive) { toggleBtnDislike('off'); } process = true; let url = base_api_url + "2021/reaction/like/add"; let data = { guid, kmps_usrid, type, publisher, platform } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnLike('off'); if (isDislikeActive) { toggleBtnDislike('on'); } }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { reactionToast('Artikel tersimpan di list yang disukai', user_like_url); update_total_liked(true); setCookieReaction('like'); } }).catch(function(error) { console.log(error); toggleBtnLike('off'); if (isDislikeActive) { toggleBtnDislike('on'); } }); setTimeout(() => { process = false; }, "1000"); } async function do_like_delete() { toggleBtnLike('off'); process = true; let url = base_api_url + "2021/reaction/like/delete"; let data = { guid, kmps_usrid, type, } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnLike('on'); }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { reactionToast('Artikel dihapus dari list yang disukai'); update_total_liked(false); setCookieReaction('unlike'); } }).catch(function(error) { console.log(error); toggleBtnLike('on'); }); setTimeout(() => { process = false; }, "1000"); } async function do_dislike_add() { toggleBtnDislike('on'); const likes = document.querySelectorAll('.buttonLike'); let isLikeActive = false; for (const like of likes) { if (like.classList.contains('-active')) { isLikeActive = true; } } if (isLikeActive) { toggleBtnLike('off'); } process = true; let url = base_api_url + "2021/reaction/dislike/add"; let data = { guid, kmps_usrid, type, publisher, platform } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnDislike('off'); if (isLikeActive) { toggleBtnLike('on'); } }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { if (isLikeActive) { update_total_liked(false); reactionToast('Artikel dihapus dari list yang disukai'); } setCookieReaction('dislike'); } }).catch(function(error) { console.log(error); toggleBtnDislike('off'); if (isLikeActive) { toggleBtnLike('on'); } }); setTimeout(() => { process = false; }, "1000"); } async function do_dislike_delete() { toggleBtnDislike('off'); process = true; let url = base_api_url + "2021/reaction/dislike/delete"; let data = { guid, kmps_usrid, type } const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }, body: formBody(data) }).then(function(resp) { if (resp.status == 200 || resp.status == 201 || resp.status == 400) { return resp.json(); } throw new Error('Something went wrong'); toggleBtnDislike('on'); }).then(function(resp) { if (resp.status == true || (resp.hasOwnProperty('message') && resp.message.includes('exist'))) { setCookieReaction('undislike'); } }).catch(function(error) { console.log(error); toggleBtnDislike('on'); }); setTimeout(() => { process = false; }, "1000"); } async function get_data_reaction() { let dataReaction; let cookieName = getCookieName(); let cookieReaction = getCookie(cookieName); let get_api = false; if (cookieReaction) { dataReaction = JSON.parse(cookieReaction); if (kmps_usrid && dataReaction.kmps_usrid != kmps_usrid) { // jika login & user tidak sama get_api = true; } if (kmps_usrid == '' && typeof dataReaction.kmps_usrid !== 'undefined') { // jika tidak login & masih ada user lain get_api = true; } } if (!cookieReaction || get_api) { // GET API let url = base_api_url + "2021/reaction?kmps_usrid=" + kmps_usrid + "&type=article&guid=" + guid; const response = await fetch(url).then(function(response) { if (response.ok) { return response.json(); } throw new Error('Something went wrong'); }).then(function(responseJson) { dataReaction = { 'liked': responseJson.liked, 'disliked': responseJson.disliked, 'saved': responseJson.saved, 'total_liked': responseJson.total_liked } setCookieReaction('', dataReaction); }).catch(function(error) { console.log(error); }); } const totalLikes = document.querySelectorAll('.buttonLike > .reactionTxt'); for (const totalLike of totalLikes) { if (dataReaction.total_liked) { totalLike.innerHTML = dataReaction.total_liked; } } if (typeof dataReaction.kmps_usrid !== 'undefined' && dataReaction.kmps_usrid == kmps_usrid) { if (dataReaction.liked == true) { const buttonLikes = document.querySelectorAll('.buttonLike'); for (const buttonLike of buttonLikes) { buttonLike.classList.add('-active'); } if (dataReaction.total_liked == 0) { for (const totalLike of totalLikes) { totalLike.innerHTML = 1 } } } if (dataReaction.disliked == true) { const buttonDislikes = document.querySelectorAll('.buttonDislike'); for (const buttonDislike of buttonDislikes) { buttonDislike.classList.add('-active'); } } if (dataReaction.saved == true) { const buttonBookmarks = document.querySelectorAll('.buttonBookmark'); for (const buttonBookmark of buttonBookmarks) { buttonBookmark.classList.add('-active'); } } } // check params after login amp if (kmps_usrid) { const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); if (urlParams.has('state')) { let state = urlParams.get('state'); if (state == 'bookmark' && dataReaction.saved == false) { do_bookmark(); } else if (state == 'like' && dataReaction.liked == false) { do_like_add(); } else if (state == 'dislike' && dataReaction.disliked == false) { do_dislike_add(); } } } } function update_total_liked(state) { let buttonLikes = document.querySelectorAll('.buttonLike > .reactionTxt'); for (const buttonLike of buttonLikes) { if (state == true) { buttonLike.innerHTML = parseInt((buttonLike.innerHTML ? buttonLike.innerHTML : 0), 10) + 1; } else { var value = parseInt((buttonLike.innerHTML ? buttonLike.innerHTML : 0), 10) - 1; buttonLike.innerHTML = (value > 0) ? value : ''; } } } function setCookie(cname, cvalue, minutes) { return new Promise(resolve => { var d = new Date(); d.setTime(d.getTime() + (minutes * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";domain=.kompas.com;path=/;secure;SameSite=None"; resolve(true); }); } function getCookie(name) { var name = name + '='; var cookies = decodeURIComponent(document.cookie).split(';'); for (var i = 0; i < cookies.length; i++) { var c = cookies[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } } function getCookieName() { let cookieName = guid; cookieName = cookieName.replace(".xml", "xml"); cookieName = cookieName.replaceAll(".", ":"); cookieName = 'reaction:' + cookieName; return cookieName; } function setCookieReaction(action = '', dataReaction = '') { let cookieName = getCookieName(); if (dataReaction == '') { const dataReactionCookie = getCookie(cookieName); if (dataReactionCookie) { dataReaction = JSON.parse(dataReactionCookie); } else { dataReaction = { saved: false, liked: false, disliked: false, kmps_usrid: kmps_usrid || '', }; } if (action == 'bookmark') { dataReaction.saved = true; } else if (action == 'unbookmark') { dataReaction.saved = false; } else if (action == 'like') { dataReaction.liked = true; dataReaction.disliked = false; } else if (action == 'unlike') { dataReaction.liked = false; } else if (action == 'dislike') { dataReaction.disliked = true; dataReaction.liked = false; } else if (action == 'undislike') { dataReaction.disliked = false; } } if (kmps_usrid) { dataReaction.kmps_usrid = kmps_usrid; } setCookie(cookieName, JSON.stringify(dataReaction), 10); } })(); </script> </div> </div> <!-- photo artikel--> <link rel="stylesheet" href="https://asset.kompas.com/data/2017/wp/css/kcm2019-photo-article.min.css?v=10" type="text/css"> <div class="cover-photo -gallery" data-photolink="http://travel.kompas.com/image/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?page=1" data-photostyle=""> <div class="photo__wrap"> <img width="780" height="520" src="https://asset.kompas.com/crops/Z29qYMBdbQrgaxLzgiBirixYXdk=/0x76:1000x576/1200x800/data/photo/2017/04/24/2135893990.jpg" alt="Swike Cik Ping di Purwodadi, Kabupaten Grobogan, Jateng, Minggu (23/4/2017) sore"> <div class="photo__icon photo__icon__expand"> <svg class="icon icon-expand"></svg>Lihat Foto </div> </div> <div class="photo__caption"> Swike Cik Ping di Purwodadi, Kabupaten Grobogan, Jateng, Minggu (23/4/2017) sore<span class="photo__author author">(Kompas.com/Puthut Dwi Putranto)</span> </div> </div> <!-- photo carousel --> <div class="photoCarousel"> <div class="photoCarousel-block" data-scroll="side"> <div class="photoCarousel-wrap photoCarousel-slider" data-active="scroll"> <div class="photoCarousel-item active"> <a href="http://travel.kompas.com/image/xml/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco?page=1"> <div class="photoCarousel-img"> <img class="lozad" data-src="https://asset.kompas.com/crops/GcT51t3Hc2IwM417noIRnhchNSs=/0x76:1000x576/750x500/data/photo/2017/04/24/2135893990.jpg" alt="Swike Cik Ping di Purwodadi, Kabupaten Grobogan, Jateng, Minggu (23/4/2017) sore"> </div> </a> </div> <!-- s:banner nps --> <div class="photoCarousel-item"> <a href="https://www.kompas.com/feedback"> <div class="photoCarousel-img"> <img class="lozad" data-src="https://asset.kompas.com/crop/0x0:0x0/150x100/data/photo/banner-NPS.jpg" alt=""> </div> </a> </div> <!-- e:banner nps --> </div> </div> </div> <!-- (ads.scroll.below) --> <div class="overlay-desktop"> <div id='div-gpt-ad-162839915433418391-oop'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-162839915433418391-oop'); }); </script> </div> </div> <!-- (ads.kiosked) --> <!-- read artikel--> <div class="read__article mt2 clearfix js-tower-sticky-parent"> <div class="col-bs9-2 col-offset-0"> <div class="kcm kcm__tower clearfix"> <div id='div-gpt-ad-Skyscraper'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Skyscraper'); }); </script> </div></div> </div> <div class="col-bs9-7"> <!-- read credit--> <!-- read content--> <div class="read__content"> <div class="clearfix"><p><strong>GROBOGAN, KOMPAS.com</strong> - Di Kabupaten Grobogan, Jawa Tengah khususnya di Kecamatan Purwodadi, kodok menjelma menjadi makanan khas yang digandrungi oleh masyarakat di sana. Mereka menyebutnya <a target='_self' class='inner-link-tag' href='https://www.kompas.com/tag/swike' style='color:#428bca;'>Swike</a>.</p> <p>Hidangan ini dipercaya berasal dari pengaruh masakan Tionghoa yang masuk ke Indonesia. Tekstur daging kodok dianggap serupa daging ayam. Bagi telinga warga pada umumnya, Purwodadi sudah sejak lama mengantongi jargon sebagai "<a target='_self' class='inner-link-tag' href='https://www.kompas.com/tag/kota-swike' style='color:#428bca;'>Kota Swike</a>".</p><!-- (ads.paragraph.2) --> <p>Kodok hijau yang habitatnya di persawahan itu, diracik dengan bumbu tradisional menjadi makanan yang kesohor di kalangan para pecandunya. Masakan berkuah layaknya sup yang konon merupakan perpaduan ramuan dari Tionghoa dan lokal ini sangat mengakar kuat di Kabupaten Grobogan terutama di Kota Purwodadi.&nbsp;</p><span class="ads-on-body"><!-- (ads.paragraph.4) --></span> <p>Luar biasa mudahnya menemukan warung makan <a target='_self' class='inner-link-tag' href='https://www.kompas.com/tag/swike' style='color:#428bca;'>swike</a> di Purwodadi. Di sejumlah titik pusat kota hingga perdesaan, ada banyak warga yang menjajakan masakan yang mengandalkan bahan dasar tauco itu.</p> <p>Seperti halnya rumah makan "Swike Asli Purwodadi" atau lebih getol dengan sebutan swike 'Cik Ping' yang tak lain adalah nama pemilik rumah makan ini. Tempat makan yang setiap harinya ramai dikunjungi para penikmat kodok itu berlokasi di Jalan Kolonel Sugiono, Kecamatan Purwodadi, Grobogan.</p> <p>Rumah makan lintas generasi ini diklaim sudah ada sejak tahun 1901. Untuk menunjukkan eksistensinya, pengelola pun menuliskan tahun perdana mereka berdiri pada baliho yang terpampang di depan rumah makan sederhana tersebut.</p><!-- s : kompas.id widget --> <div class="kompasidRec"></div> <!-- e : kompas.id widget --> <script> var endpoint = 'https://api-x.kompas.id/article/v1/kompas.com/recommender-inbody?position=rekomendasi_inbody&post-tags=swike, Kota Swike&post-url=aHR0cHM6Ly90cmF2ZWwua29tcGFzLmNvbS9yZWFkLzIwMTcvMDQvMjUvMDYwMzAwODI3L21lbmNpY2lwaS5zd2lrZS5wdXJ3b2RhZGkuc3VwLmtvZG9rLmRlbmdhbi50YXVjbw==&q=Mencicipi Swike Purwodadi, Sup Kodok dengan Tauco&section=Food Story' var xhr = new XMLHttpRequest(); xhr.addEventListener("readystatechange", function() { if (this.readyState == 4 && this.status == 200) { if (this.responseText != '') { const response = JSON.parse(this.responseText); if (response.url && response.judul && response.thumbnail) { const htmlString = ` <a target="_blank" href="${response.url}" rel="noopener noreferrer" class="kompasidRec__wrap"> <div class="kompasidRec__art"> <div class="kompasidRec__title"> ${response.judul} </div> <div class="kompasidRec__subs"> Artikel Kompas.id <span class="icoBase kompasidRec__link"></span> </div> </div> <div class="kompasidRec__img"> <img class="lozad" data-src="${response.thumbnail}" alt="${response.judul}"> </div> </a> `; document.querySelector('.kompasidRec').innerHTML = htmlString; } else { document.querySelector(".kompasidRec").remove(); } } else { document.querySelector(".kompasidRec").remove(); } } }); xhr.open("GET", endpoint); xhr.send(); </script> <p>Bukan perkara mudah, rumah makan 'Cik Ping' telah bertahan lebih dari seabad. Selain warga Grobogan, tercatat pula warga luar kota acap kali menyempatkan diri mampir di rumah makan ini.</p> <p>Sampai-sampai, sederet artis kenamaan seperti Robby Sugara, Inul Daratista, Didi Kempot dan petinju Cris John pernah turut menyambanginya. Terpajang foto-foto orang terkenal di tembok rumah makan bernuasa asri itu.</p> <p>Shanty Tjandra Wati&nbsp; (54) atau akrab disapa Cik Ping, menuturkan, awal mulanya, sebelum tahun 1900, generasi pertama sesepuhnya itu berdagang swike dengan berkeliling berjalan kaki mengangkat pikulan di wilayah Purwodadi. Hingga akhirnya nasib baik menghantarkan leluhurnya bernama Kong Giring itu untuk berjualan swike dengan mangkal di rumah yang saat ini menjadi rumah makan 'Cik Ping'.</p><span class="ads-on-body"><!-- (ads.paralax) --></span> <p>"Untuk mengenangnya, pikulan itu masih dipergunakan di warung. Kami adalah generasi kelima. Kami buka cabang di Jalan Imam Bonjol, Semarang sejak 1997 dan di Jalan Diponegoro, Yogyakarta sejak 40 tahun lalu," terang Cik Ping kepada <em>Kompas.com</em>, Minggu (23/4/2017) sore.</p> <p>Reputasi rumah makan 'Cik Ping' yang menyajikan panganan kodok hijau di Purwodadi bukan isapan jempol belaka. Dalam kurun sehari, rumah makan yang berada di jantung kota Purwodadi ini bisa menghabiskan 50 kilogram paha kodok hijau yang telah diramu.</p> <p>Bahan utama hidangan ini adalah kaki kodok dengan dibumbui jahe, bawang putih, garam, lada dan tauco. Swike dihidangkan dengan perasan jeruk nipis, taburan bawang putih goreng, dan daun seledri.</p> <p>Agar lebih lengkap, swike biasanya dinikmati dengan nasi putih. Hal istimewa dari swike olahan Cik Ping adalah kekuatan kuahnya serta meresapnya bumbu pada daging kodok.</p> <p>Cik Ping menyisipkan ramuan rahasia dalam menciptakan tauco sebagai bahan dasar membuat swike. Tauco sendiri merupakan hasil fermentasi kedelai hitam atau kuning dan penambahan larutan garam.</p> <p>"Swike kami istimewa pada tauconya. Kami juga memilih kecap yang berkualitas untuk memadukan rasa manis pada kuah. Untuk yang berselera pedas, kami sediakan ulek'an cabai," pungkas Cik Ping.</p> <p>Harganya cukup terjangkau menyesuaikan rasa lezatnya. Swike kuah dihargai Rp 20.000 per porsi. Ada pula pepes berisi telur, jeroan dan daging kodok berbalut daun pisang dijual Rp 10.000 per bungkus.</p> <p>Kodok goreng tepung atau mentega Rp 25.000 per porsi. Tongseng dan rica kodok Rp 25.000 per porsi serta Rambak atau kerupuk kulit kodok Rp 4.000 sebungkus.</p> <p>"Enak banget olahan kodok di sini terutama swike kuahnya. Bumbu yang disajikan meresap ke dalam daging kodok dan kuahnya enak. Perpaduan, manis, asam, asin dan pedas. Saya bersama keluarga dan teman-teman sering jajan di sini. Pokoknya nendang di lidah mas," kata Cahya Wandita Kusuma (28), seorang pengunjung, warga Jagalan, Purwodadi.</p><!-- (ads.native_banner) --><div style="height:1px" id="EndOfArticle"></div> <i>Simak <b>breaking news</b> dan <b>berita pilihan</b> kami langsung di ponselmu. Pilih saluran andalanmu akses berita Kompas.com WhatsApp Channel : <a target="_blank" href="https://www.whatsapp.com/channel/0029VaFPbedBPzjZrk13HO3D" rel="nofollow">https://www.whatsapp.com/channel/0029VaFPbedBPzjZrk13HO3D</a>. Pastikan kamu sudah install aplikasi WhatsApp ya.</i> </p><iframe class="lozad darkMsg" data-src="https://widget.kompas.com/survey/225?source=kompas.com&separator=survey__separator&site=travel&resubmit=off&referred_url=https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" frameborder="0" width="100%" height="390"></iframe><span class="liftdown_v2_tanda"></span></div> <div class="fb-quote"></div> </div> <!-- tracking script --> <!-- DFP OSM Start --> <style> .ads-partner-wrap > div { background: transparent; } #div-gpt-ad-Zone_OSM { position: sticky; position: -webkit-sticky; width:100%; height:100%; display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-pack:center; -ms-flex-pack:center; justify-content:center; top: 100px; } </style> <span id="wrap_lazy_div-gpt-ad-Zone_OSM" style="margin-top:-200px;position:absolute"></span> <div class="ads-partner-wrap osmplaceonsite" style="min-height: 400px; max-width:100%; text-align: center;"> <div id="div-gpt-ad-Zone_OSM"></div> </div> <script type="text/javascript"> LazyLoadSlot("div-gpt-ad-Zone_OSM", "/31800665/KOMPAS.COM/travel", [[300,250], [1,1], [384, 100]], "zone_osm", "zone_osm"); /** Init div-gpt-ad-Zone_OSM **/ function LazyLoadSlot(divGptSlot, adUnitName, sizeSlot, posName, posName_kg){ var observerAds = new IntersectionObserver(function(entires){ entires.forEach(function(entry) { if(entry.intersectionRatio > 0){ showAds(entry.target) } }); }, { threshold: 0 }); observerAds.observe(document.getElementById('wrap_lazy_'+divGptSlot)); function showAds(element){ console.log('show_ads lazy : '+divGptSlot); observerAds.unobserve(element); observerAds.disconnect(); googletag.cmd.push(function() { var slotOsm = googletag.defineSlot(adUnitName, sizeSlot, divGptSlot) .setTargeting('Pos',[posName]) .setTargeting('kg_pos',[posName_kg]) .addService(googletag.pubads()); googletag.display(divGptSlot); googletag.pubads().refresh([slotOsm]); }); } } </script> <!-- DFP OSM End --> <!-- pagging --> <span class="js-autoNext-holder"></span><div id="next_previous_inject"></div> <script type="text/javascript"> var observer_nextprev = new IntersectionObserver(function(entires){ entires.forEach(function(entry) { var visiblePct = Math.floor(entry.intersectionRatio * 100); if(visiblePct == 100){ nextprev_inject(entry.target) } }); }, { threshold: [0.5, 1.0] }); observer_nextprev.observe(document.getElementById('next_previous_inject')); function nextprev_inject(element){ observer_nextprev.unobserve(element); observer_nextprev.disconnect(); Http_nextprev = new XMLHttpRequest(); Http_nextprev.open("GET", 'https://indeks.kompas.com/api/next_previous?xml_path='+"2017/04/25/060300827"); Http_nextprev.send(); Http_nextprev.onreadystatechange = (e) => { if(Http_nextprev.readyState == 4 && Http_nextprev.status == 200) { json = JSON.parse(Http_nextprev.responseText); document.getElementById('next_previous_inject').innerHTML = json.content; } } } </script><div id="reaction-bottom"></div><div id="widget-comment-bottom"></div><div class="read__tagging mt1 clearfix"> <h3 class="tag tag--article clearfix"> <div class="tag__article__teaser">Tag</div> <ul class="tag__article__wrap"><li class="tag__article__item"><a class="tag__article__link" title="swike" href="https://www.kompas.com/tag/swike">swike</a></li><li class="tag__article__item"><a class="tag__article__link" title="Kota Swike" href="https://www.kompas.com/tag/kota-swike">Kota Swike</a></li></ul> </h3> </div> <!--Link ke indeks kanal --> <div class="wLink"> <a href="https://travel.kompas.com"> <div class="wLink__block"> <div class="wLink__img"><img class="lozad" data-src="https://asset.kompas.com/data/photo/wlink/wlink_travel.jpg?v=1" width="80" height="50" alt="#"></div> <div class="wLink__title">Lihat Travel Selengkapnya</div> <div class="wLink__arrow"> <span class="wLink__arrowPoint"></span> </div> </div> </a> </div> <link rel="stylesheet" href="https://static.kompas.com/slidestory/assets/css/slidestory_iframe.css" /> <iframe class="slidestory-iframe slidestory-rect" allow="clipboard-write" src="https://widget.kompas.com/slidestory/siapa-generasi-o-kenali-faktanya-agar-kamu-tidak-menjadi-yang-selanjutnya" width="100%" height="200" frameborder="0"></iframe><!-- Artikel Rekomendasi --> <div id="rekomendasi-konten-pilihan-untukmu-aiml" class="wSpec -aiml -loading -grid"> <a href="#" class="wSpec-secret" role="button" style="width: 15px;height: 20px;left: -2px;top: 15px; z-index:9">&nbsp;</a> <div class="wSpec-heading"> <div class="wSpec-heading-content">Pilihan Untukmu</div> <!-- <div class="jixie__logo jixie__logo--right"> <span>Powered by</span> <div class="jixie__logo__img"> <img src="https://asset.kompas.com/data/2017/widget/images/logo-persona.png" alt=""> </div> </div> --> </div> <div class="wSpec-list"> <!-- loader --> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> <div class="wSpec-item"> <a href="#"> <div class="wSpec-wrap"> <div class="wSpec-img"> <div class="wSpec-img-overlay"> <img src="" alt=""> </div> </div> <div class="wSpec-box"> <p class="wSpec-subtitle"></p> <h4 class="wSpec-title"></h4> <div class="wSpec-source"></div> </div> </div> </a> </div> </div> </div> <!-- (ads.under.rekomendasi) --> <script async> console.log('show_rekomendasi_konten_pilihan_untukmu'); let content_tags = document.querySelector('meta[name="content_tags"]').content; let title = document.querySelector('title').innerHTML; /** * General Helper function with DOM elements creation * @returns */ function createElement(tag, id, defaultClass, customClasses, iHTML) { var elm = document.createElement(tag); if (id) elm.id = id; if (defaultClass) elm.className = defaultClass; if (customClasses && customClasses.length > 0) { customClasses.forEach(function(cls) { elm.classList.add(cls); }); } if (iHTML) elm.innerHTML = iHTML; return elm; } function createElementFromHTML(htmlString) { var div = document.createElement('div'); div.innerHTML = htmlString.trim(); // Change this to div.childNodes to support multiple top-level nodes. return div.firstChild; } /** * General helper function * @param {*} basicInfo (an obj containing client_id, sid, cohort, accountid, widget, pageurl * whenever possible) * needed by Jixie * * This function constructs the url to call the recommendation endpoint, fires the request * returns a promise which should resolves to an array of objects * * Note we also call resolve in case of error. Just easier to report the error in the code that calls it */ function fetchRecommendationsP(infoObj, jxUserInfo) { let body = null; let url = null; // if (infoObj.engine.type == 'api-1') { // let s = ''; // ["accountid", "pageurl", "widget_id", "type", "keywords", "title", "customid", "count"].forEach(function(pname) { // if (infoObj[pname]) // s += (pname == "accountid" ? '?' : '&') + pname + '=' + encodeURIComponent(infoObj[pname]); // }); // if (localStorage.getItem('_jxcht') !== null) { // s += '&cohort=' + localStorage.getItem('_jxcht'); // } // url = infoObj.engine.url + s; // } else if (infoObj.engine.type == 'api-2') { body = { "pageurl": "https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco", "count": 10, "algo": "mixed", "uid": getCookie('kmps_usrid'), "ukid": getCookie('ukid'), "pagetype": infoObj.engine.page_status, "excludeitemids": infoObj.engine.excludeitemids, "multiFormat": infoObj.engine.multiFormat }; body = JSON.stringify(body) url = infoObj.engine.url; } else if (infoObj.engine.type == 'api-3') { url = infoObj.engine.url; } return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest(); xhr.open(infoObj.engine['method'], url); xhr.onreadystatechange = function() { if (this.readyState == 4 && this.status >= 200 && this.status < 300) { trackEventGa('AIML Article Recommendation', 'Content Request', 'algsrc=' + infoObj.engine['tracker_algsrc'] + ',site=TRAVEL,device=desktop,status=success') resolve(JSON.parse(xhr.response)); } else if (this.readyState == 4 && this.status < 200 || this.status >= 300) { trackEventGa('AIML Article Recommendation', 'Content Request', 'algsrc=' + infoObj.engine['tracker_algsrc'] + ',site=TRAVEL,device=desktop,status=fail,response=' + this.status) resolve(null); } } xhr.onerror = function() { resolve(null); } xhr.send(body); }); } /** * General helper function * @param {*} fileUrl string * returns a promise which should resolves to true if all goes well */ function fetchJSFileP(fileUrl) { return new Promise(function(resolve, reject) { var tag = document.createElement("script"); var fst = document.getElementsByTagName("script")[0]; fst.parentNode.insertBefore(tag, fst); tag.onload = function() { resolve(); }; tag.src = fileUrl; }); }; /** * Click handler; A BOUND version is wired up to a particular DOM * element as the click handler * @param {*} url * @param {*} pos * @returns */ function handleClick(jxRecHelper0, url, pos) { /*** * JXRECSDK NOTES 5 of 5 calling * Call clicked(pos) of helper object to report a click * Here pos is the index of the item (starts from 1) */ jxRecHelper0.clicked(pos); //we need the position of the item in the widget // window.open(url); // open in new tab window.location = url; //open in current tab return false; } const cssClasses = { thumbnail_overlay_wrapper: 'wSpec-img-overlay', thumbnail_wrapper: 'wSpec-img', thumbnail: 'lozad', category: 'wSpec-subtitle', title: 'wSpec-title', container: 'wSpec-list', wrapper: 'wSpec-item', wrapper_content: 'wSpec-wrap', text_wrapper: 'wSpec-box', source: 'wSpec-source' }; function createDisplay(rand, container, resultObj, jxRecHelper) { return new Promise(function(resolve, reject) { let widgetWrapper = document.createElement('div'); widgetWrapper.classList.add(cssClasses.container); //OWN container.appendChild(widgetWrapper); let widgetItemArr = []; try { var engine_info = ''; var algsrc = ''; if (resultObj.hasOwnProperty('options')) { if(resultObj.options.group=='jm_kompas'){ engine_info = '&engine=J'; algsrc = 'J'; }else if(resultObj.options.group=='kg_internal'){ engine_info = '&engine=C'; algsrc = 'C'; }else{ engine_info = '&engine=V'; algsrc = 'V'; } } else { engine_info = '&engine=C'; algsrc = 'C'; } var items = resultObj.items; if (items.length > 0) { let counterNews = 0; while (counterNews <= 14) { items.some(function(item, index) { counterNews++; if (counterNews > 14) { return true; } let divid = `recItem-${rand}-${index}`; let itemUrl = item.url; var objArr = {}; objArr['divid'] = divid; objArr['id'] = jxRecHelper.jxUrlCleaner(itemUrl), objArr['pos'] = index; // objArr['img'] = item.img; if (resultObj.engine['type'] == 'api-2') { if (item.category == 'sponsored') { objArr['type'] = 'ad'; } else { objArr['type'] = 'page'; } } else { if (item.type == 'ad') { objArr['type'] = 'ad'; } else { objArr['type'] = 'page'; } } if (resultObj.engine['type'] == 'api-1') { objArr['algo'] = item.a; // a label to represent the algo used (opsional) } else if (resultObj.engine['type'] == 'api-2') { objArr['algo'] = item.methodId; // a label to represent the algo used (opsional) } if (item.type == 'ad') { objArr['trackers'] = item.trackers; } widgetItemArr.push(objArr); /* note: We have this -rand- thing in the div id (this is just * because want the div id to be unique on the page as * in case more than 1 widget is embedded on the page) */ var recItem = createElement('div', `recItem-${rand}-${index}`, null, [cssClasses.wrapper]); recItem.dataset.index = index; var recItemWrapper = createElement('div', null, null, [cssClasses.wrapper_content]); var imgWrapper = createElement('div', null, null, [cssClasses.thumbnail_wrapper]); var imgElm = createElement('img', null, null, null); imgElm.setAttribute('data-src', item.img); imgElm.setAttribute('class', 'lozad'); var imgOverlayWrapper = createElement('div', null, null, [cssClasses.thumbnail_overlay_wrapper]); var imgOverlay = createElement('img', null, null, null); imgOverlay.setAttribute('data-src', 'https://asset.kompas.com/data/logo/logo-kompascom-aiml.png'); imgOverlay.setAttribute('class', 'lozad'); imgOverlayWrapper.appendChild(imgOverlay); if (item.itemType == 'video' && item.hasOwnProperty('duration')) { var videoDuration = createElement('div', null, null, ['wSpec-duration', 'latestDuration'], item.duration); imgWrapper.appendChild(videoDuration); } imgWrapper.appendChild(imgElm); imgWrapper.appendChild(imgOverlayWrapper); var itemCategory = '' if (item.hasOwnProperty('category')) { itemCategory = item.category if (item.itemType == 'video') { itemCategory = 'video'; } } if (resultObj.engine['type'] == 'api-3') { var categoryDiv = createElement('p', null, null, [cssClasses.category], item.section.toLowerCase().charAt(0).toUpperCase() + item.section.toLowerCase().slice(1)); } else { var categoryDiv = createElement('p', null, null, [cssClasses.category], itemCategory.toLowerCase().charAt(0).toUpperCase() + itemCategory.toLowerCase().slice(1)); } var tracker_params = resultObj.engine['tracker_params'] + engine_info; // checking query params in itemUrl var tempItemUrl = new URL(itemUrl) if (tempItemUrl.search) { tracker_params = tracker_params.replace('?', '&') } // ads if ( (item.hasOwnProperty('category') && item.category == 'sponsored') // engine C || (item.hasOwnProperty('type') && item.type == 'ad') // engine V || (item.hasOwnProperty('section') && item.section == 'sponsored') // engine J ) { var categoryDiv = createElement('p', null, null, ['wSpec-tag'], 'Sponsored'); tracker_params = ''; } else if ((item.hasOwnProperty('category') && item.category == 'Advertorial')) { var categoryDiv = createElement('p', null, null, ['wSpec-tag'], item.category); } else { recItem.dataset.url = itemUrl; // button option var buttonOption = createElementFromHTML(`<button class="button buttonMeatball" aria-label="Article Setting" data-dropdown="option"><span class="icoMeatball"></span></button>`); // reaction popup meatball var reactionPopup = createElementFromHTML(` <div class="listPop"> <div class="listPop__item"> <button class="button buttonShare listPop__button"> <span class="icoBase icoShare"></span> Bagikan artikel </button> </div> <div class="listPop__item"> <button class="button buttonBookmark listPop__button" aria-label="Bookmark Article"> <span class="icoBase icoBookmark"></span> Simpan artikel </button> </div> <div class="listPop__item"> <button class="button buttonNotInterest listPop__button"> <span class="icoBase icoStop"></span> Tidak tertarik </button> </div> <div class="listPop__item"> <button class="button listPop__button" onclick="hideMeatball()"> <span class="icoBase icoClose"></span> Tutup </button> </div> </div>`); var wSpecStop = createElementFromHTML(` <div class="wSpec-stop"> Konten disembunyikan.<br> Muat ulang halaman untuk perbarui rekomendasi. <button class="button wSpec-stop-undo">Urungkan</button> </div>`); reactionPopup.querySelector('.buttonShare').setAttribute('data-title', item.title); reactionPopup.querySelector('.buttonShare').setAttribute('data-url', itemUrl); reactionPopup.querySelector('.buttonShare').setAttribute('data-campaign', 'AIML_Widget_Desktop'); let userFeedback = new UserFeedback(resultObj.engine['tracker_algsrc'], itemUrl + tracker_params, jxRecHelper, index); reactionPopup.querySelector('.buttonBookmark').addEventListener('click', function() { do_bookmark(itemUrl, index, userFeedback); }); reactionPopup.querySelector('.buttonShare').addEventListener('click', function() { userFeedback.event('share'); }); reactionPopup.querySelector('.buttonNotInterest').addEventListener('click', function() { if (getCookie('kmps_usrid')) { hideThisArt(this); userFeedback.event('not-interested'); } else { const parentAction = this.parentElement.parentElement.parentElement if (!!parentAction) { let indexElement = parentAction.getAttribute('data-index') if (indexElement != 'undefined') { localStorage.setItem('reaction_not_interest_temp', JSON.stringify({ urlpage: items[indexElement].url })) } } window.location.href = "https://account.kompas.com/login/a29tcGFz/" + btoa(window.location.href); } }); /** * trigger action "userFeedback" that user not interest item before, when not interest without login */ if (getCookie('kmps_usrid') && localStorage.getItem('reaction_not_interest_temp')) { const tempUrlNotInterest = JSON.parse(localStorage.getItem('reaction_not_interest_temp')) if (itemUrl == tempUrlNotInterest.urlpage) { userFeedback.event('not-interested'); localStorage.removeItem('reaction_not_interest_temp'); } } wSpecStop.querySelector('.wSpec-stop-undo').addEventListener('click', function() { showThisArt(this); userFeedback.event('un-not-interested'); }); recItem.appendChild(buttonOption); recItem.appendChild(reactionPopup); recItem.appendChild(wSpecStop); } var recItemWrapperA = createElement('a', null, null, null); recItemWrapperA.setAttribute('href', itemUrl + tracker_params); var titleDiv = createElement('h4', null, null, [cssClasses.title]); var titleTextNode = document.createTextNode(item.title); if (item.itemType == 'video') { var iconVideo = createElement('div', null, null, ['icoInline', 'icoVideo']); iconVideo.style.marginRight = '5px'; titleDiv.appendChild(iconVideo); } titleDiv.appendChild(titleTextNode); var sourceDiv = null; if (item.hasOwnProperty('method')) { sourceDiv = createElement('div', null, null, [cssClasses.source], resultObj.engine['type'] + ' . ' + item.method.toUpperCase()); } else { var sourceDiv = createElement('div', null, null, [cssClasses.source], resultObj.engine['type']); } var textWrapper = createElement('div', null, null, [cssClasses.text_wrapper]); textWrapper.appendChild(categoryDiv); textWrapper.appendChild(titleDiv); textWrapper.appendChild(sourceDiv); recItemWrapper.appendChild(imgWrapper); recItemWrapper.appendChild(textWrapper); recItemWrapperA.appendChild(recItemWrapper); recItem.appendChild(recItemWrapperA); widgetWrapper.appendChild(recItem); // hook up the click handler for this item // recItem.onclick = handleClick.bind(null, jxRecHelper, itemUrl + tracker_params, index); recItemWrapperA.onclick = handleClick.bind(null, jxRecHelper, itemUrl + tracker_params, index); }); } // end while var endDate = new Date(); var loadtime = (endDate.getTime() - startDate.getTime()); trackEventGa('AIML Article Recommendation', 'Content Loaded', 'algsrc='+algsrc+',site=TRAVEL,device=desktop,loadtime=' + loadtime) let domain = window.location.hostname; if(domain=='www.kompas.com'){ var url=window.location.href.split("/"); domain=url[2]+'/'+url[3] } let user_subs_type = "Gues"; let subs_type = ""; let is_lgn = 0; let engine = algsrc; if(getCookie('kmps_usrid')){is_lgn=1}; let time_load = loadtime; resolve(); /*** * JXRECSDK NOTES 3 of 5 - * pass all the info about the items to the rec helper * each one is an object: ALL MANDATORY * div * id * pos */ jxRecHelper.items(widgetItemArr); /*** * JXRECSDK NOTES 4 of 5 - * Call the ready() of the helper object when the recommendation * results have been populated to the widget * (This will register the action=ready event) */ if (resultObj.engine['type'] == 'api-1') { jxRecHelper.ready(resultObj.options.algo + ":" + resultObj.options.version); } else { jxRecHelper.ready(resultObj.engine['type']); } } else { jxRecHelper.error(204); console.error("Error: no recommendation items"); return; } } catch (err) { jxRecHelper.error(901); console.log(err.stack); let domain = window.location.hostname; if(domain=='www.kompas.com'){ var url=window.location.href.split("/"); domain=url[2]+'/'+url[3] } let user_subs_type = "Gues"; let subs_type = "" let is_lgn = 0; let engine = algsrc; if(getCookie('kmps_usrid')){is_lgn=1}; let endDate = new Date(); let time_load = (endDate.getTime() - startDate.getTime()); } }); } const _jxRecSdkURL = 'https://scripts.jixie.media/jxrecsdk.1.0.min.js'; var startDate = new Date(); class OneWidget { constructor() { //this is also the one we will pass to the JX rec helper object when //we instantiate it: //In this implementation most of these come from the options obj //on the publisher page. this._options = { accountid: '9262bf2590d558736cac4fff7978fcb1', pageurl: 'https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco', widget_id: '1000183-6xWeiWZFIM', type: 'pages', container: 'rekomendasi-konten-pilihan-untukmu-aiml', keywords: content_tags, title: title, customid: "27", count: 14, }; this._containerId = this._options.container; this._container = document.getElementById(this._containerId); this._engines = [{"url":"https:\/\/recommendation.jixie.media\/v1\/recommendation","method":"GET","pageurl":"https:\/\/travel.kompas.com\/read\/2017\/04\/25\/060300827\/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco","system":"jx","type":"api-1","tracker_params":"?source=widgetML","tracker_algsrc":"V","count":14,"page_status":"read","excludeitemids":"20170425060300827"}]; } kickOff() { startDate = new Date(); const rand = Math.floor(Math.random() * 1000); /*const randSystem = Math.floor(Math.random() * 3); this._engine = this._engines[randSystem] if (location.hostname.indexOf('lestari') != -1) { this._engine = this._engines[1] }*/ this._engine = this._engines[0]; this._options.system = this._engine['system'] trackEventGa('AIML Article Recommendation', 'Widget load', 'algsrc=' + this._engine['tracker_algsrc'] + ',site=TRAVEL,device=desktop') let promJXSDK = fetchJSFileP(_jxRecSdkURL); let thisObj = this; // first we wait on the JX REC SDK to be loaded and initialized let recHelperObj = null; let recResults = null; promJXSDK .then(function() { /*** * JXRECSDK NOTES 1 of 5 - INSTANTIATION OF A JX REC HELPER OBJECT * Call this AFTER JX REC SDK is loaded but BEFORE you call your REC * backend. * * param: MANDATORY options object * options object must at a minimal have * accountid: get from jixie * widgetid: get from jixie * container: DIV ID of the destination div to house the widget * (for jixie widget this is just the options object passed from the page) * * (This will also register the action=load event) */ recHelperObj = jxRecMgr.createJxRecHelper(thisObj._options); let basicInfo = thisObj._options; basicInfo.engine = thisObj._engine if (basicInfo.engine.type == 'api-1') { var options = { count: basicInfo['count'], adpositions: "", keywords: basicInfo['keywords'], title: basicInfo['title'], date_published: "2017-04-25", pagecategory: "TRAVEL", algo: "mixed" }; if(getCookie('kmps_usrid')){ var kg = { pagetype:basicInfo.engine.page_status, uid:getCookie('kmps_usrid'), ukid:getCookie('kmp_uid') } if(basicInfo.engine.page_status=='read'){ kg['excludeitemids'] = basicInfo.engine.excludeitemids; kg['multiFormat'] = true; } options['additional'] = { kg:kg }; } return recHelperObj.getJxRecommendations(options); } else { return fetchRecommendationsP(basicInfo, recHelperObj.getJxUserInfo()); } }) .then(function(resp) { if (thisObj._engine.type == 'api-3') { recResults = new Object recResults.items = resp.docs.result; } else { recResults = resp; } recResults.engine = thisObj._engine; if (!resp || !recResults.items || recResults.items.length == 0) { /*** * JXRECSDK NOTES 2 of 5 - * Call the error() function on the recHelper when either an error * has occured in the fetching or there are no recommended items * * (This will register the action=error event) */ recHelperObj.error(204); throw "no recommendation results"; } }) .then(function() { // everything is ready (recommendation results, css): document.getElementById("rekomendasi-konten-pilihan-untukmu-aiml").classList.remove("-loading"); document.querySelector('.wSpec-list').remove(); createDisplay(rand, thisObj._container, recResults, recHelperObj) .then(function() { toggleDropdown(); //observe lozad lozad('.lozad', { load: function(el) { el.src = el.dataset.src; el.onload = function() { el.classList.add('fade') } } }).observe() }) }) .catch(function(error) { console.log(`Unable to create recommendations widget ${error.stack} ${error.message}`); }); } } var limit_gtm_ready = 1; function check_gtm_ready() { if ('ga' in window) { // create a new instance of our widget based on the options const newW = new OneWidget(); newW.kickOff(); } else { const timeout_gtm_ready = setTimeout(check_gtm_ready, 500) limit_gtm_ready += 1; if (limit_gtm_ready > 10) { clearTimeout(timeout_gtm_ready); const newW = new OneWidget(); newW.kickOff(); } } } check_gtm_ready() document.querySelector('.wSpec-secret').addEventListener('click', function(e) { e.preventDefault(); let wSl = document.querySelectorAll('.wSpec-source'); if (wSl.length > 0) { for (let i = 0; i < wSl.length; i++) { wSl[i].classList.toggle('show') } } }) function trackEventGa(category, action, label) { if ("ga" in window) { ga(function() { tracker = ga.getAll()[0]; if (tracker) { tracker.send("event", category, action, label); console.log('track event ', category, action, label) } }) } } function formBody(obj) { let formBody = []; for (var property in obj) { let encodedKey = encodeURIComponent(property); let encodedValue = encodeURIComponent(obj[property]); formBody.push(encodedKey + "=" + encodedValue); } return formBody.join("&"); } function getCookie(name) { var name = name + '='; var cookies = decodeURIComponent(document.cookie).split(';'); for (var i = 0; i < cookies.length; i++) { var c = cookies[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } } function get_guid(url) { const videoPath = url.match(/\/watch\/(\d+)/); if (videoPath) { return `video.${videoPath[1]}`; } let arrayUrl = url.split('/'); let readPath = arrayUrl.indexOf('read'); if (arrayUrl[readPath + 1] == 'xml') { readPath += 1; } let year = arrayUrl[readPath + 1]; let month = arrayUrl[readPath + 2]; let date = arrayUrl[readPath + 3]; let id = arrayUrl[readPath + 4]; let guid = `.xml.${year}.${month}.${date}.${id}`; return guid; } function toggleDropdown() { let tdd = document.querySelectorAll('[data-dropdown]') if (!!tdd) { tdd.forEach((el) => { el.addEventListener('click', function() { el.parentElement.classList.toggle('-active') let saved = el.parentElement.getAttribute('data-saved') let kmps_usrid = getCookie('kmps_usrid'); if (kmps_usrid && !saved && el.parentElement.classList.contains('-active')) { let url = el.parentElement.getAttribute('data-url'); let guid = get_guid(url); check_bookmark( kmps_usrid, guid ).then(function(resp) { if (resp.hasOwnProperty('total_data')) { if (resp.total_data > 0) { el.parentElement.querySelector('.buttonBookmark').classList.add('-active'); el.parentElement.querySelector('.buttonBookmark').innerHTML = '<span class="icoBase icoBookmark"></span>Hapus dari tersimpan'; el.parentElement.setAttribute('data-saved', 'true'); } else { el.parentElement.setAttribute('data-saved', 'false'); } } }) } }) document.addEventListener("click", function(e) { // console.log(e.target) if (el.contains(e.target)) { // console.log(tdd) } else { el.parentElement.classList.remove('-active') } }); }); } } function check_bookmark(kmps_usrid, guid) { let url = `https://api.kompas.com/2021/reaction/bookmark/list?kmps_usrid=${kmps_usrid}&guid=${guid}`; return new Promise(function(resolve, reject) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { resolve(JSON.parse(this.responseText)) } }; xmlhttp.open("GET", url, true); xmlhttp.send(); }); } function do_bookmark(pageurl, pos, userFeedback) { const wSpecItem = document.querySelector(`.wSpec-item[data-index="${pos}"]`); const btnBookmark = wSpecItem.querySelector('.buttonBookmark'); const kmps_usrid = getCookie('kmps_usrid'); const guid = get_guid(pageurl); const type = pageurl.match(/\/watch\/(\d+)/) ? 'video' : 'article'; if (kmps_usrid) { if (btnBookmark.classList.contains('-active')) { set_unbookmark({ guid: guid, kmps_usrid: kmps_usrid, type: type }).then(function(resp) { btnBookmark.classList.remove('-active'); btnBookmark.innerHTML = '<span class="icoBase icoBookmark"></span>Simpan artikel'; reactionToast('Artikel berhasil dihapus dari list yang disimpan'); userFeedback.event('un-save'); }).catch(function(resp) { // message: "Data doesn't exists" if (resp.hasOwnProperty('message') && resp.message.includes('exist')) { btnBookmark.classList.remove('-active'); btnBookmark.innerHTML = '<span class="icoBase icoBookmark"></span>Simpan artikel'; reactionToast('Artikel berhasil dihapus dari list yang disimpan'); } }) } else { const user_bookmark_url = "https://activity.kompas.com/saved?order=desc"; set_bookmark({ guid: guid, kmps_usrid: kmps_usrid, type: type, publisher: 'kompas', platform: 'desktop' }).then(function(resp) { btnBookmark.classList.add('-active'); btnBookmark.innerHTML = '<span class="icoBase icoBookmark"></span>Hapus dari tersimpan'; reactionToast('Artikel berhasil disimpan', user_bookmark_url); userFeedback.event('save'); }).catch(function(resp) { // message: "Data already exist" if (resp.hasOwnProperty('message') && resp.message.includes('exist')) { btnBookmark.classList.add('-active'); btnBookmark.innerHTML = '<span class="icoBase icoBookmark"></span>Hapus dari tersimpan'; reactionToast('Artikel berhasil disimpan', user_bookmark_url); } }) } } else { const login_url = "https://account.kompas.com/login/a29tcGFz/" + btoa(window.location.href); window.location.href = login_url; } } function set_bookmark(data) { const url = "https://api.kompas.com/2021/reaction/bookmark/add"; return new Promise(function(resolve, reject) { const xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 201) { resolve(JSON.parse(this.responseText)); } else if (this.readyState == 4 && this.status == 400) { reject(JSON.parse(this.responseText)); } }; xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8"); xmlhttp.send(formBody(data)); }); } function set_unbookmark(data) { const url = "https://api.kompas.com/2021/reaction/bookmark/delete"; return new Promise(function(resolve, reject) { const xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { resolve(JSON.parse(this.responseText)); } else if (this.readyState == 4 && this.status == 400) { reject(JSON.parse(this.responseText)); } }; xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8"); xmlhttp.send(formBody(data)); }); } class UserFeedback { constructor(engine, pageurl, jxRecHelper, pos) { this.engine = engine; this.pageurl = pageurl; this.jxRecHelper = jxRecHelper; this.pos = pos; } event(feedback) { if (this.engine == 'C') { const xmlhttp = new XMLHttpRequest(); let params = { domain: 'kompas.com', ce_userid: getCookie('kmps_usrid'), ce_sessionid: getCookie('ukid'), ce_pageurl: this.pageurl, engine: 'C', ce_feedback: feedback } xmlhttp.open("GET", 'https://apis.kgdata.dev/v1/aiml/feedback-widgetml' + formatParams(params)); xmlhttp.send(); } else if (this.engine == 'V') { if (feedback == 'share') { this.jxRecHelper.shared(this.pos); } else if (feedback == 'save') { this.jxRecHelper.bookmarked(this.pos); } else if (feedback == 'not-interested') { this.jxRecHelper.hidden(this.pos); } else if (feedback == 'un-not-interested') { this.jxRecHelper.unhidden(this.pos); } } } } function formatParams(params) { return "?" + Object .keys(params) .map(function(key) { return key + "=" + encodeURIComponent(params[key]) }) .join("&") } document.addEventListener("click", function(e){ let dx = document.querySelectorAll('[data-dropdown]') if(dx) { dx.forEach(function(el){ if(el.contains(e.target)) { el.parentElement.classList.toggle('-active') } else { el.parentElement.classList.remove('-active') } }) } }) </script> <div class="info-banner clearfix" data-slider="true"> <a href="https://play.kompas.com/?source=kompascomplay"> <div class="info-banner-header"> <div class="info-banner-logo"> <img class="lozad" data-src="https://asset.kompas.com/data/2017/wp/images/info/logo-kompas-play.png" alt="Kompas.com Play"> <img data-src="https://asset.kompas.com/data/2017/mobile/images/play/logo-kompas-play-dark.png" alt="Kompas.com Play" class="lozad info-banner-logo-dark"> </div> <span class="info-banner-idx">Lihat Semua</span> </div> </a> <div class="info-banner-list"> <ul> <li> <a id="kompasplay-1" href="https://activity.kompas.com/voucher?source=article"> <div class="info-banner-list-img" data-placeholder="Ada hadiah spesial untuk pembaca setia"> <img class="lozad" data-src="https://asset.kompas.com/crops/iYx0ZujfrJjMcMsuC5SYvChcjjU=/0x0:0x0/300x200/data/photo/2024/11/14/673593075b836.jpg" alt="Voucher Spesial, Klaim Sekarang!"> </div> <h4 class="info-banner-list-title">Voucher Spesial, Klaim Sekarang!</h4> </a> </li> <li> <a id="kompasplay-2" href="https://play.kompas.com/kuis/tts/168/tts-eps-137-yuk-lebaran"> <div class="info-banner-list-img" data-placeholder="Setelah berpuasa, saatnya kita lebaran"> <img class="lozad" data-src="https://asset.kompas.com/crops/TynnqBFsrNQz8xCLUzi_d0jw3BI=/0x0:0x0/300x200/data/photo/2024/04/03/660cf50778558.jpeg" alt="TTS Eps 137: Yuk Lebaran"> </div> <h4 class="info-banner-list-title">TTS Eps 137: Yuk Lebaran</h4> </a> </li> <li> <a id="kompasplay-3" href="https://play.kompas.com/kuis/tts/167/tts-eps-136-takjil-khas-di-indonesia"> <div class="info-banner-list-img" data-placeholder="Biar ga laper, yuk nebak nama takjil"> <img class="lozad" data-src="https://asset.kompas.com/crops/sLf5Cp7G3xgGfkSDID6_ml7VwlM=/0x0:0x0/300x200/data/photo/2024/04/03/660d14ef2343b.jpeg" alt="TTS Eps 136: Takjil Khas di Indonesia"> </div> <h4 class="info-banner-list-title">TTS Eps 136: Takjil Khas di Indonesia</h4> </a> </li> <li> <a id="kompasplay-4" href="https://play.kompas.com/kuis/tts/166/tts-eps-135-serba-serbi-ramadhan"> <div class="info-banner-list-img" data-placeholder="Santuy boleh, tapi tetap sambil mikir yaa"> <img class="lozad" data-src="https://asset.kompas.com/crops/WWQpdtn2qKq_KikAaWX1bLBAn78=/0x0:0x0/300x200/data/photo/2024/03/13/65f1559331415.jpeg" alt="TTS Eps 135: Serba Serbi Ramadhan"> </div> <h4 class="info-banner-list-title">TTS Eps 135: Serba Serbi Ramadhan</h4> </a> </li> <li> <a id="kompasplay-5" href="https://play.kompas.com/games/start/21/kata-kita?source=play"> <div class="info-banner-list-img" data-placeholder="Adu Ketangkasanmu di Game Kata Kita!"> <img class="lozad" data-src="https://asset.kompas.com/crops/KrRiNbA9qXOIILt9Ul8uLXXaf5c=/0x0:0x0/300x200/data/photo/2022/09/06/6316c4c3db90a.jpg" alt="Games Permainan Kata Bahasa Indonesia"> </div> <h4 class="info-banner-list-title">Games Permainan Kata Bahasa Indonesia</h4> </a> </li> <li> <a id="kompasplay-6" href="https://play.kompas.com/kuis/tts/159/tts-teka-teki-santuy-eps-128-serba-serbi-demokrasi?source=play"> <div class="info-banner-list-img" data-placeholder="Ayo tantang pikiranmu dan perluas pengetahuanmu!"> <img class="lozad" data-src="https://asset.kompas.com/crops/Ix98Da73GDXw1sTOmPfHEgjNvQI=/0x0:0x0/300x200/data/photo/2024/01/24/65b0dd40ddacf.png" alt="TTS - Serba serbi Demokrasi"> </div> <h4 class="info-banner-list-title">TTS - Serba serbi Demokrasi</h4> </a> </li> <li> <a id="kompasplay-7" href="https://play.kompas.com/kuis/tts/161/tts-teka-teki-santuy-eps-130-tebak-tebakan-garing?source=play"> <div class="info-banner-list-img" data-placeholder="Ayo tantang pikiranmu, sebarapa jayus kamu!"> <img class="lozad" data-src="https://asset.kompas.com/crops/AcCtHoTA-g5L11M2QGm60aois9o=/0x0:0x0/300x200/data/photo/2024/01/31/65ba17b99df24.png" alt="TTS Eps 130 - Tebak-tebakan Garing"> </div> <h4 class="info-banner-list-title">TTS Eps 130 - Tebak-tebakan Garing</h4> </a> </li> <li> <a id="kompasplay-8" href="https://play.kompas.com/kuis/tts/156/tts-teka-teki-santuy-eps-127-musik-yang-paling-mengguncang?source=play"> <div class="info-banner-list-img" data-placeholder="Ayo tantang pikiranmu dan perluas pengetahuanmu!"> <img class="lozad" data-src="https://asset.kompas.com/crops/VrWTpxJUdXg8fa36cn1_fDcsyqI=/0x0:0x0/300x200/data/photo/2024/01/11/65a00f23ea9ff.png" alt="TTS - Musik Yang Paling Mengguncang"> </div> <h4 class="info-banner-list-title">TTS - Musik Yang Paling Mengguncang</h4> </a> </li> </ul> </div> </div> <br> <div class="native-wrap"> <div id='div-gpt-ad-974648810682144181-4112'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-974648810682144181-4112'); }); </script> </div> </div> <br /> <!-- Rek Video --> <!-- kg media player --> <div class="video-box-thumb kgnowGate"> <div class="rVideo-thumbnail --rVideo_read"> <iframe id="rVideo-embed-thumb" width="100%" height="274" src="" title="" frameborder="0" scrolling="no" allow="encrypted-media" > </iframe> <div class="rVideo-box"> </div> </div> </div> <!-- read tag--> <!-- berita terkait--> </div> </div> <!-- (ads.center) --> <div class="ads-partner-wrap mgidaiml" style="height: 463px"> <!-- Start Recreativ --> <div id="bn_z2JX3WVxCr"></div><script>'use strict';(function(C,b,m,r){function t(){b.removeEventListener("scroll",t);f()}function u(){p=new IntersectionObserver(a=>{a.forEach(n=>{n.isIntersecting&&(p.unobserve(n.target),f())})},{root:null,rootMargin:"400px 200px",threshold:0});p.observe(e)}function f(){(e=e||b.getElementById("bn_"+m))?(e.innerHTML="",e.id="bn_"+v,q={act:"init",id:m,rnd:v,ms:w},(d=b.getElementById("rcMain"))?c=d.contentWindow:D(),c.rcMain?c.postMessage(q,x):c.rcBuf.push(q)):g("!bn")}function E(a,n,F,y){function z(){var h= n.createElement("script");h.type="text/javascript";h.src=a;h.onerror=function(){k++;5>k?setTimeout(z,10):g(k+"!"+a)};h.onload=function(){y&&y();k&&g(k+"!"+a)};F.appendChild(h)}var k=0;z()}function D(){try{d=b.createElement("iframe"),d.style.setProperty("display","none","important"),d.id="rcMain",b.body.insertBefore(d,b.body.children[0]),c=d.contentWindow,l=c.document,l.open(),l.close(),A=l.body,Object.defineProperty(c,"rcBuf",{enumerable:!1,configurable:!1,writable:!1,value:[]}),E("https://go.rcvlink.com/static/main.js", l,A,function(){for(var a;c.rcBuf&&(a=c.rcBuf.shift());)c.postMessage(a,x)})}catch(a){B(a)}}function B(a){g(a.name+": "+a.message+"\t"+(a.stack?a.stack.replace(a.name+": "+a.message,""):""))}function g(a){console.error(a);(new Image).src="https://go.rcvlinks.com/err/?code="+m+"&ms="+((new Date).getTime()-w)+"&ver="+G+"&text="+encodeURIComponent(a)}try{var G="231101-0007",x=location.origin||location.protocol+"//"+location.hostname+(location.port?":"+location.port:""),e=b.getElementById("bn_"+m),v=Math.random().toString(36).substring(2, 15),w=(new Date).getTime(),p,H=!("IntersectionObserver"in C),q,d,c,l,A;e?"scroll"==r?b.addEventListener("scroll",t):"lazy"==r?H?f():"loading"==b.readyState?b.addEventListener("DOMContentLoaded",u):u():f():"loading"==b.readyState?b.addEventListener("DOMContentLoaded",f):g("!bn")}catch(a){B(a)}})(window,document,"z2JX3WVxCr",""); </script> <!-- End Recreativ --> </div> <!-- rekomendasi --> <!-- widget kompasiana --> <!-- komentar--> <link rel="stylesheet" href="https://asset.kompas.com/data/2023/09/20/kompascom/desktop/css/style-comment-v2.min.css"> <script type="text/javascript"> function makeBold(text) { // Use a regular expression to find all occurrences of $//$ // and replace them with <b> and </b> tags var replacedText = text.replace(/\$\/\/\$(.*?)\$\/\/\$/g, ', membalas komentar <b>$1</b> : '); return replacedText; } function getCookieKcm(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function gen_widget_comment(komentar, totalComment, urlPage) { var container = document.getElementById('widget-comment-bottom'); if (container !== null) { if (totalComment > 0) { let commentText = makeBold(komentar[0].comment_text); let komentar_fullname = komentar[0].user_fullname.split(' '); let initial = komentar_fullname[0].charAt(0).toUpperCase(); if (komentar_fullname[1]) { initial += komentar_fullname[1].charAt(0).toUpperCase(); } var widget = `<div class="commentWrap --comment_v2 "> <div id="komentar" class="row comment --newcomment ga--comment clearfix"> <div class="commentHead"> <div class="commentHead-title"> Komentar </div> </div> <div id="for_comment_widget"> <div class="comment__list --first_comment"> <div class="commentItem"> <div class="commentAvatar" data-init="${initial}"> </div> <div class="commentRow clearfix"> <div class="commentContent"> <div class="commentContent-inner">${commentText}</div> </div> </div> </div> </div> </div> <div class="commentMore"> <a href="${urlPage}" class="commentMore-link">${totalComment} Komentar</a> </div> </div> </div>`; } else { var widget = `<div class="commentWrap --comment_v2 "> <div id="komentar" class="row comment --newcomment ga--comment clearfix"> <div class="commentHead"> <div class="commentHead-title"> Berikan Komentar </div> </div>`; var e = getCookieKcm('kmp_uid'); if (e == '') { widget += `<div data-komentar-url="${urlPage}" id="commentFormLogin" class="commentModal-overlay">`; } else { widget += `<div onclick="location.href = '${urlPage}';" class="commentModal-overlay">`; } widget += `<div class="commentForm-box"> <!-- form --> <div class="commentForm"> <form action="#"> <textarea class="commentTextarea txtstuff" name="comment" cols="30" rows="auto" placeholder="Tulis komentar"></textarea> <button type="button" class="comment__button send" onclick="commentSubmit(this, 'Berhasil berkomentar', 'reply', 'commentItem-');"> <span class="icon-send">Kirim</span> </button> </form> </div> <div class="commentDisclaimer">Isi komentar sepenuhnya adalah tanggung jawab pengguna dan diatur dalam UU ITE</div> </div> </div> </div> </div>`; } container.innerHTML = widget; } } var ajax_loader = "https://asset.kompas.com/data/2017/widget/comment/desktop/images/loading.gif"; //Load Comment $.get("https://apis.kompas.com/api/comment/v2/list?urlpage=https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco&json&limit=1", function(result) { // console.log(result.result); if (window.location.href.includes('#comment_widget')) { document.getElementById("comments").focus(); } gen_widget_comment(result.result.komentar, result.result.total, 'https://travel.kompas.com/komentar/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco'); var url = 'https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco'; if (result.result.total > 0) { // Pin var pc = result.result.pinned_comments; if (pc.length === 0) { firstComment = result.result.komentar; } else { firstComment = pc; } var komentar_item = '<div class="comment__list">'; $.each(firstComment, function(index, value) { komentar_reply = value.comment_text.split('$//$'); komentar_fullname = value.user_fullname.split(' ') fullname = komentar_fullname[0].charAt(0).toUpperCase() if (komentar_fullname[1]) { fullname += komentar_fullname[1].charAt(0).toUpperCase() } komentar_item += '<div class="comment__item">'; komentar_item += '<div class="comment__avatar" data-init="' + fullname + '"></div>' komentar_item += '<div class="comment__row clearfix">' komentar_item += '<div class="comment__user" id="uname_' + value.comment_id + '">' + value.user_fullname + '</div>' komentar_item += '<div class="comment__date" id="tgl_' + value.comment_id + '"> <span class="icon icon-clock"></span> ' + formatDateComment(new Date(1000 * value.comment_time), 'dddd, d MMM yyyy | HH:mm WIB') + ' </div>' komentar_item += '<div class="comment__report sticky">' komentar_item += '<button class="comment__button action" onclick="reportCommentForm(\'modals-report\',\'' + value.comment_id + '\')"><span class="icon icon-exclamation"></span> Laporkan</button>' komentar_item += '</div>' komentar_item += '</div>' komentar_item += '<div class="comment__row clearfix">' if (komentar_reply[1]) { komentar_fullname_reply = komentar_reply[1].split(' ') fullname_reply = komentar_fullname_reply[0].charAt(0).toUpperCase() if (komentar_fullname_reply[1]) { fullname_reply += komentar_fullname_reply[1].charAt(0).toUpperCase() } komentar_item += '<div class="comment__reply__list">' komentar_item += '<div class="comment__item">' komentar_item += '<div class="comment__avatar" data-init="' + fullname_reply + '"></div>' komentar_item += '<div class="comment__row clearfix">' komentar_item += '<div class="comment__user">' + komentar_reply[1] + '</div>' komentar_item += '</div>' komentar_item += '<div class="comment__row clearfix">' komentar_item += '<div class="comment__content">' komentar_item += komentar_reply[2] komentar_item += '</div>' komentar_item += '</div>' komentar_item += '</div>' komentar_item += '</div>' } komentar_item += '<div class="comment__content" id="cont_' + value.comment_id + '"> <span>' + komentar_reply[0] + '</span> </div>' komentar_item += '</div>' komentar_item += '<div class="comment__row clearfix">' komentar_item += '<div class="comment__action">' komentar_item += '<div class="comment__subitem">' komentar_item += '<input type="hidden" id="like_' + value.comment_id + '" value="0">' komentar_item += '<button type="button" id="button_like_' + value.comment_id + '" class="comment__button action" onclick="likedislikeComment(\'' + value.comment_id + '\', \'like\')"><span class="icon icon-thumbs-up"></span> <span id="total_like_' + value.comment_id + '">' + value.num_like + '</span></button>' komentar_item += '</div>' komentar_item += '<div class="comment__subitem">' komentar_item += '<input type="hidden" id="dislike_' + value.comment_id + '" value="0">' komentar_item += '<button type="button" id="button_dislike_' + value.comment_id + '" class="comment__button action" onclick="likedislikeComment(\'' + value.comment_id + '\', \'dislike\')"><span class="icon icon-thumbs-down"></span> <span id="total_dislike_' + value.comment_id + '">' + value.num_dislike + '</span></button>' komentar_item += '</div>' komentar_item += '<div class="comment__subitem">' komentar_item += '<button onclick="replyComment(\'' + value.comment_id + '\')" class="comment__button action"><span class="icon icon-reply"></span> Balas</button>' komentar_item += '</div>' if (value.is_flagged == '1') { komentar_item += '<div class="comment__subitem comment__subitem--right">' komentar_item += '<button type="button" class="comment__button action comment__tooltips" data-tooltips="Komentar Terpilih Kompas.com"><span class="icon icon-flagged"></span></button>' komentar_item += '</div>' } komentar_item += '</div>' komentar_item += '</div>' komentar_item += '<div class="comment__row clearfix" id="reply_form_' + value.comment_id + '" style="display: none">' komentar_item += '<div class="comment__subitem" style="float: right;">' komentar_item += '<button class="comment__button action" style="color: #ff6b6b" onclick="closeForm(\'' + value.comment_id + '\')" id=><span class="icon icon-close"></span> Batal</button>' komentar_item += '</div>' komentar_item += '<div class="comment__content">' komentar_item += '<input type="hidden" id="uname-' + value.comment_id + '" value="">' komentar_item += '<input type="hidden" name="" id="tgl-' + value.comment_id + '" value="">' komentar_item += '<input type="hidden" id="content-' + value.comment_id + '">' komentar_item += '<textarea class="comment__textarea" name="comments" id="comments_reply_' + value.comment_id + '" cols="20" rows="3" placeholder="Tulis komentar anda..." onKeyDown="limitText(this,300);" onKeyUp="limitText(this,300);"></textarea>' komentar_item += '<div class="comment__row comment__form__footer clearfix">' komentar_item += '<div class="comment__subitem">' komentar_item += '<button type="button" class="comment__button send" onclick="insertComment(\'' + value.comment_id + '\')" id="btnkirim-' + value.comment_id + '">Kirim</button>' komentar_item += '</div>' komentar_item += '<div class="comment__subitem">' komentar_item += '<button href="javascript:void(0)" class="comment__button action" id="btnLoading-' + value.comment_id + '" style="display: none;">Mengirim...</button>' komentar_item += '</div>' komentar_item += '</div>' komentar_item += '</div>' komentar_item += '</div>' komentar_item += '</div>' }); komentar_item += '</div>'; if (result.result.total > 1) { komentar_item += '<div class="comment__footer"><div id="image_loadmore"></div><a href="https://travel.kompas.com/komentar/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco" class="comment__other" target="_parent">Lihat Semua Komentar (' + result.result.total + ')</a></div>'; } } else { komentar_item = '<div class="comment__list"><div class="comment--empty text-center"><span class="comment__counter comment__counter--inline"></span>Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!</div></div> <div class="comment__list" style="display: none"></div>'; } // var comment_cookie = getCookieKcm('comment'); // document.getElementById("comments").value = comment_cookie; // document.getElementById("for_comment").innerHTML = komentar_item; var x = document.getElementsByClassName("total_comment"); if (result.result.total > 0) { if (typeof document.getElementsByClassName("total_comment_share")[0] !== 'undefined') { document.getElementsByClassName("total_comment_share")[0].innerHTML = result.result.total; } for (i = 0; i < x.length; i++) { x[i].innerHTML = result.result.total; } } var list = document.getElementsByClassName("comment__avatar"), w = document.documentElement.clientWidth; function stringToHslColor(t) { t = t.toUpperCase(); for (var o = 0, e = 0; e < t.length; e++) { var n = (o = t.charCodeAt(e)) - 64; if (e > 0) r = (r + ((o << 5) - o)) % 360, l += n * Math.floor(2.5), i -= n * Math.floor(30 / 26); else var r = Math.floor(360 / 26 * n), l = 30, i = 80 } return "hsl(" + r + "," + l + "%, " + i + "%)" } function applyHSLColor(t, o) { t.style.backgroundColor = stringToHslColor(o) } function scrollTo(t, o, e) { if (!(e <= 0)) { var n = (o - t.scrollTop) / e * 10; setTimeout(function() { t.scrollTop = t.scrollTop + n, t.scrollTop != o && scrollTo(t, o, e - 10) }, 10) } } function findPos(t) { var o = 0; if (t.offsetParent) { for (; o += t.offsetTop, t = t.offsetParent;); return [o] } } for (var i = 0; i < list.length; i++) { var t = list[i].getAttribute("data-init"); applyHSLColor(list[i], t) } var btntop = document.getElementById("comment-buble"); btntop && btntop.addEventListener("click", function(t) { t.preventDefault(); var o = findPos(document.getElementById(this.getAttribute("href").substring(1))); scrollTo(document.documentElement, o - 100, 200) }); }); function formatDateComment(date, format, utc) { var MMMM = ["\x00", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var MMM = ["\x01", "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"]; var dddd = ["\x02", "Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]; var ddd = ["\x03", "Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"]; function ii(i, len) { var s = i + ""; len = len || 2; while (s.length < len) s = "0" + s; return s; } var y = utc ? date.getUTCFullYear() : date.getFullYear(); format = format.replace(/(^|[^\\])yyyy+/g, "$1" + y); format = format.replace(/(^|[^\\])yy/g, "$1" + y.toString().substr(2, 2)); format = format.replace(/(^|[^\\])y/g, "$1" + y); var M = (utc ? date.getUTCMonth() : date.getMonth()) + 1; format = format.replace(/(^|[^\\])MMMM+/g, "$1" + MMMM[0]); format = format.replace(/(^|[^\\])MMM/g, "$1" + MMM[0]); format = format.replace(/(^|[^\\])MM/g, "$1" + ii(M)); format = format.replace(/(^|[^\\])M/g, "$1" + M); var d = utc ? date.getUTCDate() : date.getDate(); format = format.replace(/(^|[^\\])dddd+/g, "$1" + dddd[0]); format = format.replace(/(^|[^\\])ddd/g, "$1" + ddd[0]); format = format.replace(/(^|[^\\])dd/g, "$1" + ii(d)); format = format.replace(/(^|[^\\])d/g, "$1" + d); var H = utc ? date.getUTCHours() : date.getHours(); format = format.replace(/(^|[^\\])HH+/g, "$1" + ii(H)); format = format.replace(/(^|[^\\])H/g, "$1" + H); var h = H > 12 ? H - 12 : H == 0 ? 12 : H; format = format.replace(/(^|[^\\])hh+/g, "$1" + ii(h)); format = format.replace(/(^|[^\\])h/g, "$1" + h); var m = utc ? date.getUTCMinutes() : date.getMinutes(); format = format.replace(/(^|[^\\])mm+/g, "$1" + ii(m)); format = format.replace(/(^|[^\\])m/g, "$1" + m); var s = utc ? date.getUTCSeconds() : date.getSeconds(); format = format.replace(/(^|[^\\])ss+/g, "$1" + ii(s)); format = format.replace(/(^|[^\\])s/g, "$1" + s); var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); format = format.replace(/(^|[^\\])fff+/g, "$1" + ii(f, 3)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])ff/g, "$1" + ii(f)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])f/g, "$1" + f); var T = H < 12 ? "AM" : "PM"; format = format.replace(/(^|[^\\])TT+/g, "$1" + T); format = format.replace(/(^|[^\\])T/g, "$1" + T.charAt(0)); var t = T.toLowerCase(); format = format.replace(/(^|[^\\])tt+/g, "$1" + t); format = format.replace(/(^|[^\\])t/g, "$1" + t.charAt(0)); var tz = -date.getTimezoneOffset(); var K = utc || !tz ? "Z" : tz > 0 ? "+" : "-"; if (!utc) { tz = Math.abs(tz); var tzHrs = Math.floor(tz / 60); var tzMin = tz % 60; K += ii(tzHrs) + ":" + ii(tzMin); } format = format.replace(/(^|[^\\])K/g, "$1" + K); var day = (utc ? date.getUTCDay() : date.getDay()) + 1; format = format.replace(new RegExp(dddd[0], "g"), dddd[day]); format = format.replace(new RegExp(ddd[0], "g"), ddd[day]); format = format.replace(new RegExp(MMMM[0], "g"), MMMM[M]); format = format.replace(new RegExp(MMM[0], "g"), MMM[M]); format = format.replace(/\\(.)/g, "$1"); return format; }; //Cek if not login then redirect // $("#comments").on('click', function() { // var e = getCookieKcm('kmp_uid'); // if(e == ''){ // window.top.location.href = document.getElementById("login_url").value; // } // }); //Limit character to LimitNum=300 function limitText(limitField, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else { // document.getElementById("countdown").innerHTML = limitNum - limitField.value.length; } } //Insert comment function insertComment(commentId) { var e = getCookieKcm('kmp_uid'); if (e == '') { document.cookie = "comment=" + document.getElementById("comments").value; window.top.location.href = document.getElementById("login_url").value; } else { var xml_path = document.getElementById("urlpage").value; // var article_url = document.referrer; var article_url = document.getElementById("urlpage").value; var token = getCookieKcm('kmp_uid'); var type = getCookieKcm('kmp_lgn') == 'kompas' ? 'kid' : 'sc'; var loginwith = getCookieKcm('lgn_w'); var data = {}; data['xml_path'] = xml_path; data['article_url'] = article_url; data['token'] = token; data['acc_type'] = type; data['loginwith'] = getCookieKcm('lgn_w'); data['reply_comment_id'] = commentId; if (commentId != "") { var uname = document.getElementById("uname-" + commentId).value; var content = document.getElementById("content-" + commentId).value; var comments = document.getElementById("comments_reply_" + commentId).value; data['uname'] = uname; data['content'] = content; data['comments'] = comments; } else { var comments = document.getElementById("comments").value; data['comments'] = comments; } if (comments == "" || comments.trim().length == 0) { alert("Komentar tidak boleh kosong!"); } else { if (commentId != "") { $("#btnkirim-" + commentId).css("display", "none"); $("#btnLoading-" + commentId).css("display", "block"); } else { $("#btnkirim").css("display", "none"); $("#btnLoading").css("display", "block"); } $.post("https://apis.kompas.com/api/comment/insert/v2", data, function(result) { if (result.status == false) { if (result.message == "Silahkan Login dahulu untuk memberi komentar.") { window.top.location.href = result.loginUrl; } else { alert(result.message); } $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); } else { if ($("div").hasClass("comment__board")) { $(".comment__board").css("display", "none"); $(".comment__list").css("display", "block"); } $(".comment__list").prepend(result.view); if (commentId != "") { $("#btnkirim-" + commentId).css("display", "inline"); $("#btnLoading-" + commentId).css("display", "none"); closeForm(commentId); } else { $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); $("#comments").val(''); } document.cookie = "comment="; // showKgModalJernihKomentar(data); } }).fail(function(err) { $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); window.top.location.href = "https://account.kompas.com/login/a29tcGFz/aHR0cDovL3d3dy5rb21wYXMuY29t?source=kompas.com&medium=komentar"; }); } } } //Reply comment function replyComment(commentId) { // case 1 comment only let oneCom = document.getElementById('for_comment'); if (!!oneCom) { oneCom.style.height = 'auto' } var uname = document.getElementById("uname_" + commentId).innerText; var date = document.getElementById("tgl_" + commentId).innerText; var content = document.getElementById("cont_" + commentId).innerText; document.getElementById("reply_form_" + commentId).style.display = "block"; document.getElementById("comments_reply_" + commentId).focus(); document.getElementById("uname-" + commentId).value = uname; document.getElementById("tgl-" + commentId).value = date; document.getElementById("content-" + commentId).value = content; } //Close reply comment function closeForm(commentId) { $("#reply_form_" + commentId).css("display", "none"); $("#uname-" + commentId).val(""); $("#tgl-" + commentId).val(""); $("#content-" + commentId).val(""); } //Like dislike comment function likedislikeComment(commentId, type) { var data = {}; data['xml_path'] = document.getElementById("urlpage").value; data['comment_id'] = commentId; data['type'] = type; data['total_like'] = document.getElementById("like_" + commentId).value; data['total_dislike'] = document.getElementById("dislike_" + commentId).value; data['token'] = getCookieKcm('kmp_uid'); data['acc_type'] = getCookieKcm('kmp_lgn') == 'kompas' ? 'kid' : 'sc'; data['loginwith'] = getCookieKcm('lgn_w'); $.post("https://apis.kompas.com/api/comment/likedislike/v2", data, function(result) { if (result.status == true) { $("#like_" + commentId).val(result.total_like); $("#dislike_" + commentId).val(result.total_dislike); $("#total_like_" + commentId).html(result.total_like); $("#total_dislike_" + commentId).html(result.total_dislike); if (type == 'like') { $('#button_like_' + commentId).attr('disabled', 'disabled'); $('#button_dislike_' + commentId).removeAttr('disabled', 'disabled'); } else { $('#button_like_' + commentId).removeAttr('disabled', 'disabled'); $('#button_dislike_' + commentId).attr('disabled', 'disabled'); } } else { $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); window.top.location.href = document.getElementById("login_url").value; } }); } </script> <script> var mall = document.querySelector('.modals__content'); var comment_id = 0; var comment_text = ''; var alasan_id = 0; var alasan_text = ''; function laporkanComment(modalsId) { var e = getCookieKcm('kmp_uid'); if (e == '') { window.top.location.href = document.getElementById("login_url").value; } var data = {}; comment_text = document.getElementById("cont_" + comment_id).innerText; data['comment_id'] = comment_id; data['comment_text'] = comment_text; data['alasan_id'] = alasan_id; data['alasan_text'] = alasan_text; data['token'] = getCookieKcm('kmp_uid'); data['acc_type'] = getCookieKcm('kmp_lgn') == 'kompas' ? 'kid' : 'sc'; data['loginwith'] = getCookieKcm('lgn_w'); $.post("https://apis.kompas.com/api/comment/laporkan/v2", data, function(result) { showModals(modalsId); }); } function reportCommentForm(modalsId, id) { var e = getCookieKcm('kmp_uid'); if (e == '') { window.top.location.href = document.getElementById("login_url").value; } else { comment_id = id; showModals(modalsId); } } function reportCommentSuccess(modalsId) { laporkanComment(modalsId); } function showModals(modalsId) { var md = document.getElementById('kcm-modals'); var cl = document.getElementById(modalsId); if (!!md) { if (!!cl) { // clear first var fc = md.firstElementChild; clearModalsContent(fc); // add body class and clone element document.body.classList.add('modals'); var ox = cl.cloneNode(true); fc.appendChild(ox); } else { console.log('unknown modal target'); return; } } else { console.log('template modals not found'); return; } } // event handler for element inside modals must be here if (!!mall) { //console.log(mall); mall.addEventListener('click', function(e) { // dismiss modals if (e.target.matches('.cReport__button[data-type="dismiss"]')) { dismissModals(); } // dismiss modals if (e.target.matches('.cReport__button[data-type="dismiss-reload"]')) { dismissReloadModals(); } // remove disabled attribute if (e.target.matches('input[type="radio"]')) { remDisabledBtn('.cReport__button[disabled="disabled"]'); } }); } function dismissModals() { var md = document.getElementById('kcm-modals'); if (!!md) { document.body.classList.remove('modals'); var fc = md.firstElementChild; clearModalsContent(fc); } } function dismissReloadModals() { var md = document.getElementById('kcm-modals'); if (!!md) { document.body.classList.remove('modals'); var fc = md.firstElementChild; clearModalsContent(fc); window.location.reload(); } } function clearModalsContent(el) { while (el.firstChild) { el.removeChild(el.firstChild); } } function remDisabledBtn(el) { var ol = mall.querySelectorAll(el)[0]; if (!!ol) { //console.log(ol); ol.classList.remove('disabled'); ol.removeAttribute('disabled'); } } function showOthers(e) { alasan_id = e.control.defaultValue; alasan_text = e.innerText; var ls = e.nextElementSibling; var lq = document.querySelectorAll('.cReport__other'); lq.forEach(function(item) { item.classList.remove('show'); }); if (!!ls) { ls.classList.add('show'); ls.children[0].focus(); // console.log(ls.children[0].value); } } function valueOthers(e) { alasan_text = e.value; } </script> <!-- terkini--> <div class="row mt2 clearfix"> <div class="title clearfix"> <h2 class="title__content">Terkini Lainnya</h2> </div> <div class="latest ga--latest mt2 clearfix"> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/190700827/5-strategi-kemenpar-maksimalkan-pergerakan-wisatawan-saat-nataru" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/KT986cF1Sy0MJZrfUYIfptPKrvU=/14x0:1920x1271/177x117/data/photo/2022/01/21/61eabd02b96b1.jpg" alt="5 Strategi Kemenpar Maksimalkan Pergerakan Wisatawan Saat Nataru"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/190700827/5-strategi-kemenpar-maksimalkan-pergerakan-wisatawan-saat-nataru" target="_parent">5 Strategi Kemenpar Maksimalkan Pergerakan Wisatawan Saat Nataru</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 19:07 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/180300927/tips-camping-di-musim-hujan-agar-tetap-nyaman" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/jQkhnT6R4P2nuYJeNtK4HmaqLMY=/0x0:750x500/177x117/data/photo/2021/10/25/61762047afd72.jpg" alt="Tips Camping di Musim Hujan agar Tetap Nyaman"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/180300927/tips-camping-di-musim-hujan-agar-tetap-nyaman" target="_parent">Tips Camping di Musim Hujan agar Tetap Nyaman</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 18:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/170500427/ich-festival-2024-dekatkan-13-warisan-budaya-tak-benda-indonesia-ke-generasi" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/6CUxWP6XjIrxF3hLCdIyOTFosYU=/0x0:1799x1199/177x117/data/photo/2024/11/24/6742f25fcd5c1.jpg" alt="ICH Festival 2024, Dekatkan 13 Warisan Budaya Tak Benda Indonesia ke Generasi Muda"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/170500427/ich-festival-2024-dekatkan-13-warisan-budaya-tak-benda-indonesia-ke-generasi" target="_parent">ICH Festival 2024, Dekatkan 13 Warisan Budaya Tak Benda Indonesia ke Generasi Muda</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 17:05 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/160300927/jadwal-kereta-api-rute-jakarta-surabaya-libur-natal-2024" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/OLAlTkxtYCFZW7oa8HyLU1W5-cU=/0x0:2048x1365/177x117/data/photo/2019/11/09/5dc69ef7d4edf.jpg" alt="Jadwal Kereta Api Rute Jakarta - Surabaya Libur Natal 2024"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/160300927/jadwal-kereta-api-rute-jakarta-surabaya-libur-natal-2024" target="_parent">Jadwal Kereta Api Rute Jakarta - Surabaya Libur Natal 2024</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 16:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/150300127/pengelola-kebun-binatang-di-kota-batu-keberatan-ppn-12-persen" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/HX3oXfNibeZpg4JlGaEcMZVRKf8=/0x0:483x322/177x117/data/photo/2021/09/21/6149d6c4551c0.jpg" alt="Pengelola Kebun Binatang di Kota Batu Keberatan PPN 12 Persen"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/150300127/pengelola-kebun-binatang-di-kota-batu-keberatan-ppn-12-persen" target="_parent">Pengelola Kebun Binatang di Kota Batu Keberatan PPN 12 Persen</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 15:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/140300427/rute-menuju-bukit-kacapi-dari-pusat-kota-tasikmalaya" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/yylYwdWdc_3NMw7KFeqVSeX8z8A=/0x252:960x892/177x117/data/photo/2024/11/24/6742a768b2c2d.jpg" alt="Rute Menuju Bukit Kacapi dari Pusat Kota Tasikmalaya"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/140300427/rute-menuju-bukit-kacapi-dari-pusat-kota-tasikmalaya" target="_parent">Rute Menuju Bukit Kacapi dari Pusat Kota Tasikmalaya</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 14:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/130400827/bukit-kacapi--harga-tiket-jam-buka-dan-lokasi" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/9_9gBEGCOoDLgnEngEHBvirvuZA=/0x79:1080x799/177x117/data/photo/2024/11/24/6742a7689216c.jpg" alt="Bukit Kacapi: Harga Tiket, Jam Buka dan Lokasi"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/130400827/bukit-kacapi--harga-tiket-jam-buka-dan-lokasi" target="_parent">Bukit Kacapi: Harga Tiket, Jam Buka dan Lokasi</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 13:04 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/120100127/10.395-orang-pesan-tiket-kereta-tujuan-malang-saat-libur-nataru" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/kSmL3QQOp1tQEiiH1zLNNipv73c=/0x0:0x0/177x117/data/photo/2024/04/16/661e2ae4acec7.jpg" alt="10.395 Orang Pesan Tiket Kereta Tujuan Malang Saat Libur Nataru"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/120100127/10.395-orang-pesan-tiket-kereta-tujuan-malang-saat-libur-nataru" target="_parent">10.395 Orang Pesan Tiket Kereta Tujuan Malang Saat Libur Nataru</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 12:01 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/111100927/7-hal-yang-tidak-boleh-dilewatkan-saat-berlibur-di-korea-selatan" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/ATcl3q-V0LpRCUbIPjDQnvKLtv0=/23x0:608x390/177x117/data/photo/2016/11/14/2348004pasar-nam-1780x390.jpeg" alt="7 Hal yang Tidak Boleh Dilewatkan Saat Berlibur di Korea Selatan"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/111100927/7-hal-yang-tidak-boleh-dilewatkan-saat-berlibur-di-korea-selatan" target="_parent">7 Hal yang Tidak Boleh Dilewatkan Saat Berlibur di Korea Selatan</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 11:11 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/100300627/harga-tiket-kereta-api-rute-jakarta-surabaya-libur-natal-2024" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/MBvXktp-_ATQlIgvMR6aUa7vcLw=/0x90:800x624/177x117/data/photo/2024/09/27/66f5ef10ae57c.jpg" alt="Harga Tiket Kereta Api Rute Jakarta - Surabaya Libur Natal 2024"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/100300627/harga-tiket-kereta-api-rute-jakarta-surabaya-libur-natal-2024" target="_parent">Harga Tiket Kereta Api Rute Jakarta - Surabaya Libur Natal 2024</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">24/11/2024, 10:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/090900927/7-rekomendasi-destinasi-saat-liburan-di-korea-selatan" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/lF6asyH7eiMWy-sDpika065nH14=/0x0:1280x853/177x117/data/photo/2019/09/23/5d888817a7244.jpg" alt="7 Rekomendasi Destinasi Saat Liburan di Korea Selatan"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/090900927/7-rekomendasi-destinasi-saat-liburan-di-korea-selatan" target="_parent">7 Rekomendasi Destinasi Saat Liburan di Korea Selatan</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 09:09 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/24/070700727/10-bandara-terbaik-untuk-tidur-selama-singgah-dan-penundaan" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/NP6y-VZ2GFbPtL7Q0kINghz8HrM=/135x0:1431x864/177x117/data/photo/2023/04/18/643e0fb209ab6.jpg" alt="10 Bandara Terbaik untuk Tidur Selama Singgah dan Penundaan"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/24/070700727/10-bandara-terbaik-untuk-tidur-selama-singgah-dan-penundaan" target="_parent">10 Bandara Terbaik untuk Tidur Selama Singgah dan Penundaan</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travelpedia</div> <div class="article__date">24/11/2024, 07:07 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/23/190700527/tarif-masuk-pantai-pasir-padi-pangkalpinang-jadi-rp-4.000-mulai-2025" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/lMTnkR27GMStXqIB5cP082i28RI=/0x0:0x0/177x117/data/photo/2024/08/18/66c1ff2fd7537.jpg" alt="Tarif Masuk Pantai Pasir Padi Pangkalpinang Jadi Rp 4.000 Mulai 2025"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/23/190700527/tarif-masuk-pantai-pasir-padi-pangkalpinang-jadi-rp-4.000-mulai-2025" target="_parent">Tarif Masuk Pantai Pasir Padi Pangkalpinang Jadi Rp 4.000 Mulai 2025</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">23/11/2024, 19:07 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/23/180300527/jadwal-kereta-api-rute-jakarta-solo-libur-natal-2024" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/7UnwxMwPXWPJyUPON_T9DC02u9M=/0x0:1000x667/177x117/data/photo/2020/01/27/5e2eceffe0a69.jpg" alt="Jadwal Kereta Api Rute Jakarta - Solo Libur Natal 2024"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/23/180300527/jadwal-kereta-api-rute-jakarta-solo-libur-natal-2024" target="_parent">Jadwal Kereta Api Rute Jakarta - Solo Libur Natal 2024</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">23/11/2024, 18:03 WIB</div> </div> <div class="clearfix"></div> </div> <div class="article__list clearfix"> <div class="article__list__asset clearfix"> <div class="article__asset"><a href="https://travel.kompas.com/read/2024/11/23/170500627/promo-pilkada-2024-di-ancol-diskon-tiket-masuk-40-persen" target="_parent"><img class="lozad" data-src="https://asset.kompas.com/crops/5GVam-mhW4FWbLT_7yR0vbTDBDU=/0x60:1600x1127/177x117/data/photo/2023/05/10/645b5ac90bd08.jpg" alt="Promo Pilkada 2024 di Ancol, Diskon Tiket Masuk 40 Persen"/></a></div> </div> <div class="article__list__title"> <h3 class="article__title article__title--medium"><a class="article__link" href="https://travel.kompas.com/read/2024/11/23/170500627/promo-pilkada-2024-di-ancol-diskon-tiket-masuk-40-persen" target="_parent">Promo Pilkada 2024 di Ancol, Diskon Tiket Masuk 40 Persen</a></div> </h3> <div class="article__list__info"> <div class="article__subtitle article__subtitle--inline ">Travel News</div> <div class="article__date">23/11/2024, 17:05 WIB</div> </div> <div class="clearfix"></div> </div> </div> <div class="text-center mt2 clearfix"><div class="paging__wrap clearfix"><div class="paging__item"><a class="paging__link paging__link--active" href="javascript:void(0)">1</a></div><div class="paging__item"><a class="paging__link" href="https://indeks.kompas.com?site=travel&page=2">2</a></div><div class="paging__item"><a class="paging__link" href="https://indeks.kompas.com?site=travel&page=3">3</a></div><div class="paging__item"><a class="paging__link paging__link--next" href="https://indeks.kompas.com?site=travel&page=2" rel="next">Next</a></div></div></div> </div> </div> <div class="col-bs10-3"> <div class="kcm kcm__big clearfix js-giant-wp-top1"> <div class="kcm kcm__track clearfix"> <div class="kcm kcm__sticky clearfix"> <div id='div-gpt-ad-Giant' style="text-align: center;"> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Giant'); }); </script> </div> </div> </div></div> <div class="gate-kgplus"> <span>Baca berita tanpa iklan. <a href="https://traid.jixie.io/sync/ck?desturl=https%3A%2F%2Fplus.kompas.com%2F%3Fsource%3DKompas.com%26medium%3Dbelowads%26campaign%3DBacaBeritaTanpaIklan&cid=3085&cpid=804">Gabung Kompas.com+</a></span> </div> <div class="row mt2 clearfix"> <div class="kcm kcm__track clearfix"> <div class="kcm kcm__sticky clearfix"> <!-- s: Rectangle Sticky --> <link rel="stylesheet" type="text/css" href="https://adsimg.kompas.com/html5/assets_ads/rectangle-sticky-read/css/sticky_style.css?v=1"> <div class="sticky__rectangle"> <div id='div-gpt-ad-Right_3'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Right_3'); }); </script> </div> </div> <script type="text/javascript" src="https://adsimg.kompas.com/html5/assets_ads/rectangle-sticky-read/js/jquery-scrolltofixed-min.js"></script> <script type="text/javascript"> $(document).ready(function() { $(window).bind("load", function () { $('.sticky__rectangle').scrollToFixed({ marginTop: 46, limit: $('.sticky__rectangle').offset().top + 0, zIndex: 11, unfixed: function() { if ($('.sticky__rectangle').hasClass("scroll-to-fixed-fixed")) { $('.sticky__rectangle').css('left', ''); $('.sticky__rectangle').css('top', ''); } } }); }); }); </script> <!-- e: Rectangle Sticky --> </div> </div> </div> <div class="gate-kgplus"> <span>Baca berita tanpa iklan. <a href="https://traid.jixie.io/sync/ck?desturl=https%3A%2F%2Fplus.kompas.com%2F%3Fsource%3DKompas.com%26medium%3Dbelowads%26campaign%3DBacaBeritaTanpaIklan&cid=3085&cpid=804">Gabung Kompas.com+</a></span> </div> <!-- widget newsletter --> <!-- video pilihan sidebar --> <!-- kg media player --> <div class="video-box-wrap sidebar inline kgnowGate"> <div class="rVideo-player"> <button class="rVideo-button" type="button"><span>Hide</span></button> <iframe id="rVideo-embed-sidebar" width="100%" height="274" src="" title="" frameborder="0" scrolling="no" allow="encrypted-media" > </iframe> </div> <div class="rVideo-list rVideo-scroll rVideo-js"> </div> <div class="rVideo-other"><a target="_blank" href="https://www.kgnow.com?source=KOMPASCOM&position=detail_lihatsemua__thumbnail_1">Lihat semua <span class="icoArrow"></span></a></div> <script> var videoIds = []; var videoNext = []; var scrl = 0; var param_engine = '' function getVideo() { var rvJixie = new XMLHttpRequest(); rvJixie.onreadystatechange = function() { if (this.readyState == 4){ let statusapi = this.status; if ("ga" in window) { ga(function() { tracker = ga.getAll()[0]; if (tracker){ tracker.send("event", "KG Player", "APIS Req", statusapi); console.log('track kgplayer', statusapi) } }) } } if (this.readyState == 4 && this.status == 200) { let response = JSON.parse(rvJixie.responseText); let status = response.status if (status) { let items = response.items var html_video_rec_thumb = ''; var rvList = ''; let videoItems = items.slice(0, 5) videoItems.forEach(function(item, index) { //populate our simple array videoIds.push(item.video_id); var cls = '' var title_url = item.title; var url_video = 'https://www.kgnow.com/watch/'+item.video_id+'/'+urlTitle(item.title)+'?source=KOMPASCOM&position=detail_sidebar__thumbnail_1'; if(index != 0){ rvList += `<div id="rVideo-item-${item.video_id}" class="rVideo-item ${cls}" data-video-index="${index}"> <a target="_blank" href="${url_video}" class="rVideo-link"> <div class="rVideo-thumb"> <span class="rVideo-length">${timeFormatJixie(item.length)}</span> <img src="${item.thumbnail}" alt="${item.title}"> </div> <div class="rVideo-box"> <h4 class="rVideo-title">${item.title}</h4> <div class="rVideo-player-info"> <span class="rVideo-subtitle">KGNow!</span> <span class="rVideo-date">${timeSince(item.date_publish)}</span> </div> </div> </a> </div>` } if(index==2){ html_video_rec_thumb += ` <h4 class="rVideo-title">${item.title}</h4> <span class="rVideo-date">${timeSince(item.date_publish)}</span> ` } if(index==1){ html_video_carousel = ` <a target="_blank" href="${'https://www.kgnow.com/watch/'+item.video_id+'/'+urlTitle(item.title)}?source=KOMPASCOM&position=detail_photo__thumbnail_1" tabindex="0"> <div class="photoCarousel-img"> <img src="${item.thumbnail}" alt="${item.title}"> </div> <div class="photoCarousel-duration"> ${timeFormatJixie(items[1].length)} </div> </a> ` } }) document.querySelector('.rVideo-list').innerHTML = rvList; // video thumbnail document.getElementById('rVideo-embed-thumb').src = 'https://www.kgnow.com/embed/'+videoIds[2]+'?thumbnail=on&accountid=9262bf2590d558736cac4fff7978fcb1&customid=DETAIL_INLINE_PLAYER_0&source=KOMPASCOM&position=detail_inline__player_0&thumbnail=on&domain_referral=kompascom'; document.querySelector('.video-box-thumb .rVideo-box').innerHTML = html_video_rec_thumb; // video sidebar document.getElementById('rVideo-embed-sidebar').src = 'https://www.kgnow.com/embed/'+videoIds[0]+'?autoplay=wifi&detail=on&accountid=9262bf2590d558736cac4fff7978fcb1&customid=DETAIL_SIDEBAR_PLAYER_1&source=KOMPASCOM&position=detail_sidebar__player_1&thumbnail=off&domain_referral=kompascom&site=TRAVEL&section=FOOD-STORY'+param_engine if(document.querySelector('.photoCarousel-item.video')){ document.querySelector('.photoCarousel-item.video').innerHTML = html_video_carousel; } for (let index = 0; index < items.length; index++) { if(index > 0 && items[index].embed_url && document.getElementById('youtube_embed_1')){ document.getElementById('youtube_embed_1').src = items[index].embed_url.replace('https://www.youtube.com/embed/','https://video.kompas.com/video/ima/'); break; } } } } } let description = document.querySelector('meta[name="description"]').content let keywords = document.querySelector('meta[name="content_tags"]').content param_engine = '&engine=J' let data = { "description": description, "keywords": keywords, "page_id": "2017/04/25/060300827", "source" : "Bearer d0e98884322b2eb5d6beacc1648f5dc7" } rvJixie.open("POST", "https://apis.kompas.com/api/widget/video", true); rvJixie.send(JSON.stringify(data)); } getVideo(); // sticky function function setInline(kgpl){ let qa = isVisible(kgpl); if(qa) { kgpl.classList.remove('hide'); kgpl.classList.add('inline'); scrl = 1 } else { if(scrl==1) { kgpl.classList.remove('inline'); } } } function setSticky2() { let kgpl = document.getElementsByClassName('video-box-wrap')[0]; if(!!kgpl) { // close kgplayer let kgbtn = kgpl.getElementsByClassName('rVideo-button')[0]; if(!!kgbtn) { kgbtn.addEventListener('click', function(e){ kgpl.classList.toggle('hide'); }); } window.addEventListener('scroll', function(){ setInline(kgpl) }); } } function isVisible(el) { let rto = 9 / 16 * 300; let kgtop = rto + 325 + 60 + 90 + 55; let kgbottom = 55 + rto; let rect = el.getBoundingClientRect(); return ( rect.top >= 0 - kgbottom && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) + kgtop && rect.right <= (window.innerWidth || document.documentElement.clientWidth) ); } setSticky2(); function dateFormatJixie(value) { const monthText = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']; if (value) { const dateJixie = new Date(value); return dateJixie.getDate() + ' ' + monthText[dateJixie.getMonth()] + ' ' + dateJixie.getFullYear(); } else { return ""; } } function timeFormatJixie(value) { if (value) { const timeJixie = value.split(':'); if (timeJixie[0] == '00') { return timeJixie[1] + ':' + timeJixie[2]; } else { return value; } } else { return ""; } } function timeSince(value) { if (typeof value !== 'object') { date = new Date(value); } var seconds = Math.floor((new Date() - date) / 1000); var intervalType; var interval = Math.floor(seconds / 31536000); if (interval >= 1) { intervalType = 'tahun yang lalu'; } else { interval = Math.floor(seconds / 2592000); if (interval >= 1) { intervalType = 'bulan yang lalu'; } else { interval = Math.floor(seconds / 86400); if (interval >= 1) { intervalType = 'hari yang lalu'; } else { interval = Math.floor(seconds / 3600); if (interval >= 1) { intervalType = "jam yang lalu"; } else { interval = Math.floor(seconds / 60); if (interval >= 1) { intervalType = "menit yang lalu"; } else { interval = seconds; intervalType = "detik yang lalu"; } } } } } return interval + ' ' + intervalType; } function urlTitle(value){ return value.toLowerCase().replaceAll(' ','-').replace(/[^a-zA-Z0-9\-]/g, ''); } </script> </div> <!-- terpopuler--> <!-- terpopuler--> <div class="most ga--most mt1 clearfix"> <div class="title title--center clearfix"> <h2 class="title__content">Terpopuler</h2> </div> <div class="most__wrap clearfix"> <div class="most__list clearfix"> <div class="most__count">1</div> <a class="most__link" href="https://travel.kompas.com/read/2024/11/24/070700727/10-bandara-terbaik-untuk-tidur-selama-singgah-dan-penundaan"> <h4 class="most__title">10 Bandara Terbaik untuk Tidur Selama Singgah dan Penundaan</h4> </a> </div> <div class="most__list clearfix"> <div class="most__count">2</div> <a class="most__link" href="https://travel.kompas.com/read/2024/11/23/150300927/menpar-sebut-bali-bukan-terlalu-padat-tetapi-persebaran-wisatawan-yang-tidak"> <h4 class="most__title">Menpar Sebut Bali Bukan Terlalu Padat, tetapi Persebaran Wisatawan yang Tidak Merata</h4> </a> </div> <div class="most__list clearfix"> <div class="most__count">3</div> <a class="most__link" href="https://travel.kompas.com/read/2024/11/22/090900127/indonesia-jadi-penyumbang-jumlah-turis-asing-terbanyak-kedua-di-singapura"> <h4 class="most__title">Indonesia Jadi Penyumbang Jumlah Turis Asing Terbanyak Kedua di Singapura</h4> </a> </div> <div class="most__list clearfix"> <div class="most__count">4</div> <a class="most__link" href="https://travel.kompas.com/read/2024/11/23/111100627/plataran-komodo-indonesia-jadi-resor-paling-romantis-se-asia-dan-afrika"> <h4 class="most__title">Plataran Komodo Indonesia Jadi Resor Paling Romantis se-Asia dan Afrika</h4> </a> </div> <div class="most__list clearfix"> <div class="most__count">5</div> <a class="most__link" href="https://travel.kompas.com/read/2024/11/22/070600227/promo-museum-benteng-vredeburg-yogyakarta-tiket-masuk-hanya-rp-1000"> <h4 class="most__title">Promo Museum Benteng Vredeburg Yogyakarta, Tiket Masuk Hanya Rp 1.000</h4> </a> </div> </div> </div> <div class="row mt2 clearfix"> <div class="kcm kcm__track clearfix"> <div class="kcm kcm__sticky clearfix"> <div id='div-gpt-ad-Right_4'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Right_4'); }); </script> </div> </div> </div> </div> <div class="gate-kgplus"> <span>Baca berita tanpa iklan. <a href="https://traid.jixie.io/sync/ck?desturl=https%3A%2F%2Fplus.kompas.com%2F%3Fsource%3DKompas.com%26medium%3Dbelowads%26campaign%3DBacaBeritaTanpaIklan&cid=3085&cpid=804">Gabung Kompas.com+</a></span> </div> <!-- trending--> <!-- trending--> <div class="trending--sidebar ga--trending--sidebar mt3 clearfix"> <div class="title clearfix title--center"> <h2 class="title__content">Now Trending</h2> </div> <div class="trending__wrap mt2 clearfix"> <div class="article__grid"> <div class="article__asset"><a href="https://regional.kompas.com/read/2024/11/24/210035178/waspada-politik-uang-di-masa-tenang"><img class="lozad" data-src="https://asset.kompas.com/crops/Sm53a8IsdMRFcliglEQ9Qt4_LQc=/0x0:1920x1280/300x200/data/photo/2023/09/18/650811bf5d829.jpg" alt="Waspada Politik Uang di Masa Tenang"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://regional.kompas.com/read/2024/11/24/210035178/waspada-politik-uang-di-masa-tenang">Waspada Politik Uang di Masa Tenang</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://money.kompas.com/read/2024/11/24/182741126/shell-buka-suara-tanggapi-isu-bakal-tutup-seluruh-spbu-di-indonesia"><img class="lozad" data-src="https://asset.kompas.com/crops/qV2TPYFbZ5C1oUYybfZN92BqepQ=/0x85:1024x768/300x200/data/photo/2022/04/28/626a051ed36ec.png" alt="Shell Buka Suara Tanggapi Isu Bakal Tutup Seluruh SPBU di Indonesia"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://money.kompas.com/read/2024/11/24/182741126/shell-buka-suara-tanggapi-isu-bakal-tutup-seluruh-spbu-di-indonesia">Shell Buka Suara Tanggapi Isu Bakal Tutup Seluruh SPBU di Indonesia</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://internasional.kompas.com/read/2024/11/24/190908270/pbb-penting-bagi-suriah-agar-tak-terseret-perang-regional"><img class="lozad" data-src="https://asset.kompas.com/crops/E7ArFbca7IwiA1ndGasKRWOYXJQ=/0x0:1023x682/300x200/data/photo/2024/10/09/6705bb6cb4c60.jpg" alt="PBB: Penting bagi Suriah agar Tak Terseret Perang Regional"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://internasional.kompas.com/read/2024/11/24/190908270/pbb-penting-bagi-suriah-agar-tak-terseret-perang-regional">PBB: Penting bagi Suriah agar Tak Terseret Perang Regional</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://medan.kompas.com/read/2024/11/24/170000378/erupsi-gunung-dempo-di-pagar-alam-ini-imbauan-untuk-warga-dan-pendaki"><img class="lozad" data-src="https://asset.kompas.com/crops/tDNWl-v_dzbOPFaV8ArbUW1NnN0=/0x0:0x0/300x200/data/photo/2022/01/07/61d83dcc111dc.jpg" alt="Erupsi Gunung Dempo di Pagar Alam, Ini Imbauan untuk Warga dan Pendaki"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://medan.kompas.com/read/2024/11/24/170000378/erupsi-gunung-dempo-di-pagar-alam-ini-imbauan-untuk-warga-dan-pendaki">Erupsi Gunung Dempo di Pagar Alam, Ini Imbauan untuk Warga dan Pendaki</a></h4> </div> </div><!-- (ads.trending) --><div class="article__grid"> <div class="article__asset"><a href="https://medan.kompas.com/read/2024/11/24/180000078/5-fakta-gubernur-bengkulu-kena-ott-kpk-barang-bukti-uang-tunai-dan-respons"><img class="lozad" data-src="https://asset.kompas.com/crops/D4MpMwErma0fZdJFuREPAjWGRYk=/0x0:0x0/300x200/data/photo/2024/11/24/6742d8c927847.jpg" alt="5 Fakta Gubernur Bengkulu Kena OTT KPK, Barang Bukti Uang Tunai dan Respons Simpatisan"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://medan.kompas.com/read/2024/11/24/180000078/5-fakta-gubernur-bengkulu-kena-ott-kpk-barang-bukti-uang-tunai-dan-respons">5 Fakta Gubernur Bengkulu Kena OTT KPK, Barang Bukti Uang Tunai dan Respons Simpatisan</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://nasional.kompas.com/read/2024/11/24/22542501/kpk-tetapkan-gubernur-bengkulu-rohidin-mersyah-sebagai-tersangka"><img class="lozad" data-src="https://asset.kompas.com/crops/pMLc6Cxes3Mbv-jQHIEBLXZcDhg=/0x0:0x0/300x200/data/photo/2024/11/24/67434b562c877.jpg" alt="KPK Tetapkan Gubernur Bengkulu Rohidin Mersyah sebagai Tersangka"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://nasional.kompas.com/read/2024/11/24/22542501/kpk-tetapkan-gubernur-bengkulu-rohidin-mersyah-sebagai-tersangka">KPK Tetapkan Gubernur Bengkulu Rohidin Mersyah sebagai Tersangka</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://otomotif.kompas.com/read/2024/11/24/174100415/segini-daya-listrik-yang-ideal-untuk-charger-mobil-listrik-di-rumah"><img class="lozad" data-src="https://asset.kompas.com/crops/Z93RbklUCnGJFPEEryJFgUvBpBg=/111x389:3935x2939/300x200/data/photo/2024/10/15/670debe08aacd.jpg" alt="Segini Daya Listrik yang Ideal untuk Charger Mobil Listrik di Rumah"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://otomotif.kompas.com/read/2024/11/24/174100415/segini-daya-listrik-yang-ideal-untuk-charger-mobil-listrik-di-rumah">Segini Daya Listrik yang Ideal untuk Charger Mobil Listrik di Rumah</a></h4> </div> </div><div class="article__grid"> <div class="article__asset"><a href="https://www.kompas.com/tren/read/2024/11/24/180048865/shell-bantah-akan-tutup-spbu-di-indonesia"><img class="lozad" data-src="https://asset.kompas.com/crops/U8yYsWaNuDU7ebG4yfLGOU7Aq7Q=/0x9:1024x692/300x200/data/photo/2022/04/28/626a051ed36ec.png" alt="Shell Bantah Akan Tutup SPBU di Indonesia"/></a> </div> <div class="article__box article__box--medium"> <h4 class="article__title"><a class="article__link" href="https://www.kompas.com/tren/read/2024/11/24/180048865/shell-bantah-akan-tutup-spbu-di-indonesia">Shell Bantah Akan Tutup SPBU di Indonesia</a></h4> </div> </div> </div> </div><div class="comment__widget mt2 ga--comment-widget clearfix"> <div class="title clearfix title--center"> <div class="title__content">komentar di artikel lainnya</div> </div> <div class="cm__wBox" id="comment-widget"></div> </div> <script type="text/javascript"> var observer_komentar = new IntersectionObserver(function(entires) { entires.forEach(function(entry) { if (entry.intersectionRatio > 0) { show_widget_komentar(entry.target) } }); }, { threshold: 0 }); if (document.getElementById('comment-widget') !== null) { observer_komentar.observe(document.getElementById('comment-widget')); } function show_widget_komentar(element) { console.log('show_widget_komentar'); observer_komentar.unobserve(element); observer_komentar.disconnect(); Http = new XMLHttpRequest(); Http.open("GET", 'https://apis.kompas.com/api/comment/widget'); Http.send(); Http.onreadystatechange = (e) => { if (Http.readyState == 4 && Http.status == 200) { json = JSON.parse(Http.responseText); new_comment = ''; json.forEach(function(row, i) { if (i > 4) { return; } content = row.detail[0].komentar; if (content.length > 100) { content = content.substring(0, 100) + '... [...]' } url_page = row.url_page.replace('http://', 'https://'); new_comment += '<div class="cm__wItem">'; new_comment += '<a href="' + url_page + '" class="cm__wLink">'; new_comment += '<div class="cm__wNews">'; new_comment += '<div class="cm__wImg"><img src="' + row.photo + '"></div>'; new_comment += '<h4>' + row.title + '</h4>'; kanal = url_page.substring(8, url_page.indexOf('.')).toUpperCase(); if (kanal == 'WWW') { kanal = url_page.split('/')[3].toUpperCase(); } new_comment += '<span>' + kanal + ' - ' + row.tanggal_artikel + '</span>'; new_comment += '</div></a>'; new_comment += '<a href="' + url_page.replace('/read/', '/komentar/') + '?comment_id=' + row.detail[0].id_comment + '" class="cm__wLink">'; new_comment += '<div class="cm__wComment">'; new_comment += '<div class="cm__wUsername">' + row.detail[0].nama + '</div>'; new_comment += ' ' + row.detail[0].komentar.split('$//$')[0] + '</div>'; new_comment += '</a></div>'; }); document.getElementById('comment-widget').innerHTML = new_comment; } } } </script> <div class="mt2 clearfix"> <div class="kcm kcm__rectangle clearfix"> <span id="wrap_lazy_div-gpt-ad-Right_5" style="margin-top:-200px;position:absolute"></span> <div id='div-gpt-ad-Right_5'> </div> <script type="text/javascript"> var observer_ads_div_gpt_ad_Right_5 = new IntersectionObserver(function(entires){ entires.forEach(function(entry) { if(entry.intersectionRatio > 0){ show_ads_div_gpt_ad_Right_5(entry.target) } }); }, { threshold: 0 }); observer_ads_div_gpt_ad_Right_5.observe(document.getElementById('wrap_lazy_div-gpt-ad-Right_5')); function show_ads_div_gpt_ad_Right_5(element){ console.log('show_ads lazy'); observer_ads_div_gpt_ad_Right_5.unobserve(element); observer_ads_div_gpt_ad_Right_5.disconnect(); googletag.cmd.push(function() { var slot = googletag.defineSlot('/31800665/KOMPAS.COM/travel', [[300,250]],'div-gpt-ad-Right_5').setTargeting('Pos',['Right_5']).setTargeting('kg_pos', ['right_5']).addService(googletag.pubads());googletag.display('div-gpt-ad-Right_5'); googletag.pubads().refresh([slot]);}); } </script> </div> </div> <div class="gate-kgplus"> <span>Baca berita tanpa iklan. <a href="https://traid.jixie.io/sync/ck?desturl=https%3A%2F%2Fplus.kompas.com%2F%3Fsource%3DKompas.com%26medium%3Dbelowads%26campaign%3DBacaBeritaTanpaIklan&cid=3085&cpid=804">Gabung Kompas.com+</a></span> </div> <!-- previous--> <div id="previous" style="display: none;"> <span id="previous_title">Melihat Pohon Purba di Lombok Timur</span> <span id="previous_path">https://travel.kompas.com/read/xml/2017/04/24/190200127/melihat.pohon.purba.di.lombok.timur</span> <span id="previous_thumbnail">https://asset.kompas.com/crops/vFGKMBl03PXnR7UqO-_Qfaf-ym4=/3x2:794x397/195x98/data/photo/2017/04/24/4222513492.jpg</span> </div> </div> </div> <div class="kcm kcm__horizontal clearfix"> <a class="kcm__close js-kcm-horizontal" href="#">Close Ads <span class="kcm__close__icon"></span></a> <div id='div-gpt-ad-Horizontal_Ad'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-Horizontal_Ad'); }); </script> </div></div> </div> <!-- foote<script type="text/javascript"> window.AviviD = window.AviviD || {settings:{},status:{}}; AviviD.web_id = "kompas"; AviviD.category_id = "20230131000002"; AviviD.tracking_platform = 'likr'; AviviD.construct=function(a){window.jQuery&&!AviviD.empty(AviviD.uuid)?a():setTimeout(function(){AviviD.construct(a)},50)};AviviD.get_urlparam=function(a){a=new RegExp("(^|&)"+a+"=([^&]*)(&|$)");a=window.location.search.substr(1).match(a);return null!=a?unescape(a[2]):null}; AviviD.empty=function(a){if("number"==typeof a||"boolean"==typeof a)return!1;if("null"===a||"undefined"===a||"undefined"==typeof a||null===a)return!0;if("undefined"!=typeof a.length)return 0==a.length;var c=0,b;for(b in a)a.hasOwnProperty(b)&&c++;return 0==c};AviviD.protocol_firebase_accept=function(){return"http:"==location.protocol?!1:!0}; AviviD.get_top_domain=function(){var a=window.location.hostname;if(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/.test(a))return a;var c=a.split(".").length,b=a.split(".").reverse();return"2">=c?a:"3"==c?"com"===b[1]?a:b[1]+"."+b[0]:"4"==c?"com"===b[0]?b[1]+"."+b[0]:b[2]+"."+b[1]+"."+b[0]:b[2]+"."+b[1]+"."+b[0]}; AviviD.set_cookie=function(a,c,b){var d=AviviD.get_top_domain();b=b||3650;var e=new Date;e.setTime(e.getTime()+864E5*b);AviviD.protocol_firebase_accept()?document.cookie=a+"="+escape(c)+";expires="+e.toGMTString()+";domain="+d+";path=/;secure;":document.cookie=a+"="+escape(c)+";expires="+e.toGMTString()+";domain="+d+";path=/;"};AviviD.get_cookie=function(a){a=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));return null!=a?unescape(a[2]):null}; AviviD.delete_cookie=function(a){var c=new Date;c.setTime(c.getTime()-1);var b=AviviD.get_cookie(a);null!=b&&(document.cookie=a+"="+b+";expires="+c.toGMTString())}; AviviD.get_website_info=function(){JSON.stringify(AviviD.ajax_data);jQuery.ajax({type:"GET",url:"https://avivid.likr.tw/settings_file_json/"+AviviD.category_id+".json",xhrFields:{withCredentials:!1},cache:!0,dataType:"json",success:function(a){"_"==a.sender_id&&(a.sender_id="912321621860");AviviD.status.get_website_info="1";AviviD.loadScript("https://avividone.likr.tw/killswitch/killswitch_config.js");"1"==AviviD.status.get_website_info?(AviviD.settings.is_aws=a.is_aws,AviviD.settings.is_crescent= a.is_crescent,AviviD.settings.icon_path=a.icon_path,AviviD.settings.string_ring_icon=a.ring_icon,AviviD.settings.sw_type=a.sw_type,AviviD.settings.channel_id=a.channel_id,AviviD.settings.push_banner_data_title=a.banner_title,AviviD.settings.push_banner_data_content=a.banner_content,AviviD.settings.banner_button_allow=a.banner_button_allow,AviviD.settings.banner_button_deny=a.banner_button_deny,AviviD.settings.push_banner_data_interval=a.banner_interval_mins,AviviD.settings.push_banner_data_position= a.banner_position,AviviD.settings.ring_position_top=a.ring_position_top,AviviD.settings.ring_position_bottom=a.ring_position_bottom,AviviD.settings.ring_position_left=a.ring_position_left,AviviD.settings.ring_position_right=a.ring_position_right,AviviD.settings.show_ring_after_subscribed=a.ring_display,AviviD.settings.show_ring=a.show_ring,AviviD.settings.ring_size_height=a.ring_size_height,AviviD.settings.ring_size_width=a.ring_size_width,AviviD.settings.banner_allow_btn=a.banner_allow_btn,AviviD.settings.banner_cancel_btn= a.banner_cancel_btn,AviviD.settings.ring_before_background_path=a.ring_before_background_path,AviviD.settings.ring_after_background_path=a.ring_after_background_path,AviviD.settings.new_onpage_version=a.new_onpage_version,AviviD.settings.fb_banner_title=a.fb_banner_title,AviviD.settings.fb_banner_content=a.fb_banner_content,AviviD.settings.fb_banner_icon=a.fb_banner_icon,AviviD.settings.add_ecommerce_listener=a.add_ecommerce_listener,AviviD.settings.string_banner_icon=a.banner_icon,AviviD.settings.ring_position_mtop= a.ring_position_mtop,AviviD.settings.ring_position_mbottom=a.ring_position_mbottom,AviviD.settings.ring_position_mleft=a.ring_position_mleft,AviviD.settings.ring_position_mright=a.ring_position_mright,AviviD.settings.show_fb_banner=a.show_fb_banner,AviviD.settings.pc_show_ring=a.pc_show_ring,AviviD.settings.pc_show_banner=a.pc_show_banner,AviviD.settings.mobile_show_ring=a.mobile_show_ring,AviviD.settings.mobile_show_banner=a.mobile_show_banner,AviviD.settings.fp_ak=a.fp_ak,AviviD.settings.fp_ad= a.fp_ad,AviviD.settings.fp_du=a.fp_du,AviviD.settings.fp_pi=a.fp_pi,AviviD.settings.fp_sb=a.fp_sb,AviviD.settings.fp_ai=a.fp_ai,AviviD.settings.fp_mi=a.fp_mi,AviviD.settings.fp_msi=a.fp_msi,AviviD.settings.language=a.language,AviviD.settings.switch_language=a.switch_language,AviviD.settings.ios_enable=a.ios_enable,AviviD.settings.banner_cancel_twice_exp_day=a.banner_click_cancel_twice_interval_days,AviviD.settings.website_type=a.website_type,AviviD.settings.native_enable=a.native_enable,"pixnet"== AviviD.web_id&&0==document.domain.includes("pixnet.net")&&(AviviD.settings.native_enable="0"),AviviD.settings.banner_enable=a.banner_enable,AviviD.settings.onpage_enable=a.onpage_enable,AviviD.settings.compensation_enable=a.compensation_enable,AviviD.settings.onpage_timeout_first=a.onpage_timeout_first,AviviD.settings.onpage_timeout_cycle=a.onpage_timeout_cycle,AviviD.settings.onpage_with_ad=a.onpage_with_ad,AviviD.settings.sub_banner_customer_enable=a.sub_banner_customer_enable,AviviD.settings.ad_banner_enable= a.ad_banner_enable,AviviD.settings.ad_banner_with_ad=a.ad_banner_with_ad,AviviD.settings.ad_banner_position=a.ad_banner_position,AviviD.settings.ad_banner_pic_position=a.ad_banner_pic_position,AviviD.settings.ad_banner_timer=a.ad_banner_timer,AviviD.settings.ad_banner_life_cycle=a.ad_banner_life_cycle,AviviD.settings.before_page_timer=60,AviviD.settings.onpage_position=a.onpage_position,AviviD.settings.onpage_position_vh=a.onpage_position_vh,AviviD.settings.onpage_pc_position=a.onpage_pc_position, AviviD.settings.onpage_pic_position=a.onpage_pic_position,AviviD.settings.track_behavior_enable=a.track_behavior_enable,AviviD.settings.ip_enable=a.ip_enable,AviviD.settings.payment_selector=a.payment_selector,AviviD.settings.payment_selector_m=a.payment_selector_m,AviviD.settings.payment_url=a.payment_url,AviviD.settings.payment_url_m=a.payment_url_m,AviviD.settings.checkout_url=a.checkout_url,AviviD.settings.checkout_url_m=a.checkout_url_m,AviviD.settings.checkout_trigger_class=a.checkout_trigger_class, AviviD.settings.checkout_trigger_class_m=a.checkout_trigger_class_m,AviviD.settings.checkout_data_class=a.checkout_data_class,AviviD.settings.checkout_data_class_m=a.checkout_data_class_m,AviviD.settings.cart_url=a.cart_url,AviviD.settings.cart_url_m=a.cart_url_m,AviviD.settings.cart_data_class=a.cart_data_class,AviviD.settings.cart_data_class_m=a.cart_data_class_m,AviviD.settings.number_url=a.number_url,AviviD.settings.number_url_m=a.number_url_m,AviviD.settings.number_trigger_class=a.number_trigger_class, AviviD.settings.number_trigger_class_m=a.number_trigger_class_m,AviviD.settings.number_data_id=a.number_data_id,AviviD.settings.number_data_id_m=a.number_data_id_m,AviviD.settings.back_page_enable=a.back_page_enable,AviviD.settings.ad_block_enabled=a.ad_block_enabled,AviviD.settings.ad_block_abtest_enabled=a.ad_block_abtest_enabled,AviviD.settings.ad_block_abtest_ratio=a.ad_block_abtest_ratio,AviviD.settings.ad_block_abtest_start_time=a.ad_block_abtest_start_time,AviviD.settings.ad_block_abtest_end_time= a.ad_block_abtest_end_time,AviviD.settings.sliding_enable=a.sliding_enable,AviviD.settings.notify_enable=a.notify_enable,AviviD.settings.before_page_enable=a.before_page_enable,AviviD.settings.push_before_page_enable=a.push_before_page_enable,AviviD.settings.yh_enable=a.yh_enable,AviviD.settings.onpage_divide_article_ad=a.onpage_divide_article_ad,AviviD.settings.geolocation_enable=a.geolocation_enable,AviviD.settings.pwa_enable=a.pwa_enable,AviviD.settings.console_enable=a.console_enable,AviviD.settings.SENDER_ID= a.sender_id,AviviD.settings.banner_native=a.banner_native,AviviD.update_time=(new Date).getTime(),AviviD.status.update_time=AviviD.convert_timestamp_to_time(AviviD.update_time)):AviviD.console("AviviD get_website_info : status => "+a.status+", resText => "+a.resText)},error:function(a,c,b){AviviD.console("jqXHR :",a);AviviD.console("textStatus :",c);AviviD.console("errorThrown :",b)}})};AviviD.construct(AviviD.get_website_info); AviviD.before_page_ready=function(a){if("function"===typeof AviviD.before_page_enable)AviviD.before_page_enable();else{if(100<a)return 0;setTimeout(function(){AviviD.before_page_ready(a+1)},50)}}; AviviD.before_page_select=function(){var a=0,c=0;AviviD.get_urlparam("avivid_preview_exit")&&(AviviD.set_cookie("avivid_exit_mode",AviviD.get_urlparam("avivid_preview_exit")),a="1");AviviD.get_urlparam("avivid_preview_before")&&(c="1");0==a&&(a=null!=AviviD.get_cookie("avivid_exit_mode")?AviviD.get_cookie("avivid_exit_mode"):0);if(AviviD.settings.website_type&&void 0!==AviviD.block_killswitch){if("1"==a||"1"==c)AviviD.settings.before_page_enable="1";var b=[],d=[],e=[];"1"==c?(window.onpopstate=function(m){console.log(document.referrer); document.referrer.split("://")[1]!=document.domain&&setTimeout(function(){window.location.replace("https://www.google.com/")},10)},c=document.URL,history.state||(alert("replacestate"),history.replaceState({state:"sec_state"},"1","https://www.upmedia.mg/news_info.php?Type=71&SerialNo=146920"),alert("pushstate"),history.pushState(null,"2",c))):"1"==a?(AviviD.loadScript("https://subscribe.likr.com.tw/sample/before_page/_test.js"),"3"==AviviD.settings.website_type?b=[AviviD.web_id]:(d=[AviviD.web_id], e=[AviviD.web_id])):"3"==AviviD.settings.website_type&&"1"==AviviD.settings.before_page_enable?(AviviD.loadScript("https://avivid.likr.tw/sample/before_page/"+AviviD.web_id+".js"),b=[AviviD.web_id]):"3"!=AviviD.settings.website_type&&"1"==AviviD.settings.before_page_enable?(AviviD.loadScript("https://avivid.likr.tw/sample/before_page/"+AviviD.web_id+".js"),d=[AviviD.web_id]):"3"!=AviviD.settings.website_type&&"1"==AviviD.settings.push_before_page_enable&&(AviviD.loadScript("https://avivid.likr.tw/sample/before_page/"+ AviviD.web_id+".js"),e=[AviviD.web_id]);c=void 0==document.referrer.split("/")[2]?"":document.referrer.split("/")[2];var f=document.referrer.split("/")[document.referrer.split("/").length-1],g=["firebase-messaging-sw.js"],k=["advividnetwork.com","rhea-cache.advividnetwork.com","medium-lbr.gaii.ai","medium.gaii.ai","ecommerce.gaii.ai","ecommerce-lbr.gaii.ai","husky.gaii.ai","rhea-cache.gaii.ai",document.domain],h="babyhome bnext btnet dailyview edh healthgvm2 managertoday newscts nownews sportz upmedia teepr2 pixnet".split(" "), l=["oneboy","i3fresh"];AviviD.before_page_url="https://ecommerce.gaii.ai/tw";AviviD.before_page_pc_url="https://ecommerce.gaii.ai/tw_pc";AviviD.media_before_page_url="https://medium.gaii.ai/tw";AviviD.media_before_page_pc_url="https://medium.gaii.ai/tw_pc";"1"!=AviviD.int_os_type&&"2"!=AviviD.int_os_type&&!h.includes(AviviD.web_id)&&("3"!=AviviD.settings.website_type||l.includes(AviviD.web_id))&&"1"!=a||k.includes(c)||!(b.includes(AviviD.web_id)||AviviD.get_urlparam("avivid_preview_exit_s")||d.includes(AviviD.web_id))|| "yodee"==AviviD.web_id&&""==c||"1"!=AviviD.block_killswitch.before_page_enable?"dm5com"!=AviviD.web_id&&"1kkkcom"!=AviviD.web_id||!d.includes(AviviD.web_id)||(AviviD.config={open_tab:"0"},AviviD.before_page_ready(0)):(console.log("preview"),d.includes(AviviD.web_id)?g.includes(f)||"web_notification"==AviviD.get_urlparam("utm_medium")||null!=AviviD.get_urlparam("differ_push_day")?AviviD.config={open_tab:"1"}:AviviD.config={open_tab:"0"}:AviviD.load_sliding_config(),AviviD.get_before_page_block()); "1"!=AviviD.int_os_type&&"2"!=AviviD.int_os_type&&!h.includes(AviviD.web_id)&&"1"!=a||!g.includes(f)&&"web_notification"!=AviviD.get_urlparam("utm_medium")&&null==AviviD.get_urlparam("differ_push_day")||!(e.includes(AviviD.web_id)||d.includes(AviviD.web_id)||AviviD.get_urlparam("avivid_preview_exit_s"))||"1"!=AviviD.block_killswitch.before_page_enable||(console.log("preview"),AviviD.config={open_tab:"1"},AviviD.get_before_page_block())}else setTimeout(function(){AviviD.before_page_select()},50)}; AviviD.before_page_select(); AviviD.get_before_page_block=function(){jQuery.ajax({type:"GET",url:"https://avivid.likr.tw/ios_onpage_switch_file/"+AviviD.web_id+".json",xhrFields:{withCredentials:!1},cache:!0,async:!0,dataType:"json",data:{web_id:AviviD.web_id},success:function(a){AviviD.before_page_block=a;AviviD.same_domain=a.same_domain.split(",");AviviD.before_page_block.block_url.forEach(function(c){-1<window.location.href.indexOf(c)&&""!=c&&(AviviD.before_page_block=!1)});AviviD.before_block=0==AviviD.before_page_block? !1:!0;AviviD.check_block_url()},fail:function(a,c,b){reject(!1)}})};AviviD.check_block_url=function(){if(void 0===AviviD.before_block||void 0===AviviD.before_page)setTimeout(function(){AviviD.check_block_url()},50);else{for(var a=void 0==document.referrer.split("/")[2]?"":document.referrer.split("/")[2],c=1,b=0;b<AviviD.same_domain.length;b++)-1!=a.indexOf(AviviD.same_domain[b])&&(c=0);(""==AviviD.same_domain||c)&&AviviD.before_page_block&&AviviD.before_page()}}; AviviD.load_sliding_config=function(){AviviD.fetch_config=function(){return new Promise(function(a,c){jQuery.ajax({type:"GET",url:"https://rhea-cache.advividnetwork.com/api/getSlidingConfig",xhrFields:{withCredentials:!1},cache:!0,dataType:"json",data:{web_id:AviviD.web_id},success:function(b){a(b)},fail:function(b,d,e){c(!1)}})})};AviviD.fetch_config().then(function(a){a=a[0];AviviD.config={web_id:AviviD.web_id,iframe_url:a.iframe_url,href:a.href,href_mobile:a.href_mob,use_meta:a.use_meta,scroll_div:a.scroll_div, pop_bottom:a.pop_bottom,title_exclude:a.title_exclude,model:a.model,website_type:a.website_type,recommend_type:a.recommend_type,z_open:a.z_open,z_close:a.z_close,z_item:a.z_item,item_regex:a.item_regex,allow_regex:a.allow_regex,css_bottom:a.css_bottom,css_bottom_item:a.css_bottom_item,fraction_open:a.fraction_open,open_tab:a.open_tab}})}; var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.ASSUME_ES5=!1; $jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; $jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={}; $jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b,c){if(!c||null!=a){c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))}; $jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var f=a[d];if(!(f in c))return;c=c[f]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}; $jscomp.polyfillIsolated=function(a,b,c,d){var f=a.split(".");a=1===f.length;d=f[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var e=0;e<f.length-1;e++){var g=f[e];if(!(g in d))return;d=d[g]}f=f[f.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[f]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,f,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[f]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[f]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(f):$jscomp.POLYFILL_PREFIX+c+"$"+f),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[f],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1}; $jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; $jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; $jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype["return"]=function(a){this.abruptCompletion_={"return":a};this.nextAddress=this.finallyAddress_}; $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){var c=$jscomp.makeIterator(a),d=c.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=b;else return this.yieldAllIterator_=c,this.yield(d.value,b)}; $jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; $jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; $jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){var c=this.finallyContexts_.splice(b||0)[0];if(c=this.abruptCompletion_=this.abruptCompletion_||c){if(c.isException)return this.jumpToErrorHandler_();void 0!=c.jumpTo&&this.finallyAddress_<c.jumpTo?(this.nextAddress=c.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; $jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; $jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_["return"]);this.context_["return"](a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var f=d.value}catch(e){return this.context_.yieldAllIterator_=null,this.context_.throw_(e),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,f);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a["return"],done:!0}}return{value:void 0,done:!0}}; $jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this["throw"]=function(b){return a.throw_(b)};this["return"]=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){var c=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(c,a.prototype);return c}; $jscomp.asyncExecutePromiseGenerator=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,f){function e(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(e,f)}e(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; (function(a,b,c,d){a.jQuery||(a=b.getElementsByTagName(c)[0]||b.getElementsByTagName("head")[0],b=b.createElement(c),b.type="text/javascript",b.src=d,a.parentNode.insertBefore(b,a))})(window,document,"script","https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"); (function(a,b,c,d){b.getElementById("avivid_css")||(a=b.getElementsByTagName("head")[0],b=b.createElement(c),b.id="avivid_css",b.type="text/css",b.rel="stylesheet",b.href=d,a.appendChild(b),b.addEventListener("load",function(){AviviD.status.avivid_css=1}))})(window,document,"link","https://avivid.likr.tw/avivid_css/avivid_pseudo_native_subscribe/avivid_pseudo_native_subscribe.css"); "undefined"===typeof UAParser&&function(a,b){var c={extend:function(h,m){var n={},t;for(t in h)n[t]=m[t]&&0===m[t].length%2?m[t].concat(h[t]):h[t];return n},has:function(h,m){return"string"===typeof h?-1!==m.toLowerCase().indexOf(h.toLowerCase()):!1},lowerize:function(h){return h.toLowerCase()},major:function(h){return"string"===typeof h?h.replace(/[^\d\.]/g,"").split(".")[0]:b},trim:function(h){return h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},d=function(h,m){for(var n=0,t,x,y,p,z,u;n< m.length&&!z;){var A=m[n],B=m[n+1];for(t=x=0;t<A.length&&!z;)if(z=A[t++].exec(h))for(y=0;y<B.length;y++)u=z[++x],p=B[y],"object"===typeof p&&0<p.length?2==p.length?this[p[0]]="function"==typeof p[1]?p[1].call(this,u):p[1]:3==p.length?this[p[0]]="function"!==typeof p[1]||p[1].exec&&p[1].test?u?u.replace(p[1],p[2]):b:u?p[1].call(this,u,p[2]):b:4==p.length&&(this[p[0]]=u?p[3].call(this,u.replace(p[1],p[2])):b):this[p]=u?u:b;n+=2}},f=function(h,m){for(var n in m)if("object"===typeof m[n]&&0<m[n].length)for(var t= 0;t<m[n].length;t++){if(c.has(m[n][t],h))return"?"===n?b:n}else if(c.has(m[n],h))return"?"===n?b:n;return h},e={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2E3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},g={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],["name","version"],[/(opios)[\/\s]+([\w\.]+)/i],[["name","Opera Mini"],"version"], [/\s(opr)\/([\w\.]+)/i],[["name","Opera"],"version"],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],["name","version"],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[["name","IE"],"version"],[/(edge)\/((\d+)?[\w\.]+)/i],["name", "version"],[/(yabrowser)\/([\w\.]+)/i],[["name","Yandex"],"version"],[/(puffin)\/([\w\.]+)/i],[["name","Puffin"],"version"],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[["name","UCBrowser"],"version"],[/(comodo_dragon)\/([\w\.]+)/i],[["name",/_/g," "],"version"],[/(micromessenger)\/([\w\.]+)/i],[["name","WeChat"],"version"],[/(QQ)\/([\d\.]+)/i],["name","version"],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],["name","version"],[/xiaomi\/miuibrowser\/([\w\.]+)/i],["version",["name","MIUI Browser"]], [/;fbav\/([\w\.]+);/i],["version",["name","Facebook"]],[/(headlesschrome) ([\w\.]+)/i],["version",["name","Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[["name",/(.+)/,"$1 WebView"],"version"],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[["name",/(.+(?:g|us))(.+)/,"$1 $2"],"version"],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],["version",["name","Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],["name","version"],[/(dolfin)\/([\w\.]+)/i], [["name","Dolphin"],"version"],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[["name","Chrome"],"version"],[/(coast)\/([\w\.]+)/i],[["name","Opera Coast"],"version"],[/fxios\/([\w\.-]+)/i],["version",["name","Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],["version",["name","Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],["version","name"],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],["name",["version",f,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416", "2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],["name","version"],[/(navigator|netscape)\/([\w\.-]+)/i],[["name","Netscape"],"version"],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],["name","version"]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",c.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",c.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [["architecture",c.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],["model","vendor",["type","tablet"]],[/applecoremedia\/[\w\.]+ \((ipad)/],["model",["vendor","Apple"],["type","tablet"]],[/(apple\s{0,1}tv)/i],[["model","Apple TV"],["vendor","Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],["vendor","model",["type","tablet"]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i], ["model",["vendor","Amazon"],["type","tablet"]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[["model",f,{"Fire Phone":["SD","KF"]}],["vendor","Amazon"],["type","mobile"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],["model","vendor",["type","mobile"]],[/\((ip[honed|\s\w*]+);/i],["model",["vendor","Apple"],["type","mobile"]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],["vendor", "model",["type","mobile"]],[/\(bb10;\s(\w+)/i],["model",["vendor","BlackBerry"],["type","mobile"]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],["model",["vendor","Asus"],["type","tablet"]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[["vendor","Sony"],["model","Xperia Tablet"],["type","tablet"]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],["model",["vendor","Sony"],["type","mobile"]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],["vendor","model", ["type","console"]],[/android.+;\s(shield)\sbuild/i],["model",["vendor","Nvidia"],["type","console"]],[/(playstation\s[34portablevi]+)/i],["model",["vendor","Sony"],["type","console"]],[/(sprint\s(\w+))/i],[["vendor",f,{HTC:"APA",Sprint:"Sprint"}],["model",f,{"Evo Shift 4G":"7373KT"}],["type","mobile"]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],["vendor","model",["type","tablet"]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i], ["vendor",["model",/_/g," "],["type","mobile"]],[/(nexus\s9)/i],["model",["vendor","HTC"],["type","tablet"]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],["model",["vendor","Huawei"],["type","mobile"]],[/(microsoft);\s(lumia[\s\w]+)/i],["vendor","model",["type","mobile"]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],["model",["vendor","Microsoft"],["type","console"]],[/(kin\.[onetw]{3})/i],[["model",/\./g," "],["vendor","Microsoft"],["type","mobile"]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],["model",["vendor","Motorola"],["type","mobile"]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],["model",["vendor","Motorola"],["type","tablet"]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[["vendor",c.trim],["model",c.trim],["type","smarttv"]],[/hbbtv.+maple;(\d+)/i],[["model",/^/,"SmartTV"],["vendor","Samsung"],["type","smarttv"]],[/\(dtv[\);].+(aquos)/i],["model",["vendor","Sharp"],["type","smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i],[["vendor","Samsung"],"model",["type","tablet"]],[/smart-tv.+(samsung)/i],["vendor",["type","smarttv"],"model"],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[["vendor","Samsung"],"model",["type","mobile"]],[/sie-(\w+)*/i],["model",["vendor","Siemens"],["type","mobile"]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[["vendor","Nokia"],"model",["type","mobile"]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i], ["model",["vendor","Acer"],["type","tablet"]],[/android.+([vl]k\-?\d{3})\s+build/i],["model",["vendor","LG"],["type","tablet"]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[["vendor","LG"],"model",["type","tablet"]],[/(lg) netcast\.tv/i],["vendor","model",["type","smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],["model",["vendor","LG"],["type","mobile"]],[/android.+(ideatab[a-z0-9\-\s]+)/i],["model",["vendor","Lenovo"],["type","tablet"]],[/linux;.+((jolla));/i], ["vendor","model",["type","mobile"]],[/((pebble))app\/[\d\.]+\s/i],["vendor","model",["type","wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],["vendor","model",["type","mobile"]],[/crkey/i],[["model","Chromecast"],["vendor","Google"]],[/android.+;\s(glass)\s\d/i],["model",["vendor","Google"],["type","wearable"]],[/android.+;\s(pixel c)\s/i],["model",["vendor","Google"],["type","tablet"]],[/android.+;\s(pixel xl|pixel)\s/i],["model",["vendor","Google"],["type","mobile"]],[/android.+(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[["model",/_/g," "],["vendor","Xiaomi"],["type","mobile"]],[/android.+;\s(m[1-5]\snote)\sbuild/i],["model",["vendor","Meizu"],["type","tablet"]],[/android.+a000(1)\s+build/i],["model",["vendor","OnePlus"],["type","mobile"]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],["model",["vendor","RCA"],["type","tablet"]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],["model",["vendor", "Dell"],["type","tablet"]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],["model",["vendor","Verizon"],["type","tablet"]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[["vendor","Barnes & Noble"],"model",["type","tablet"]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],["model",["vendor","NuVision"],["type","tablet"]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[["vendor","ZTE"],"model",["type","tablet"]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],["model",["vendor","Swiss"], ["type","mobile"]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],["model",["vendor","Swiss"],["type","tablet"]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],["model",["vendor","Zeki"],["type","tablet"]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[["vendor","Dragon Touch"],"model",["type","tablet"]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],["model",["vendor","Insignia"],["type","tablet"]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],["model", ["vendor","NextBook"],["type","tablet"]],[/android.+[;\/]\s*(Xtreme_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[["vendor","Voice"],"model",["type","mobile"]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[["vendor","LvTel"],"model",["type","mobile"]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],["model",["vendor","Envizen"],["type","tablet"]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],["vendor","model",["type","tablet"]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], ["model",["vendor","MachSpeed"],["type","tablet"]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],["vendor","model",["type","tablet"]],[/android.+[;\/]\s*TU_(1491)\s+build/i],["model",["vendor","Rotor"],["type","tablet"]],[/android.+(KS(.+))\s+build/i],["model",["vendor","Amazon"],["type","tablet"]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],["vendor","model",["type","tablet"]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[["type",c.lowerize],"vendor","model"],[/(android.+)[;\/].+build/i], ["model",["vendor","Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],["version",["name","EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],["name","version"],[/rv:([\w\.]+).*(gecko)/i],["version","name"]],os:[[/microsoft\s(windows)\s(vista|xp)/i],["name","version"],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], ["name",["version",f,e]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[["name","Windows"],["version",f,e]],[/\((bb)(10);/i],[["name","BlackBerry"],"version"],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],["name","version"],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[["name","Symbian"],"version"],[/\((series40);/i],["name"],[/mozilla.+\(mobile;.+gecko.+firefox/i],[["name", "Firefox OS"],"version"],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],["name","version"],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[["name","Chromium OS"],"version"],[/(sunos)\s?([\w\.]+\d)*/i],[["name","Solaris"],"version"],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i], ["name","version"],[/(haiku)\s(\w+)/i],["name","version"],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[["version",/_/g,"."],["name","iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[["name","Mac OS"],["version",/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],["name","version"]]},k=function(h,m){this.name=h;this.version= m},r=function(h){this.architecture=h},q=function(h,m,n){this.vendor=h;this.model=m;this.type=n},l=function(h,m){"object"===typeof h&&(m=h,h=b);if(!(this instanceof l))return(new l(h,m)).getResult();var n=h||(a&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),t=m?c.extend(g,m):g,x=new k,y=new r,p=new q,z=new k,u=new k;this.getBrowser=function(){d.call(x,n,t.browser);x.major=c.major(x.version);return x};this.getCPU=function(){d.call(y,n,t.cpu);return y};this.getDevice=function(){d.call(p, n,t.device);return p};this.getEngine=function(){d.call(z,n,t.engine);return z};this.getOS=function(){d.call(u,n,t.os);return u};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return n};this.setUA=function(A){n=A;x=new k;y=new r;p=new q;z=new k;u=new k;return this};return this};l.VERSION="0.7.14";l.BROWSER={NAME:"name",MAJOR:"major",VERSION:"version"};l.CPU={ARCHITECTURE:"architecture"}; l.DEVICE={MODEL:"model",VENDOR:"vendor",TYPE:"type",CONSOLE:"console",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",EMBEDDED:"embedded"};l.ENGINE={NAME:"name",VERSION:"version"};l.OS={NAME:"name",VERSION:"version"};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=l),exports.UAParser=l):"function"===typeof define&&define.amd?a.UAParser=l:a&&(a.UAParser=l);var v=a&&(a.jQuery||a.Zepto);if("undefined"!==typeof v){var w=new l;v.ua= w.getResult();v.ua.get=function(){return w.getUA()};v.ua.set=function(h){w.setUA(h);h=w.getResult();for(var m in h)v.ua[m]=h[m]}}}("object"===typeof window?window:this); window.AviviD&&!document.querySelector("#web_push, #avivid_push_banner")&&(AviviD.version="v7.3.2101270001",AviviD.status.debug=window.avivid_debug||0,AviviD.avivid_regid=window.avivid_regid||"_",AviviD.status.avivid_regid=AviviD.avivid_regid,AviviD.avivid_tag=window.avivid_tag||"_",AviviD.status.avivid_tag=AviviD.avivid_tag,AviviD.UAParser=new UAParser,AviviD.UAResult=AviviD.UAParser.getResult(),AviviD.allow_new_onpage_category_id=["20200309000002","20191211000001","20190816000003","20201026000001"], AviviD.same_domain_list=["20170531000006"],AviviD.construct=function(a){window.jQuery&&!AviviD.empty(AviviD.uuid)?a():window.jQuery&&"iOS"==AviviD.detect_browser_type()?a():setTimeout(function(){AviviD.construct(a)},50)},AviviD.main=function(){AviviD.set_is_likr();AviviD.str_os_type=AviviD.detect_os_type();AviviD.int_os_type=AviviD.trans_os_type_to_number(AviviD.str_os_type);AviviD.str_browser_type=AviviD.detect_browser_type();AviviD.int_browser_type=AviviD.trans_browser_type_to_number(AviviD.str_browser_type); AviviD.webuserid=AviviD.get_webuserid();AviviD.client_href=encodeURIComponent(window.location.href);AviviD.ajax_data={web_id:AviviD.web_id,category_id:AviviD.category_id,uuid:AviviD.uuid,webuserid:AviviD.webuserid,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type,client_href:window.location.href,version:AviviD.version};AviviD.geolocation={latitude:null,longitude:null,get_interval:1E4};AviviD.get_website_info();AviviD.onpage_flow();AviviD.token_uuid_mapping();if("bogoto"==AviviD.web_id&& ("b0ff7bc7-87ae-4f6c-808e-f7c912900369"==AviviD.uuid||"a2d95264-053f-447e-bfe5-8cf7537ed862"==AviviD.uuid)){var a={web_id:AviviD.web_id,uuid:AviviD.uuid,webuserid:AviviD.webuserid,already_exist:null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"):0,already_show_sub:null!=AviviD.get_cookie("AviviD_show_sub")?AviviD.get_cookie("AviviD_show_sub"):0,client_href:window.location.href};jQuery.ajax({url:"https://subscribe.likr.com.tw/api/receive_log.php",xhrFields:{withCredentials:!1}, type:"POST",data:a,dataType:"json",success:function(b){AviviD.console(b)},error:function(b,c,d){AviviD.console("xhr :",b);AviviD.console("ajaxOptions :",c);AviviD.console("thrownError :",d);AviviD.console("status code : "+b.status+" , ajaxOptions : "+c)}})}},AviviD.load_aws=function(){if(void 0==AviviD.aws_loaded){var a=document.getElementsByTagName("script")[0]||document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript";b.src="https://avivid.likr.tw/sample/aws-sdk-AviviD-min-1.000.3.js"; a.parentNode.insertBefore(b,a);AviviD.aws_loaded=1}},AviviD.onpage_flow=function(){AviviD.settings.native_enable?(AviviD.time_setting(),jQuery(document).ready(function(){AviviD.get_article_title()}),AviviD.waterfall_ready(0),null!=AviviD.get_cookie("AviviD_already_exist")&&AviviD.compensation()):setTimeout(function(){AviviD.onpage_flow()},500)},AviviD.waterfall_ready=function(a){if("function"===typeof AviviD.waterfall_enable)AviviD.waterfall_enable();else{if(100<a)return 0;setTimeout(function(){AviviD.waterfall_ready(a+ 1)},100)}},AviviD.time_setting=function(){AviviD.in_time=(new Date).getTime();AviviD.timestamp=0;AviviD.settings.before_page_timer=5;AviviD.settings.mandatory_before_page_timer=20;AviviD.timeout="NaN"!=parseFloat(AviviD.settings.onpage_timeout_cycle).toString()?1E3*AviviD.settings.onpage_timeout_cycle:5E4;AviviD.timeOut={landing:"NaN"!=parseFloat(AviviD.settings.onpage_timeout_first).toString()?AviviD.settings.onpage_timeout_first:50,browsing:"NaN"!=parseFloat(AviviD.settings.onpage_timeout_cycle).toString()? AviviD.settings.onpage_timeout_cycle:50,ad_banner:"NaN"!=parseFloat(AviviD.settings.ad_banner_timer).toString()?AviviD.settings.ad_banner_timer:10,before_page:"NaN"!=parseFloat(AviviD.settings.before_page_timer).toString()?AviviD.settings.before_page_timer:60,mandatory_before_page:"NaN"!=parseFloat(AviviD.settings.mandatory_before_page_timer).toString()?AviviD.settings.mandatory_before_page_timer:60};AviviD.received=0;AviviD.start_browse=0;AviviD.adaptive_timer=0;-1!=AviviD.allow_new_onpage_category_id.indexOf(AviviD.category_id)&& setInterval(function(){AviviD.adaptive_timer++;AviviD.onpage_debug_mode&&(console.log("\u52d5\u614b\u7e3d\u6642\u9593counting:"+AviviD.adaptive_timer),jQuery("#onpage_seesion_time").text("\u4f7f\u7528\u8005session\u6642\u9593:"+AviviD.adaptive_timer),jQuery("#onpage_received").text("likr_timer \u5012\u6578\u52300\u7684\u6b21\u6578:"+AviviD.likrTimer.timesUp_times))},1E3);AviviD.adaptive_timer_start=0;AviviD.adaptive_timer_end=0;AviviD.adaptive_tap_count=0;AviviD.adaptive_flag=0;AviviD.likrTimer={isScrolling:"", event_arr:[],timesUp_times:0,init:function(){AviviD.likr_timer=parseInt(AviviD.timeOut.landing);AviviD.likr_timer_ad_banner=AviviD.timeOut.ad_banner;AviviD.likr_timer_before_page=AviviD.timeOut.before_page;AviviD.likr_timer_mandatory_before_page=AviviD.timeOut.mandatory_before_page;setTimeout(function(){if(-1!=AviviD.allow_new_onpage_category_id.indexOf(AviviD.category_id)&&1==AviviD.settings.adaptive_push)console.log("AviviD.likrTimer\u521d\u59cb\u5316\u6e96\u5099\u5075\u6e2c\u4f7f\u7528\u8005\u52d5\u4f5c"), jQuery("#onpage_status").text("AviviD.likrTimer\u521d\u59cb\u5316\u6e96\u5099\u5075\u6e2c\u4f7f\u7528\u8005\u52d5\u4f5c"),AviviD.likrTimer.isTouchDevice()?(this.event_arr=["touchend"],jQuery("#is_touch_device").text("\u53ef\u652f\u63f4\u89f8\u78b0\u7684\u88dd\u7f6e\u5c07\u63a1\u7528: touchend")):(this.event_arr=["click","scroll","keydown"],jQuery("#is_touch_device").text("\u4e0d\u652f\u63f4\u89f8\u78b0\u7684\u88dd\u7f6e\u5c07\u63a1\u7528: click,scroll,keydown")),this.event_arr.forEach(function(a){return AviviD.likrTimer.bindAdaptiveEvent(a)}); else jQuery(window).on("keydown mousemove mousedown scroll",function(a){AviviD.likr_timer=AviviD.received%2?parseInt(AviviD.timeOut.browsing):parseInt(AviviD.timeOut.landing);AviviD.likr_timer_ad_banner=AviviD.timeOut.ad_banner;AviviD.likr_timer_before_page=AviviD.timeOut.before_page;AviviD.likr_timer_mandatory_before_page=AviviD.timeOut.mandatory_before_page})},1500)},native_init:function(a,b){b=void 0===b?null:b;jQuery(window).on("keydown mousemove mousedown scroll",function(c){0==AviviD.start_browse&& (AviviD.likrTimer.intervalTrigger(a,b),AviviD.start_browse=1,jQuery(this).unbind(c))})},resetTime:function(){AviviD.likr_timer=AviviD.received%2?parseInt(AviviD.timeOut.browsing):parseInt(AviviD.timeOut.landing);AviviD.likr_timer_ad_banner=AviviD.timeOut.ad_banner;AviviD.likr_timer_before_page=AviviD.timeOut.before_page;AviviD.likr_timer_mandatory_before_page=AviviD.timeOut.mandatory_before_page},intervalTrigger_ad_banner:function(a,b){b=void 0===b?null:b;AviviD.likrTimer.clearTimer_ad_banner();AviviD.intervalTimeoutId_ad_banner= setInterval(function(){AviviD.likr_timer_ad_banner--;0==AviviD.likr_timer_ad_banner&&(a(b),AviviD.likrTimer.clearTimer_ad_banner())},1E3)},intervalTrigger_before_page:function(a,b){b=void 0===b?null:b;AviviD.likrTimer.clearTimer_before_page();AviviD.intervalTimeoutId_before_page=setInterval(function(){AviviD.likr_timer_before_page--;0==AviviD.likr_timer_before_page&&(a(b),AviviD.likrTimer.clearTimer_before_page())},1E3)},intervalTrigger_mandatory_before_page:function(a,b){b=void 0===b?null:b;AviviD.likrTimer.clearTimer_mandatory_before_page(); AviviD.intervalTimeoutId_mandatory_before_page=setInterval(function(){AviviD.likr_timer_mandatory_before_page--;0==AviviD.likr_timer_mandatory_before_page&&(a(b),AviviD.likrTimer.clearTimer_mandatory_before_page())},1E3)},intervalTrigger:function(a,b){b=void 0===b?null:b;AviviD.likrTimer.clearTimer();AviviD.intervalTimeoutId=setInterval(function(){AviviD.likr_timer--;0==AviviD.likr_timer&&(AviviD.likrTimer.timesUp_times++,a(b))},1E3)},clearTimer_ad_banner:function(){"undefined"!=AviviD.intervalTimeoutId_ad_banner&& clearTimeout(AviviD.intervalTimeoutId_ad_banner)},clearTimer_before_page:function(){"undefined"!=AviviD.likr_timer_before_page&&clearTimeout(AviviD.likr_timer_before_page)},clearTimer_mandatory_before_page:function(){"undefined"!=AviviD.likr_timer_mandatory_before_page&&clearTimeout(AviviD.likr_timer_mandatory_before_page)},clearTimer:function(){"undefined"!=AviviD.intervalTimeoutId&&clearTimeout(AviviD.intervalTimeoutId)},adaptiveRange:function(a){return 2>=a?10:4>=a?12:6>=a?14:8>=a?16:30},bindAdaptiveEvent:function(a){"scroll"== a?window.addEventListener(a,function(b){window.clearTimeout(AviviD.likrTimer.isScrolling);AviviD.likrTimer.isScrolling=setTimeout(function(){console.log("\u6ed1\u52d5\u505c\u6b62\u4e86");AviviD.likrTimer.likrTimerAssign()},66)},!1):window.addEventListener(a,AviviD.likrTimer.likrTimerAssign)},likrTimerAssign:function(){AviviD.adaptive_tap_count++;AviviD.likr_timer=AviviD.received%2?parseInt(AviviD.timeOut.browsing):parseInt(AviviD.timeOut.landing);AviviD.likr_timer_ad_banner=AviviD.timeOut.ad_banner; AviviD.likr_timer_before_page=AviviD.timeOut.before_page;AviviD.likr_timer_mandatory_before_page=AviviD.timeOut.mandatory_before_page;1==AviviD.adaptive_tap_count?(AviviD.adaptive_timer_end=AviviD.adaptive_timer,AviviD.adaptive_flag=0):(AviviD.adaptive_timer_start=AviviD.adaptive_timer_end,AviviD.adaptive_timer_end=AviviD.adaptive_timer,AviviD.adaptive_flag=1);1>AviviD.likrTimer.timesUp_times?(AviviD.likr_timer=AviviD.likrTimer.adaptiveRange(AviviD.adaptive_timer_end-AviviD.adaptive_timer_start), 1==AviviD.onpage_debug_mode&&(console.log("\u4f7f\u7528\u8005\u6d3b\u52d5\u4e2d\uff0c\u63a1\u7528\u52d5\u614b\u5f48\u5e55"),jQuery("#onpage_status").text("\u4f7f\u7528\u8005\u958b\u59cb\u6d3b\u52d5\uff0c\u63a1\u7528\u52d5\u614b\u5f48\u5e55"),console.log("\u4f7f\u7528\u8005\u89f8\u78b0\u6642\u9593\u5dee:"+(AviviD.adaptive_timer_end-AviviD.adaptive_timer_start)),jQuery("#user_time_range").text("\u4f7f\u7528\u8005\u89f8\u78b0\u6642\u9593\u5dee:"+(AviviD.adaptive_timer_end-AviviD.adaptive_timer_start)), console.log("onpage\u52d5\u614b\u6642\u9593\u70ba:"+AviviD.likr_timer),jQuery("#onpage_activity_time").text("onpage\u52d5\u614b\u6642\u9593\u70ba:"+AviviD.likr_timer))):(1==AviviD.onpage_debug_mode&&console.log("\u5df2\u8df3\u51fa\u904eonpage\uff0c\u4e0d\u518d\u8df3\u51fa"),AviviD.likr_timer=-1)},isTouchDevice:function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints},test:{contentNone:function(){if("undefined"==typeof document.getElementsByTagName("h1")[1]){var a= document.createElement("h1");a.innerHTML="\u5ee3\u544a\u9810\u7b97\u5df2\u4f7f\u7528\u5b8c\u7562\uff0c\u6c92\u6709\u5ee3\u544a\u7d20\u6750\u986f\u793a";var b=document.getElementsByTagName("h1")[0];b.parentNode.insertBefore(a,b.nextSibling)}else document.getElementsByTagName("h1")[1].innerHTML="\u5ee3\u544a\u9810\u7b97\u5df2\u4f7f\u7528\u5b8c\u7562\uff0c\u6c92\u6709\u5ee3\u544a\u7d20\u6750\u986f\u793a"},countDown:function(){"undefined"==typeof jQuery("html>h1").html()?jQuery("html").prepend("<h1>\u63a8\u64ad\u5012\u6578: "+ AviviD.likr_timer+"</h1>"):0<=AviviD.likr_timer?document.getElementsByTagName("h1")[0].innerHTML="\u63a8\u64ad\u5012\u6578: "+AviviD.likr_timer:document.getElementsByTagName("h1")[0].innerHTML="\u89f8\u78b0\u87a2\u5e55\u6216</br>\u5c07\u6ed1\u9f20\u79fb\u52d5\u5230\u8996\u7a97\u5167\uff0c</br>\u4f7f\u63a8\u64ad\u958b\u59cb\u91cd\u65b0\u5012\u6578\u3002"},pushSuccess:function(){if("undefined"==typeof document.getElementsByTagName("h1")[1]){var a=document.createElement("h1");a.innerHTML="\u63a8\u64ad"; var b=document.getElementsByTagName("h1")[0];b.parentNode.insertBefore(a,b.nextSibling)}else document.getElementsByTagName("h1")[1].innerHTML="\u63a8\u64ad"}}}},AviviD.get_article_title=function(){AviviD.settings.payment_selector="pixnet"==AviviD.web_id?void 0!=document.body.dataset.articleId?"#article-"+document.body.dataset.articleId+" > h2 > a":"_":AviviD.detect_is_mobile(AviviD.str_os_type)?AviviD.settings.payment_selector_m:AviviD.settings.payment_selector;null!==document.querySelector("meta[property='og:title']")? AviviD.title=document.querySelector("meta[property='og:title']").getAttribute("content"):null!==document.querySelector("title")?AviviD.title=document.querySelector("title").innerHTML:null!==document.querySelector(AviviD.settings.payment_selector)?AviviD.title=document.querySelector(AviviD.settings.payment_selector).innerHTML:AviviD.title="_";return AviviD.title},AviviD.get_urlparam=function(a){a=new RegExp("(^|&)"+a+"=([^&]*)(&|$)");a=window.location.search.substr(1).match(a);return null!=a?unescape(a[2]): null},AviviD.get_uuid=function(){AviviD.status.is_new_user_uuid="0";if(AviviD.get_urlparam("likr_id"))try{var a=window.atob(AviviD.get_urlparam("likr_id"));AviviD.set_cookie("AviviD_uuid",a);AviviD.set_cookie("uuid",a);AviviD.status.is_new_user_uuid="1";AviviD.uuid=a}catch(d){AviviD.set_cookie("AviviD_uuid","")}var b=AviviD.get_cookie("AviviD_uuid");if(AviviD.empty(b)){a=AviviD.detect_browser_type();var c=-1!=document.cookie.indexOf("hasCookiePermission=true");if("iOS"!=a&&"Safari"!=a||c)window.addEventListener("message", function(d){AviviD.uuid_origin=d.origin;if("https://auto-load-balancer.likr.com.tw"===AviviD.uuid_origin){d=null===d.data?AviviD.get_ios_uuid():d.data;AviviD.set_cookie("AviviD_uuid",d);AviviD.status.is_new_user_uuid="1";AviviD.uuid=d;var f=document.createElement("iframe");f.id="AviviD_ad_uuid_iframe";f.src="https://sun.advividnetwork.com/include_code/uuid_iframe.html?uuid="+d;f.style="display:none";document.body&&(document.body.appendChild(f),document.getElementById("AviviD_ad_uuid_iframe").style.display= "none");AviviD.set_cookie("AviviD_refresh_uuid_status",1)}},!1),a=document.createElement("iframe"),a.id="AviviD_likr_uuid_iframe",a.src="https://auto-load-balancer.likr.com.tw/pushEndPoint/uuid_gen/uuid_iframe.php",a.style="display:none",document.body?(document.body.appendChild(a),a=document.getElementById("AviviD_likr_uuid_iframe"),a.style.display="none"):setTimeout(function(){AviviD.get_uuid()},500);else return uuid=AviviD.get_ios_uuid(),AviviD.set_cookie("AviviD_uuid",uuid),AviviD.uuid=uuid}else return!AviviD.empty(AviviD.web_id)&& (a=AviviD.get_cookie("AviviD_refresh_uuid_status"),AviviD.empty(a)||1==a)&&(window.addEventListener("message",function(d){AviviD.uuid_origin=d.origin;if("https://auto-load-balancer.likr.com.tw"===AviviD.uuid_origin){d=null===d.data?AviviD.get_ios_uuid():d.data;AviviD.set_cookie("AviviD_uuid",d);AviviD.status.is_new_user_uuid="1";b=AviviD.uuid=d;var f=document.createElement("iframe");f.id="AviviD_ad_uuid_iframe";f.src="https://sun.advividnetwork.com/include_code/uuid_iframe.html?uuid="+d;f.style="display:none"; document.body&&(document.body.appendChild(f),document.getElementById("AviviD_ad_uuid_iframe").style.display="none");AviviD.set_cookie("AviviD_refresh_uuid_status",2)}},!1),a=document.createElement("iframe"),a.id="AviviD_likr_uuid_iframe",a.src="https://auto-load-balancer.likr.com.tw/pushEndPoint/uuid_gen/uuid_iframe.php",a.style="display:none",document.body?(document.body.appendChild(a),a=document.getElementById("AviviD_likr_uuid_iframe"),a.style.display="none"):setTimeout(function(){AviviD.get_uuid()}, 500)),b},AviviD.get_ios_uuid=function(){var a=function(){var c=Date.now();"undefined"!==typeof performance&&"function"===typeof performance.now&&(c+=performance.now());return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var f=(c+16*Math.random())%16|0;c=Math.floor(c/16);return("x"===d?f:f&3|8).toString(16)})},b="";AviviD.status.is_new_user_ios_uuid="0";null==AviviD.get_cookie("AviviD_ios_uuid")?null==localStorage.getItem("AviviD_ios_uuid")?(b=a(),AviviD.status.is_new_user_ios_uuid= "1"):b=localStorage.getItem("AviviD_ios_uuid"):b=AviviD.get_cookie("AviviD_ios_uuid");AviviD.set_cookie("AviviD_ios_uuid",b);localStorage.setItem("AviviD_ios_uuid",b);return b},AviviD.merge_uuid=function(){if(AviviD.uuid&&AviviD.clientIP){var a=new URL(window.location.href);AviviD.AviviD_main_uuid=a.searchParams.get("AviviD_main_uuid")?a.searchParams.get("AviviD_main_uuid"):a.searchParams.get("avivid_main_uuid");var b=AviviD.get_cookie("AviviD_main_uuid");a=AviviD.empty(AviviD.get_cookie("_fbp"))? "_":AviviD.get_cookie("_fbp");var c=AviviD.empty(AviviD.get_cookie("_gid"))?"_":AviviD.get_cookie("_gid");AviviD.empty(AviviD.AviviD_main_uuid)||(AviviD.empty(b)?AviviD.set_cookie("AviviD_main_uuid",AviviD.AviviD_main_uuid):b!=AviviD.AviviD_main_uuid&&AviviD.set_cookie("AviviD_main_uuid",AviviD.AviviD_main_uuid));AviviD.empty(AviviD.AviviD_main_uuid)||1>=AviviD.AviviD_main_uuid.length||(b=location.href.split("&AviviD_main_uuid"),history.replaceState(history.state,"",b[0]),AviviD.param_dict={AviviD_main_uuid:AviviD.AviviD_main_uuid, web_id:AviviD.web_id,web_uuid:AviviD.uuid,os_name:AviviD.UAResult.os.name,browser_name:AviviD.UAResult.browser.name,os_ver:AviviD.UAResult.os.version,browser_ver:AviviD.UAResult.browser.version,uagent:AviviD.UAResult.ua,addr:AviviD.clientIP,fb_id:a,ga_id:c,language:(navigator.language||navigator.browserLanguage).toLowerCase()},AviviD.process_send_uuid=function(){for(var d=$jscomp.makeIterator(Object.entries(AviviD.param_dict)),f=d.next();!f.done;f=d.next()){var e=$jscomp.makeIterator(f.value);f=e.next().value; e=e.next().value;"string"==typeof e&&(v1=e.replace(/ /g,"-"),AviviD.param_dict[f]=v1.replace(/\//g,"_"))}jQuery.ajax({url:"https://asia-east1-hd-crescent.cloudfunctions.net/get_url_ID?AviviD_main_uuid="+AviviD.param_dict.AviviD_main_uuid+"&web_id="+AviviD.param_dict.web_id+"&web_uuid="+AviviD.param_dict.web_uuid+"&os_name="+AviviD.param_dict.os_name+"&browser_name="+AviviD.param_dict.browser_name+"&os_ver="+AviviD.param_dict.os_ver+"&browser_ver="+AviviD.param_dict.browser_ver+"&ip_addr="+AviviD.param_dict.addr+ "&uagent="+AviviD.param_dict.uagent+"&fb_id="+AviviD.param_dict.fb_id+"&ga_id="+AviviD.param_dict.ga_id+"&language="+AviviD.param_dict.language,xhrFields:{withCredentials:!1},method:"GET",dataType:"json",success:function(g){console.log(g)},error:function(g){console.log(g)}})},AviviD.process_send_uuid())}else setTimeout(function(){AviviD.merge_uuid()},1E3)},AviviD.get_webuserid=function(){var a=AviviD.get_cookie("webuserid");AviviD.status.is_new_user_webuserid="0";a||(a=AviviD.gen_webuserid(),AviviD.set_cookie("webuserid", a),AviviD.status.is_new_user_webuserid="1");return a},AviviD.gen_webuserid=function(){var a=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()},AviviD.get_website_info=function(){JSON.stringify(AviviD.ajax_data);var a="https://avivid.likr.tw/settings_file_json/"+AviviD.category_id+".json";jQuery.ajax({type:"GET",url:a,xhrFields:{withCredentials:!1},cache:!0,dataType:"json",success:function(b){"_"==b.sender_id&&(b.sender_id= "912321621860");AviviD.status.get_website_info="1";AviviD.loadScript("https://avividone.likr.tw/killswitch/killswitch_config.js");"1"==AviviD.status.get_website_info?(AviviD.settings.is_aws=b.is_aws,AviviD.settings.is_crescent=b.is_crescent,AviviD.settings.icon_path=b.icon_path,AviviD.settings.string_ring_icon=b.ring_icon,AviviD.settings.sw_type=b.sw_type,AviviD.settings.channel_id=b.channel_id,AviviD.settings.push_banner_data_title=b.banner_title,AviviD.settings.push_banner_data_content=b.banner_content, AviviD.settings.banner_button_allow=b.banner_button_allow,AviviD.settings.banner_button_deny=b.banner_button_deny,AviviD.settings.push_banner_data_interval=b.banner_interval_mins,AviviD.settings.push_banner_data_position=b.banner_position,AviviD.settings.ring_position_top=b.ring_position_top,AviviD.settings.ring_position_bottom=b.ring_position_bottom,AviviD.settings.ring_position_left=b.ring_position_left,AviviD.settings.ring_position_right=b.ring_position_right,AviviD.settings.show_ring_after_subscribed= b.ring_display,AviviD.settings.show_ring=b.show_ring,AviviD.settings.ring_size_height=b.ring_size_height,AviviD.settings.ring_size_width=b.ring_size_width,AviviD.settings.banner_allow_btn=b.banner_allow_btn,AviviD.settings.banner_cancel_btn=b.banner_cancel_btn,AviviD.settings.ring_before_background_path=b.ring_before_background_path,AviviD.settings.ring_after_background_path=b.ring_after_background_path,AviviD.settings.new_onpage_version=b.new_onpage_version,AviviD.settings.fb_banner_title=b.fb_banner_title, AviviD.settings.fb_banner_content=b.fb_banner_content,AviviD.settings.fb_banner_icon=b.fb_banner_icon,AviviD.settings.add_ecommerce_listener=b.add_ecommerce_listener,AviviD.settings.string_banner_icon=b.banner_icon,AviviD.settings.ring_position_mtop=b.ring_position_mtop,AviviD.settings.ring_position_mbottom=b.ring_position_mbottom,AviviD.settings.ring_position_mleft=b.ring_position_mleft,AviviD.settings.ring_position_mright=b.ring_position_mright,AviviD.settings.show_fb_banner=b.show_fb_banner,AviviD.settings.pc_show_ring= b.pc_show_ring,AviviD.settings.pc_show_banner=b.pc_show_banner,AviviD.settings.mobile_show_ring=b.mobile_show_ring,AviviD.settings.mobile_show_banner=b.mobile_show_banner,AviviD.settings.fp_ak=b.fp_ak,AviviD.settings.fp_ad=b.fp_ad,AviviD.settings.fp_du=b.fp_du,AviviD.settings.fp_pi=b.fp_pi,AviviD.settings.fp_sb=b.fp_sb,AviviD.settings.fp_ai=b.fp_ai,AviviD.settings.fp_mi=b.fp_mi,AviviD.settings.fp_msi=b.fp_msi,AviviD.settings.language=b.language,AviviD.settings.switch_language=b.switch_language,AviviD.settings.ios_enable= b.ios_enable,AviviD.settings.banner_cancel_twice_exp_day=b.banner_click_cancel_twice_interval_days,AviviD.settings.website_type=b.website_type,AviviD.settings.native_enable=b.native_enable,"pixnet"==AviviD.web_id&&0==document.domain.includes("pixnet.net")&&(AviviD.settings.native_enable="0"),AviviD.settings.banner_enable=b.banner_enable,AviviD.settings.onpage_enable=b.onpage_enable,AviviD.settings.compensation_enable=b.compensation_enable,AviviD.settings.onpage_timeout_first=b.onpage_timeout_first, AviviD.settings.onpage_timeout_cycle=b.onpage_timeout_cycle,AviviD.settings.onpage_with_ad=b.onpage_with_ad,AviviD.settings.sub_banner_customer_enable=b.sub_banner_customer_enable,AviviD.settings.ad_banner_enable=b.ad_banner_enable,AviviD.settings.ad_banner_with_ad=b.ad_banner_with_ad,AviviD.settings.ad_banner_position=b.ad_banner_position,AviviD.settings.ad_banner_pic_position=b.ad_banner_pic_position,AviviD.settings.ad_banner_timer=b.ad_banner_timer,AviviD.settings.ad_banner_life_cycle=b.ad_banner_life_cycle, AviviD.settings.before_page_timer=5,AviviD.settings.mandatory_before_page_timer=60,AviviD.settings.onpage_position=b.onpage_position,AviviD.settings.onpage_position_vh=b.onpage_position_vh,AviviD.settings.onpage_pc_position=b.onpage_pc_position,AviviD.settings.onpage_pic_position=b.onpage_pic_position,AviviD.settings.track_behavior_enable=b.track_behavior_enable,AviviD.settings.ip_enable=b.ip_enable,AviviD.settings.payment_selector=b.payment_selector,AviviD.settings.payment_selector_m=b.payment_selector_m, AviviD.settings.payment_url=b.payment_url,AviviD.settings.payment_url_m=b.payment_url_m,AviviD.settings.checkout_url=b.checkout_url,AviviD.settings.checkout_url_m=b.checkout_url_m,AviviD.settings.checkout_trigger_class=b.checkout_trigger_class,AviviD.settings.checkout_trigger_class_m=b.checkout_trigger_class_m,AviviD.settings.checkout_data_class=b.checkout_data_class,AviviD.settings.checkout_data_class_m=b.checkout_data_class_m,AviviD.settings.cart_url=b.cart_url,AviviD.settings.cart_url_m=b.cart_url_m, AviviD.settings.cart_data_class=b.cart_data_class,AviviD.settings.cart_data_class_m=b.cart_data_class_m,AviviD.settings.number_url=b.number_url,AviviD.settings.number_url_m=b.number_url_m,AviviD.settings.number_trigger_class=b.number_trigger_class,AviviD.settings.number_trigger_class_m=b.number_trigger_class_m,AviviD.settings.number_data_id=b.number_data_id,AviviD.settings.number_data_id_m=b.number_data_id_m,AviviD.settings.back_page_enable=b.back_page_enable,AviviD.settings.ad_block_enabled=b.ad_block_enabled, AviviD.settings.ad_block_abtest_enabled=b.ad_block_abtest_enabled,AviviD.settings.ad_block_abtest_ratio=b.ad_block_abtest_ratio,AviviD.settings.ad_block_abtest_start_time=b.ad_block_abtest_start_time,AviviD.settings.ad_block_abtest_end_time=b.ad_block_abtest_end_time,AviviD.settings.sliding_enable=b.sliding_enable,AviviD.settings.notify_enable=b.notify_enable,AviviD.settings.before_page_enable=b.before_page_enable,AviviD.settings.push_before_page_enable=b.push_before_page_enable,AviviD.settings.yh_enable= b.yh_enable,AviviD.settings.onpage_divide_article_ad=b.onpage_divide_article_ad,AviviD.settings.live_onsite_enable=b.live_onsite_enable,AviviD.settings.dsp_ad_enable=b.dsp_ad_enable,AviviD.settings.geolocation_enable=b.geolocation_enable,AviviD.settings.pwa_enable=b.pwa_enable,AviviD.settings.console_enable=b.console_enable,AviviD.settings.SENDER_ID=b.sender_id,AviviD.settings.banner_native=b.banner_native,AviviD.settings.self_public_key=b.self_public_key,AviviD.self_push_config={pushKey:AviviD.settings.self_public_key}, AviviD.sw_path="_"!=b.sw_path&&b.sw_path?b.sw_path:"/firebase-messaging-sw.js",AviviD.sw_scope="_"!=b.sw_scope&&b.sw_scope?b.sw_scope:"/firebase-cloud-messaging-push-scope","_"!=AviviD.settings.fp_msi?(AviviD.ns_flag=1,AviviD.settings.fb_config={apiKey:AviviD.settings.fp_ak,authDomain:AviviD.settings.fp_ad,databaseURL:AviviD.settings.fp_du,projectId:AviviD.settings.fp_pi,storageBucket:AviviD.settings.fp_sb,messagingSenderId:AviviD.settings.fp_msi,appId:AviviD.settings.fp_ai,measurementId:AviviD.settings.fp_mi}): AviviD.ns_flag=0,AviviD.update_time=(new Date).getTime(),AviviD.status.update_time=AviviD.convert_timestamp_to_time(AviviD.update_time),AviviD.load_aws(),AviviD.sw_version="1.0.868.210701",AviviD.switch_show_mode()):AviviD.console("AviviD get_website_info : status => "+b.status+", resText => "+b.resText)},error:function(b,c,d){AviviD.console("jqXHR :",b);AviviD.console("textStatus :",c);AviviD.console("errorThrown :",d)}});-1!=AviviD.allow_new_onpage_category_id.indexOf(AviviD.category_id)&&(a="https://avivid.likr.tw/settings_file/"+ AviviD.web_id+".json",jQuery.ajax({type:"GET",url:a,xhrFields:{withCredentials:!1},cache:!1,credentials:"same-origin",dataType:"json",success:function(b){AviviD.settings.adaptive_push=parseInt(b.adaptive_push);AviviD.settings.event_trigger=parseInt(b.event_trigger);AviviD.settings.redirect_action=parseInt(b.redirect_action);jQuery("#adaptive_push>span").text(AviviD.settings.adaptive_push);jQuery("#event_trigger>span").text(AviviD.settings.event_trigger);jQuery("#redirect_action>span").text(AviviD.settings.redirect_action)}, error:function(b,c,d){AviviD.console("jqXHR :",b);AviviD.console("textStatus :",c);AviviD.console("errorThrown :",d)}}))},AviviD.switch_show_mode=function(){AviviD.status.is_push_supported=AviviD.detect_is_push_supported();"0"==AviviD.settings.ios_enable&&"2"==AviviD.int_os_type?AviviD.console("AviviD : iOS is disabled."):AviviD.status.is_push_supported?"1"===AviviD.settings.native_enable?AviviD.webpush_scheme_native():"1"===AviviD.settings.banner_enable&&"5"!=AviviD.int_browser_type&&"6"!=AviviD.int_browser_type&& AviviD.banner_old():AviviD.console("Your Browser is not supported Push Notification")},AviviD.detect_is_push_supported=function(){var a=AviviD.UAResult,b=/(ipod|iphone|ipad)/i.test(a.ua);/(mac os)/i.test(a.os.name);var c=/chrome/i.test(a.browser.name),d=/firefox/i.test(a.browser.name);/safari/i.test(a.browser.name);/(Trident|MSIE)/i.test(a.ua);/line/i.test(a.ua);!/like android/i.test(a.ua)&&/android/i.test(a.ua);/edge/i.test(a.ua);var f=/Samsung/i.test(a.browser.name),e="fcm"===AviviD.settings.sw_type? 50:49;c?a.browser.version.split(".",4)[0]<e&&(c=0):d&&44>a.browser.version.split(".",4)[0]&&(d=0);return c||d||f?b?!1:!0:!1},AviviD.protocol_firebase_accept=function(){return"http:"==location.protocol?!1:!0},AviviD.webpush_scheme_native=function(){AviviD.in_array(AviviD.str_browser_type,["Chrome","Firefox","Samsung Browser"])?(AviviD.debugLog("sw_series_browser:",AviviD.str_browser_type),null!=AviviD.get_cookie("AviviD_already_exist")&&AviviD.get_cookie("AviviD_already_exist"),AviviD.protocol_firebase_accept()? AviviD.loadFirebase():AviviD.requestGeolocation()):"Safari"==AviviD.str_browser_type?"1"!=AviviD.status.subscribe_status?(AviviD.debugLog("apns:",AviviD.str_browser_type),"2"==AviviD.settings.banner_native?"1"!=AviviD.get_cookie("AviviD_already_exist")&&AviviD.safari_banner_subscribe(AviviD.settings.string_banner_icon,AviviD.settings.push_banner_data_title,AviviD.settings.push_banner_data_content,AviviD.settings.banner_allow_btn,AviviD.settings.banner_cancel_btn):"1"==AviviD.settings.is_aws?AviviD.regSafari_aws(): AviviD.regSafari()):(AviviD.debugLog("apns:",AviviD.str_browser_type),AviviD.debugLog("regSafari:","Subscribed"),AviviD.requestGeolocation()):AviviD.debugLog("AviviD: this browser is not supported push notification")},AviviD.banner_sub=function(){if("0"==(null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"):0)){var a=null!=AviviD.get_cookie("AviviD_show_banner")?AviviD.get_cookie("AviviD_show_banner"):0;"0"==a?AviviD.waterfall_subscribe_module&&AviviD.highest_zindex&& AviviD.subscribe_waterfall?(AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_subscribe_v2.css","AviviD_waterfall_subscribe"),AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_webpush.css","AviviD_waterfall_webpush"),jQuery("html").append(AviviD.waterfall_subscribe_module(1,"AviviD.subscribe_agent_domain")),AviviD.highest_zindex("avivid_waterfall"),AviviD.subscribe_waterfall(screen.width,"avivid_waterfall_subscribe")):setTimeout(function(){AviviD.banner_sub()},500):"1"== a&&("1"==AviviD.settings.is_aws?AviviD.requestPermissionFCM_aws():AviviD.requestPermissionFCM())}else"1"!=(null!=AviviD.get_cookie("AviviD_show_sub")?AviviD.get_cookie("AviviD_show_sub"):0)&&(AviviD.messaging&&AviviD.waterfall_subscribe_module&&AviviD.highest_zindex&&AviviD.subscribe_waterfall?AviviD.messaging.getToken().then(function(b){AviviD.console("token exists")})["catch"](function(b){AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_subscribe_v2.css","AviviD_waterfall_subscribe"); AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_webpush.css","AviviD_waterfall_webpush");jQuery("html").append(AviviD.waterfall_subscribe_module(1,"AviviD.compensation_subscribe"));AviviD.highest_zindex("avivid_waterfall");AviviD.subscribe_waterfall(screen.width,"avivid_waterfall_subscribe")}):setTimeout(function(){AviviD.banner_sub()},500))},AviviD.subscribe_agent_domain=function(a){switch(a){case "accept":AviviD.set_cookie("AviviD_show_banner","1");AviviD.waterfall_disappear("avivid_waterfall_subscribe"); "1"==AviviD.settings.is_aws?AviviD.requestPermissionFCM_aws():AviviD.requestPermissionFCM();break;case "block":AviviD.set_cookie_minutes("AviviD_show_banner","2",60*AviviD.settings.ad_banner_life_cycle),AviviD.waterfall_disappear("avivid_waterfall_subscribe"),AviviD.waterfall_disappear("avivid_waterfall_subscribe_setting")}},AviviD.empty=function(a){if("number"==typeof a||"boolean"==typeof a)return!1;if("null"===a||"undefined"===a||"undefined"==typeof a||null===a)return!0;if("undefined"!=typeof a.length)return 0== a.length;var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return 0==b},AviviD.get_top_domain=function(){var a=window.location.hostname;if(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/.test(a))return a;var b=a.split(".").length,c=a.split(".").reverse();return"2">=b?a:"3"==b?"com"===c[1]?a:c[1]+"."+c[0]:"4"==b?"com"===c[0]?c[1]+"."+c[0]:c[2]+"."+c[1]+"."+c[0]:c[2]+"."+c[1]+"."+c[0]},AviviD.set_cookie=function(a,b,c){var d=AviviD.get_top_domain();c=c||3650;var f=new Date;f.setTime(f.getTime()+864E5* c);AviviD.protocol_firebase_accept()?document.cookie=a+"="+escape(b)+";expires="+f.toGMTString()+";domain="+d+";path=/;secure;":document.cookie=a+"="+escape(b)+";expires="+f.toGMTString()+";domain="+d+";path=/;"},AviviD.set_cookie_minutes=function(a,b,c){var d=AviviD.get_top_domain();c=c||60;var f=new Date;f.setTime(f.getTime()+6E4*c);AviviD.protocol_firebase_accept()?document.cookie=a+"="+escape(b)+";expires="+f.toGMTString()+";domain="+d+";path=/;secure;":document.cookie=a+"="+escape(b)+";expires="+ f.toGMTString()+";domain="+d+";path=/;"},AviviD.set_cookie_days=function(a,b,c){var d=AviviD.get_top_domain();c=c||30;var f=new Date;f.setTime(f.getTime()+864E5*c);AviviD.protocol_firebase_accept()?document.cookie=a+"="+escape(b)+";expires="+f.toGMTString()+";domain="+d+";path=/;secure;":document.cookie=a+"="+escape(b)+";expires="+f.toGMTString()+";domain="+d+";path=/;"},AviviD.get_cookie=function(a){a=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));return null!=a?unescape(a[2]):null}, AviviD.delete_cookie=function(a){var b=new Date;b.setTime(b.getTime()-1);var c=AviviD.get_cookie(a);null!=c&&(document.cookie=a+"="+c+";expires="+b.toGMTString())},AviviD.detect_os_type=function(){return AviviD.UAResult.os.name},AviviD.trans_os_type_to_number=function(a){switch(a){case "Android":return"1";case "iOS":return"2";case "Mac OS":return"3";case "Windows":return"4";default:return"9"}},AviviD.trans_browser_type_to_number=function(a){switch(a){case "Chrome":return"1";case "Firefox":return"2"; case "Safari":return"3";case "iOS":return"4";case "IE":return"5";case "Edge":return"6";case "Samsung Browser":return"8";case "LINE":return"10";case "weixin":return"11";case "fbapp":return"12";case "Instagram":return"13";case "Opera":return"14";default:return"9"}},AviviD.detect_browser_type=function(){var a=null!=navigator.userAgent.match(/line/i),b="iOS"==AviviD.UAResult.os.name,c="micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i),d=-1<navigator.userAgent.indexOf("FBAV")|| -1<navigator.userAgent.indexOf("FBSV"),f=-1<navigator.userAgent.indexOf("Instagram");isOpera=-1<navigator.userAgent.indexOf("Opera")||-1<navigator.userAgent.indexOf("OPR");return a?"LINE":b?"iOS":c?"weixin":d?"fbapp":f?"Instagram":isOpera?"Opera":AviviD.UAResult.browser.name},AviviD.convert_timestamp_to_time=function(a){var b=function(c,d){return c.length>=d?c:b("0"+c,d)};a=new Date(Number(a));return a.getFullYear().toString()+"/"+b((a.getMonth()+1).toString(),2)+"/"+b(a.getDate().toString(),2)+" "+ b(a.getHours().toString(),2)+":"+b(a.getMinutes().toString(),2)+":"+b(a.getSeconds().toString(),2)},AviviD.detect_is_mobile=function(a){return"Android"==a||"iOS"==a?!0:!1},AviviD.detect_is_numeric=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},AviviD.in_array=function(a,b){for(var c=b.length,d=0;d<c;d++)if(b[d]==a)return!0;return!1},AviviD.console=function(a,b){"1"==AviviD.settings.console_enable&&console.log(a,void 0===b?"":b)},AviviD.loadFirebase=function(){if(["jpnn","brilio","popdaily2"].includes(AviviD.web_id)&& "granted"!=Notification.permission)setTimeout(function(){AviviD.loadFirebase()},1E3);else{var a={"firebase-messaging-sw-v2":"https://avivid.likr.tw/pushEndPoint/js/firebasejs/6.6.2/firebase.js"};Object.keys(a).forEach(function(e){-1<AviviD.sw_path.indexOf(e)&&(sdk_path=a[e])});var b=function(){(function(e,g,k,r){e=g.getElementsByTagName(k)[0]||g.getElementsByTagName("head")[0];var q=g.createElement(k);q.type="text/javascript";q.src=r;e.parentNode.insertBefore(q,e);q.addEventListener("load",function v(){q.removeEventListener("load", v,!1);AviviD.firebaseInit()},!1)})(window,document,"script","https://avivid.likr.tw/pushEndPoint/js/firebasejs/8.6.8/firebase-messaging.js")},c=function(){window.firebase?b():function(e,g,k,r){e=g.getElementsByTagName(k)[0]||g.getElementsByTagName("head")[0];var q=g.createElement(k);q.type="text/javascript";q.src=r;e.parentNode.insertBefore(q,e);q.addEventListener("load",function v(){q.removeEventListener("load",v,!1);b()},!1)}(window,document,"script","https://www.gstatic.com/firebasejs/8.6.8/firebase-app.js")}, d=null!=AviviD.get_cookie("AviviD_sw_version")?AviviD.get_cookie("AviviD_sw_version"):0,f=null!=localStorage.getItem("AviviD_sw_version")?localStorage.getItem("AviviD_sw_version"):0;0==d&&0!=f&&(d=f,AviviD.set_cookie("AviviD_sw_version",f));navigator.serviceWorker&&d!=AviviD.sw_version&&(navigator.serviceWorker.getRegistrations().then(function(e){e=$jscomp.makeIterator(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.scope.match(/.*\/firebase-cloud-messaging-push-scope$/)&&g.unregister()}),AviviD.set_cookie("AviviD_already_exist", "0",0),AviviD.set_cookie("AviviD_sw_version",AviviD.sw_version),localStorage.setItem("AviviD_sw_version",AviviD.sw_version));navigator.serviceWorker.controller?navigator.serviceWorker.controller.scriptURL.match(/.*\/firebase-messaging-sw.js$/)?"1"==AviviD.settings.pwa_enable?(window.addEventListener("beforeinstallprompt",AviviD.registerPWAEvent),c()):navigator.serviceWorker.getRegistration().then(function(e){e.unregister();AviviD.status.subscribe_status="0";c()}):c():navigator.serviceWorker.getRegistrations().then(function(e){var g= 0,k=null;if("1"!=AviviD.settings.pwa_enable)g=2;else{e=$jscomp.makeIterator(e);for(var r=e.next();!r.done;r=e.next())r=r.value,r.scope.match(/.*\/firebase-cloud-messaging-push-scope$/)?(g|=1,k=r):r.scope.match(/.*\/$/)&&(g|=2)}switch(g){case 0:case 1:k&&k.unregister(),AviviD.status.subscribe_status="0",window.addEventListener("beforeinstallprompt",AviviD.registerPWAEvent)}c()})}},AviviD.registerPWAEvent=function(a){a.prompt();a.userChoice.then(function(b){"accepted"===b.outcome?AviviD.console("User accepted the A2HS prompt"): AviviD.console("User dismissed the A2HS prompt")})},AviviD.firebaseInit=function(){var a={912321621860:{apiKey:"AIzaSyDJCrbDDigIQAPHhBFw-n6hruzQs8YWW-Y",authDomain:"hodomobile-3f63f.firebaseapp.com",databaseURL:"https://hodomobile-3f63f.firebaseio.com",projectId:"hodomobile-3f63f",storageBucket:"hodomobile-3f63f.appspot.com",messagingSenderId:"912321621860",appId:"1:912321621860:web:22bd5d844164cca55b9471"},687255249978:{apiKey:"AIzaSyBn-H1pM--XeDqf4EVPEKD3j1cq1zTpNcA",authDomain:"pixnet-718d4.firebaseapp.com", databaseURL:"https://pixnet-718d4.firebaseio.com",projectId:"pixnet-718d4",storageBucket:"pixnet-718d4.appspot.com",messagingSenderId:"687255249978",appId:"1:687255249978:web:52adaa7c8bc639cc334103"},515520174094:{apiKey:"AIzaSyAxoJhNyCDsRb_PhizhzMSQlHZ3YuhxP3I",authDomain:"ecom-fe1cf.firebaseapp.com",databaseURL:"https://ecom-fe1cf.firebaseio.com",projectId:"ecom-fe1cf",storageBucket:"ecom-fe1cf.appspot.com",messagingSenderId:"515520174094",appId:"1:515520174094:web:bacbbfb5c40c2e1b93845f",measurementId:"G-2Z6033677E"}, 817465926201:{apiKey:"AIzaSyApUOQsjIuLggMxU4yGGPgeDK3BbsTU8Ik",authDomain:"upmedia-55464.firebaseapp.com",databaseURL:"https://upmedia-55464.firebaseio.com",projectId:"upmedia-55464",storageBucket:"upmedia-55464.appspot.com",messagingSenderId:"817465926201",appId:"1:817465926201:web:bedd53aa11464a05a223e8",measurementId:"G-EQE9Y3XS2J"},312322267972:{apiKey:"AIzaSyCO72OgYltHmtCccCIlFfPn-uM3-UjXNvc",authDomain:"vmage-com-tw-api-project-312322267972.firebaseapp.com",databaseURL:"_",projectId:"vmage.com.tw:api-project-312322267972", storageBucket:"undefined",messagingSenderId:"312322267972",appId:"1:312322267972:web:ba348d3b82902a7e061511",measurementId:"G-8G8LV2ERRC"}}[AviviD.settings.SENDER_ID];1==AviviD.ns_flag&&(null!=AviviD.get_cookie("AviviD_tid_rmed")&&AviviD.get_cookie("AviviD_tid_rmed")||AviviD.settings.fp_msi==AviviD.settings.SENDER_ID||(firebase.initializeApp(a,"AviviD_old").messaging().deleteToken(),AviviD.set_cookie("AviviD_tid_rmed","1")),a=AviviD.settings.fb_config,AviviD.sw_scope="/firebase-cloud-messaging-ns-scope"); AviviD.firebaseApp=firebase.initializeApp(a,"AviviD");AviviD.console("AviviD.firebaseApp Init: "+AviviD.firebaseApp.name);AviviD.messaging=AviviD.firebaseApp.messaging();AviviD.count_error=0;"1"!=AviviD.status.subscribe_status?"0"==AviviD.settings.banner_native||"2"==AviviD.settings.banner_native?"1"==AviviD.settings.ad_banner_enable?AviviD.banner_sub():(a=null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"):0,"1"==AviviD.settings.is_aws?AviviD.requestPermissionFCM_aws(): AviviD.requestPermissionFCM(),0!=a&&(AviviD.console("AviviD token exist"),AviviD.requestGeolocation())):"1"==AviviD.settings.banner_native&&"1"!=AviviD.get_cookie("AviviD_already_exist")&&AviviD.bannerPermission():AviviD.console("AviviD.firebaseApp : Subscribed.");AviviD.messaging.onMessage(function(b){AviviD.console("Message received. ",b);var c=b.data;AviviD.web_id!=c.web_id&&"avivid"!=c.web_id||navigator.serviceWorker.getRegistrations().then(function(d){AviviD.console("getRegistrations :",d);if(d){var f= d[0];AviviD.console("useServiceWorker :",f);AviviD.messaging.getToken().then(function(e){var g,k,r;return $jscomp.asyncExecutePromiseGeneratorProgram(function(q){if(1==q.nextAddress){if(!e)return console.error("getToken: No Instance ID token available. Request permission to generate one."),q["return"]();AviviD.console("currentToken : "+e);return q.yield(AviviD.getNotificationData(e,c),3)}g=q.yieldResult;AviviD.console("pushData : ",g);AviviD.verifyMessage(c)?"1"==AviviD.settings.is_aws?(k={web_id:c.web_id, category_id:c.category_id,token:e,push_id:c.push_id,msg_source:c.msg_source,sw_source:self.location.origin},AviviD_AWS.config.region="ap-southeast-1",AviviD_AWS.config.credentials=new AviviD_AWS.CognitoIdentityCredentials({IdentityPoolId:"ap-southeast-1:f46698d9-24cf-4242-8a3d-8707f45d1cfd"}),AviviD_AWS.config.credentials.get(function(l){if(l)console.error(l);else{l=new AviviD_AWS.Firehose;var v={DeliveryStreamName:"impression",Record:{Data:JSON.stringify(k)}};l.putRecord(v,function(w,h){w?console.error("IMPRESSION_LOG_RECEIVER error:", w):console.log("IMPRESSION_LOG_RECEIVER res:",h)})}})):(k={web_id:c.web_id,category_id:c.category_id,token:e,push_id:c.push_id,msg_source:c.msg_source,sw_source:self.location.origin,sw_version:"onpage"},r=AviviD.createUrlObject("https://load-balancer.likr.com.tw/pushServer/impression_log_receiver.php",k),AviviD.console("IMPRESSION_LOG_RECIEVER urlObject :",r),fetch(r).then(function(l){if(200!==l.status)throw Error("IMPRESSION_LOG_RECIEVER error code: "+l.status);return AviviD.console("IMPRESSION_LOG_RECIEVER res:", l)})["catch"](function(l){return console.error("IMPRESSION_LOG_RECIEVER error:",l)}),AviviD_AWS.config.region="ap-southeast-1",ai="AKIATBR2IINUTKMLTB46",sa="4y+oardIXoXGuWOyTAvPRJFZ4UE4f97pYnmdLTo6",AviviD_AWS.config.credentials=new AviviD_AWS.Credentials(ai,sa,sessionToken=null),AviviD_AWS.config.maxRetries=5,AviviD_AWS.config.credentials.get(function(l){if(l)console.error(l);else{l=new AviviD_AWS.Firehose;var v={DeliveryStreamName:"impression-avivid-firehose",Record:{Data:JSON.stringify(k)}};l.putRecord(v, function(w,h){w?console.error("IMPRESSION_LOG_RECEIVER error:",w):AviviD.console("IMPRESSION_LOG_RECEIVER res:",h)})}})):console.error("Message: Missing Parameters.");return"_"!=g.title?q["return"](f.showNotification(g.title,g.content)):q["return"]()})})["catch"](function(e){console.error("getToken :",e)})}})})},AviviD.requestPermissionFCM_aws=function(){AviviD.messaging.requestPermission().then(function(){AviviD.console("Notification permission granted.");AviviD.messaging.getToken().then(function(a){if(a){var b= localStorage.getItem("avivid_tid"),c=btoa(a);c=c.substr(-(c.length-5));b!=c&&(a={web_id:AviviD.web_id,token:a,category_id:AviviD.category_id,uuid:AviviD.uuid,sw_type:"fcm",user_agent:AviviD.UAResult.ua,client_href:window.location.href,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type},AviviD.console("FCM Register send:",a),AviviD.kinesis_subscription_post(a))}else AviviD.console("No Instance ID token available. Request permission to generate one.")})["catch"](function(a){AviviD.console("An error occurred while retrieving token. ", a)})})["catch"](function(a){AviviD.console("Unable to get permission to notify.",a);AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)?AviviD.set_cookie("AviviD_already_exist","1"):AviviD.set_cookie("AviviD_already_exist","1",1)})},AviviD.requestPermissionFCM=function(){AviviD.messaging.requestPermission().then(function(){AviviD.console("Notification permission granted.");AviviD.messaging.getToken().then(function(a){if(a){AviviD.tget=1;var b=localStorage.getItem("avivid_tid"),c=btoa(a),d= c.substr(-(c.length-5));b!=d||AviviD.get_urlparam("avivid_check_mode")?AviviD.token_renew=1:AviviD.token_renew=0;b=AviviD.UAResult;b={web_id:AviviD.web_id,token:a,category_id:AviviD.category_id,avivid_regid:AviviD.avivid_regid,webuserid:AviviD.webuserid,uuid:AviviD.uuid,reg_source:"native",sw_type:"fcm",browser_ver:b.browser.version,os_ver:b.os.version,user_agent:b.ua,client_href:150<window.location.href.length?window.location.origin+"/?":window.location.href,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type, avivid_tag:AviviD.avivid_tag,token_renew:AviviD.token_renew};1==AviviD.ns_flag&&AviviD.settings.fp_msi!=AviviD.settings.SENDER_ID&&(b.web_id=AviviD.web_id+"1",b.avivid_tag=AviviD.web_id);AviviD.console("FCM Register send:",b);jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/endPointReg_v2.php",type:"POST",data:b,dataType:"json",xhrFields:{withCredentials:!1},success:function(e){AviviD.console("FCM Register res:",e);e.is_insert_success&&(AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)? AviviD.set_cookie("AviviD_already_exist","1"):AviviD.set_cookie("AviviD_already_exist","1",1),localStorage.setItem("avivid_tid",d),e=e.resText.split("#"),e[1]&&AviviD.set_cookie("sub_to",e[1]))},error:function(e,g,k){AviviD.console("xhr :",e);AviviD.console("ajaxOptions :",g);AviviD.console("thrownError :",k);AviviD.console("status code : "+e.status+" , ajaxOptions : "+g)}});AviviD.get_urlparam("avivid_check_mode")&&jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/check_status.php", type:"POST",data:b,dataType:"json",xhrFields:{withCredentials:!1},success:function(e){AviviD.console("check status",e);alert("\u4f7f\u7528\u8005\uff1a"+AviviD.uuid+"\uff0c\u8a02\u95b1\u72c0\u614b\uff1a\u6709\u6548")},error:function(e,g,k){AviviD.console("xhr :",e);AviviD.console("ajaxOptions :",g);AviviD.console("thrownError :",k);AviviD.console("status code : "+e.status+" , ajaxOptions : "+g)}});if("pixnet"==AviviD.web_id){var f=AviviD.uuid;jQuery.ajax({type:"get",contentType:"application/x-www-form-urlencoded; charset=utf-8", url:"https://avivid-pushnotification.pixnet.net/sync",xhrFields:{withCredentials:!1},data:{token:a,uuid:f},success:function(e,g){var k=e.member_id;AviviD.console("status "+g);jQuery.ajax({type:"get",contentType:"application/x-www-form-urlencoded; charset=utf-8",url:"https://auto-load-balancer.likr.com.tw/api/pixnet_memberid_insert_db.php",data:{web_id:AviviD.web_id,token:a,uuid:f,member_id:k},xhrFields:{withCredentials:!1},complete:function(r,q){AviviD.console("req "+JSON.stringify(r));AviviD.console("status "+ q)}})},error:function(e,g){AviviD.console("req in error "+JSON.stringify(e));AviviD.console("status "+g)}})}}else AviviD.console("No Instance ID token available. Request permission to generate one.")})["catch"](function(a){AviviD.console("An error occurred while retrieving token. ",a);3>AviviD.count_error&&(AviviD.requestPermissionFCM(),AviviD.count_error++)})})["catch"](function(a){AviviD.console("Unable to get permission to notify.",a);AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)? AviviD.set_cookie("AviviD_already_exist","1"):AviviD.set_cookie("AviviD_already_exist","1",1);AviviD.set_cookie_minutes("AviviD_show_sub","1",60*AviviD.settings.ad_banner_life_cycle)})},AviviD.requestGeolocation=function(){if(2==AviviD.int_browser_type){if("1"==AviviD.get_cookie("firefox_already_requested_geolocation")){AviviD.console("Already asked for permission today");return}AviviD.set_cookie("firefox_already_requested_geolocation","1",1)}var a=0;"1"==AviviD.settings.geolocation_enable&&navigator&& navigator.geolocation&&setTimeout(function(){navigator.geolocation.watchPosition(function(b){AviviD.geolocation.latitude=b.coords.latitude;AviviD.geolocation.longitude=b.coords.longitude;0==a&&(jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/location_receive.php",xhrFields:{withCredentials:!1},method:"POST",data:{uuid:AviviD.uuid,latitude:AviviD.geolocation.latitude,longitude:AviviD.geolocation.longitude},success:function(c){AviviD.console(c);console.log("s")},error:function(c, d,f){AviviD.console("xhr :",c);AviviD.console("ajaxOptions :",d);AviviD.console("thrownError :",f);AviviD.console("status code : "+c.status+" , ajaxOptions : "+d)}}),a+=1)})},AviviD.geolocation.get_interval)},AviviD.regSafari_aws=function(){if("safari"in window&&"pushNotification"in window.safari){var a=AviviD.web_id,b=AviviD.UAResult,c="web.tw.com.likr."+a,d={domainName:a},f=function(e){"default"===e.permission?(window.safari.pushNotification.requestPermission("https://www.likr.com.tw/pushosx",c, d,f),AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u9810\u8a2d"),AviviD.console("regSafari: ",e)):"denied"===e.permission?(AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u5c01\u9396"),AviviD.set_cookie("ano_already_exist","1")):"granted"===e.permission&&(AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u5141\u8a31"),AviviD.set_cookie("ano_already_exist","1"),e=e.deviceToken,localStorage.setItem("avivid_safari_token",e),AviviD.console("The user granted, with token: "+ e),e={web_id:AviviD.web_id,token:e,category_id:AviviD.category_id,uuid:e,reg_source:"native",sw_type:"safari",user_agent:b.ua,client_href:window.location.href,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type},AviviD.console("regSafari Register send:",e),AviviD.kinesis_subscription_post(e));AviviD.requestGeolocation()};a=window.safari.pushNotification.permission(c);f(a)}},AviviD.regSafari=function(){if("safari"in window&&"pushNotification"in window.safari){var a=AviviD.web_id,b=AviviD.UAResult, c="web.tw.com.likr."+a,d={domainName:a},f=function(e){"default"===e.permission?(window.safari.pushNotification.requestPermission("https://www.likr.com.tw/pushosx",c,d,f),AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u9810\u8a2d"),AviviD.console("regSafari: ",e)):"denied"===e.permission?(AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u5c01\u9396"),AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)?AviviD.set_cookie("AviviD_already_exist","1"):AviviD.set_cookie("AviviD_already_exist", "1",1)):"granted"===e.permission&&(AviviD.console("\u8a0a\u606f\u901a\u77e5\u72c0\u614b\uff1a\u5141\u8a31"),AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)?AviviD.set_cookie("AviviD_already_exist","1"):AviviD.set_cookie("AviviD_already_exist","1",1),e=e.deviceToken,localStorage.setItem("avivid_safari_token",e),AviviD.console("The user granted, with token: "+e),e={web_id:AviviD.web_id,token:e,category_id:AviviD.category_id,avivid_regid:AviviD.avivid_regid,webuserid:AviviD.webuserid,uuid:e, reg_source:"native",sw_type:"safari",browser_ver:b.browser.version,os_ver:b.os.version,user_agent:b.ua,client_href:window.location.href,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type,avivid_tag:AviviD.avivid_tag},AviviD.console("regSafari Register send:",e),jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/endPointReg_v2.php",xhrFields:{withCredentials:!1},type:"POST",data:e,success:function(g){AviviD.console("regSafari Register res:",g)},error:function(g,k,r){AviviD.console("xhr :", g);AviviD.console("ajaxOptions :",k);AviviD.console("thrownError :",r);AviviD.console("status code : "+g.status+" , ajaxOptions : "+k)}}));AviviD.requestGeolocation()};a=window.safari.pushNotification.permission(c);f(a)}},AviviD.debugLog=function(a,b){AviviD.status.debug&&AviviD.console(a,b||"")},AviviD.isHasActionButton=function(a){return"object"!==typeof a?0:a.button1_url||a.button2_url?1:0},AviviD.verifyMessage=function(a){return a.web_id&&a.push_id&&a.msg_source?1:0},AviviD.kinesis_subscription_post= function(a){AviviD_AWS.config.region="ap-southeast-1";AviviD_AWS.config.credentials=new AviviD_AWS.CognitoIdentityCredentials({IdentityPoolId:"ap-southeast-1:f46698d9-24cf-4242-8a3d-8707f45d1cfd"});AviviD_AWS.config.credentials.get(function(b){if(b)console.error(b);else{b=new AviviD_AWS.Firehose;var c={DeliveryStreamName:"subscribe",Record:{Data:JSON.stringify(a)}};b.putRecord(c,function(d,f){if(!d){AviviD.in_array(AviviD.category_id,AviviD.same_domain_list)?AviviD.set_cookie("AviviD_already_exist", "1"):AviviD.set_cookie("AviviD_already_exist","1",1);var e=btoa(a.token);localStorage.setItem("avivid_tid",e.substr(-(e.length-5)))}})}})},AviviD.getNotificationData=function(a,b){var c,d,f,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){c={title:"_",content:{body:"\u9ede\u64ca\u89c0\u770b\u66f4\u591a\u8cc7\u8a0a",icon:"https://www.likr.com.tw/pushEndPoint/images/avivid/image/icon.png",requireInteraction:!0,data:{click_url:"https://www.likr.com.tw/",web_id:AviviD.web_id,token:a,push_id:"", msg_source:"error"}}};if(!b.push_id)return console.error("notificationDataError: data.push_id not existed, use defaultData."),g["return"](c);d={};d.title=b.title?b.title:c.title;f={};f.body=b.body?b.body:c.content.body;f.icon=b.icon?b.icon:c.content.icon;f.image=b.image?b.image:"";f.requireInteraction="false"==b.requireInteraction?!1:!0;f.renotify="true"==b.renotify?!0:!1;f.silent="true"==b.silent?!0:!1;f.tag=b.tag?b.tag:"";f.data={web_id:b.web_id?b.web_id:AviviD.web_id,category_id:b.category_id? b.category_id:"",token:a,push_id:b.push_id,click_url:b.click_url?b.click_url:c.content.data.click_url,button1_url:b.button1_url,button2_url:b.button2_url,msg_source:b.msg_source};e=[];b.button1_title&&e.push({action:"button1",title:b.button1_title,icon:b.button1_icon?b.button1_icon:""});b.button2_title&&e.push({action:"button2",title:b.button2_title,icon:b.button2_icon?b.button2_icon:""});0<e.length&&(f.actions=e);f.image||delete f.image;d.content=f;return g["return"](d)})},AviviD.createUrlObject= function(a,b){var c=new URL(a);Object.keys(b).forEach(function(d){return c.searchParams.append(d,b[d])});return c},AviviD.set_is_likr=function(){if(AviviD.get_urlparam("is_likr")){var a=AviviD.get_top_domain();a="is_likr="+AviviD.get_urlparam("is_likr")+";domain="+a+";path=/";document.cookie=a}AviviD.get_urlparam("avivid_check_mode")&&AviviD.set_cookie("AviviD_already_exist","0",0)},AviviD.bannerPermission=function(){AviviD.banner_subscribe(AviviD.settings.string_banner_icon,AviviD.settings.push_banner_data_title, AviviD.settings.push_banner_data_content,AviviD.settings.banner_allow_btn,AviviD.settings.banner_cancel_btn)},AviviD.safari_banner_subscribe=function(a,b,c,d,f){jQuery("head").append('<style type="text/css">.avivid_push_banner{top: 50px;left: 30%;padding: 20px 20px;box-shadow: 0 1px 2px gray;color: #222;position: fixed;z-index: 999999;width: 400px;height: 130px;border:1px #AAAAAA;background-color:#f0f0f0;-webkit-box-sizing:revert;-moz-box-sizing:revert;box-sizing:revert;}</style>');jQuery("head").append('<style type="text/css">.avivid_icon{height: 100px; width:100px;}</style>'); jQuery("head").append('<style type="text/css">.avivid_button_1{position: relative;bottom: -30px;left:200px;width:100px;height:30px;font-family:DFKai-sb;font-size:16px;font-weight:bold;border-radius:10px;background-color:#0066FF;color: white;outline:none;}</style>');jQuery("head").append('<style type="text/css">.avivid_button_2{position: relative;bottom: -30px;left:-10px;width:100px;height:30px;font-family:DFKai-sb;font-size:16px;font-weight:bold;border-radius:10px;background-color:#f0f0f0;color: black;outline:none;}</style>'); jQuery("head").append('<style type="text/css">.avivid_title{position: relative;left:120px;top:-140px;word-break:break-all;width:280px;font-weight:bold;font-family:DFKai-sb;}');jQuery("head").append('<style type="text/css">.avivid_content{position: relative;left:120px;top:-130px;word-break:break-all;width:280px;font-family:DFKai-sb;}');var e=document.createElement("div");e.setAttribute("id","avivid_requestPermission");e.setAttribute("class","avivid_push_banner");e.style.display="block";var g=document.createElement("img"); g.setAttribute("class","avivid_icon");g.setAttribute("src",a);a=document.createElement("input");a.setAttribute("class","avivid_button_1");a.setAttribute("type","button");a.setAttribute("onclick","AviviD.trigger_safari_requestPermission('access')");a.setAttribute("value",d);d=document.createElement("input");d.setAttribute("class","avivid_button_2");d.setAttribute("type","button");d.setAttribute("onclick","AviviD.trigger_safari_requestPermission('denied')");d.setAttribute("value",f);f=document.createElement("p"); f.setAttribute("style","bottom: 0px; font-size: 10px;");f.innerHTML="Powered by likr\u00ae";var k=document.createElement("p");k.setAttribute("class","avivid_title");k.innerHTML=b;b=document.createElement("p");b.setAttribute("class","avivid_content");b.innerHTML=c;AviviD.console(e);AviviD.console(document.body);document.body.appendChild(e);e.appendChild(g);e.appendChild(a);e.appendChild(d);e.appendChild(f);e.appendChild(k);e.appendChild(b)},AviviD.banner_subscribe=function(a,b,c,d,f){jQuery("head").append('<style type="text/css">.avivid_push_banner{top: 0;left: 40%;padding: 20px 20px;;box-shadow: 0 1px 3px gray;color: #222;position: fixed;z-index: 999999;width: 400px;height: 150px;border:1px #AAAAAA solid;background-color:#DDDDDD;}@media(max-width: 480px){.avivid_push_banner{top: 68%;left: 4%;padding: 20px 20px;;box-shadow: 0 1px 3px gray;color: #222;position: fixed;z-index: 999999;width: 290px;height: 130px;border:1px #AAAAAA solid;background-color:#DDDDDD;}}</style>'); jQuery("head").append('<style type="text/css">.avivid_icon{height: 100px; width:100px;} </style>');jQuery("head").append('<style type="text/css">.avivid_button_1{position: relative;bottom: -50px;left:200px;width:100px;background-color:#0066FF;color: white;outline:none;}@media(max-width: 480px){.avivid_button_1{position: relative;bottom: 0px;left:0px;width:110px;background-color:#0066FF;color: white;outline:none;}}</style>');jQuery("head").append('<style type="text/css">.avivid_button_2{position: relative;bottom: -50px;left:-10px;width:100px;background-color:#FFFFFF;color: black;outline:none;}@media(max-width: 480px){.avivid_button_2{position: relative;bottom: -30px;left:-90px;width:70px;background-color:#FFFFFF;color: black;outline:none;}}</style>'); jQuery("head").append('<style type="text/css">.avivid_title{position: relative;left:100px;top:-140px;word-break:break-all;width:280px;}@media (max-width: 480px){.avivid_title{position: relative;left:100px;top:-140px;word-break:break-all;width:200px;}}');jQuery("head").append('<style type="text/css">.avivid_content{position: relative;left:100px;top:-130px;word-break:break-all;width:280px;}@media (max-width: 480px){.avivid_content{position: relative;left:100px;top:-150px;word-break:break-all;width:200px;}}'); var e=document.createElement("div");e.setAttribute("id","avivid_requestPermission");e.setAttribute("class","avivid_push_banner");e.style.display="block";var g=document.createElement("img");g.setAttribute("class","avivid_icon");g.setAttribute("src",a);a=document.createElement("input");a.setAttribute("class","avivid_button_1");a.setAttribute("type","button");a.setAttribute("onclick","AviviD.trigger_requestPermission('access')");a.setAttribute("value",d);d=document.createElement("input");d.setAttribute("class", "avivid_button_2");d.setAttribute("type","button");d.setAttribute("onclick","AviviD.trigger_requestPermission('denied')");d.setAttribute("value",f);f=document.createElement("p");f.setAttribute("style","position:relative; bottom: 0px; font-size: 10px;");f.innerHTML="Powered by likr\u00ae";var k=document.createElement("p");k.setAttribute("class","avivid_title");k.innerHTML=b;b=document.createElement("p");b.setAttribute("class","avivid_content");b.innerHTML=c;AviviD.console(e);AviviD.console(document.body); document.body.appendChild(e);e.appendChild(g);e.appendChild(a);e.appendChild(d);e.appendChild(f);e.appendChild(k);e.appendChild(b)},AviviD.trigger_safari_requestPermission=function(a){"access"==a?(document.getElementById("avivid_requestPermission").style.display="none",0==(null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"):0)?"1"==AviviD.settings.is_aws?AviviD.regSafari_aws():AviviD.regSafari():AviviD.console("AviviD token exist")):(document.getElementById("avivid_requestPermission").style.display= "none",AviviD.set_cookie("AviviD_already_exist","1",1))},AviviD.trigger_requestPermission=function(a){"access"==a?(document.getElementById("avivid_requestPermission").style.display="none",0==(null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"):0)?"1"==AviviD.settings.is_aws?AviviD.requestPermissionFCM_aws():AviviD.requestPermissionFCM():AviviD.console("AviviD token exist")):document.getElementById("avivid_requestPermission").style.display="none"},AviviD.page_view= function(){AviviD.page_view_num=parseInt(AviviD.get_cookie("page_view"),10)+1||1;10==AviviD.page_view_num&&(AviviD.page_view_num=0);AviviD.set_cookie_days("page_view",AviviD.page_view_num,1)},AviviD.uuid=AviviD.get_uuid(),AviviD.merge_uuid(),AviviD.loadScript=function(a,b){b=void 0===b?null:b;type=a.split(".").reverse()[0];switch(type){case "js":var c=document.createElement("script");c.type="text/javascript";c.src=a;break;case "css":c=document.createElement("link"),c.rel="stylesheet",c.type="text/css", null!=b&&(c.id=b),c.href=a}document.head.appendChild(c)},AviviD.compensation_subscribe=function(a){switch(a){case "accept":AviviD.set_cookie("AviviD_show_sub","1");AviviD.waterfall_disappear("avivid_waterfall_subscribe");a="magiplanet"==AviviD.web_id?"https://"+AviviD.web_id+".likr.app/pushEndPoint/subscribe/v2/sub.html?web_id="+AviviD.web_id+"&client_href="+AviviD.client_href+"&avivid_regid="+AviviD.avivid_regid+"&category_id="+AviviD.category_id:"https://"+AviviD.web_id+".likr.com.tw/pushEndPoint/subscribe/v2/sub.html?web_id="+ AviviD.web_id+"&client_href="+AviviD.client_href+"&avivid_regid="+AviviD.avivid_regid+"&category_id="+AviviD.category_id;AviviD.debugLog("go_to_subscribe :",a);window.open(a,AviviD.web_id+"_"+AviviD.category_id,"height=130, width=320, left=100, top=50");AviviD.fcm_sec_log("a","0");break;case "block":AviviD.set_cookie("AviviD_show_sub","1",7),AviviD.waterfall_disappear("avivid_waterfall_subscribe"),AviviD.waterfall_disappear("avivid_waterfall_subscribe_setting"),AviviD.fcm_sec_log("b","0")}},AviviD.compensation= function(){var a=null!=AviviD.get_cookie("AviviD_show_sub")?AviviD.get_cookie("AviviD_show_sub"):0;"1"===AviviD.settings.compensation_enable&&"1"===AviviD.settings.native_enable&&"0"===AviviD.settings.banner_native&&"0"===AviviD.settings.ad_banner_enable&&"1"!=a&&(AviviD.messaging&&AviviD.waterfall_subscribe_module&&AviviD.highest_zindex&&AviviD.subscribe_waterfall?AviviD.messaging.getToken().then(function(b){AviviD.console("token exists")})["catch"](function(b){AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_subscribe_v2.css", "AviviD_waterfall_subscribe");AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_webpush.css","AviviD_waterfall_webpush");jQuery("html").append(AviviD.waterfall_subscribe_module(1,"AviviD.compensation_subscribe"));AviviD.highest_zindex("avivid_waterfall");AviviD.subscribe_waterfall(screen.width,"avivid_waterfall_subscribe");jQuery("#avivid_waterfall_subscribe").on("mousemove click",function(c){var d=null!=AviviD.get_cookie("AviviD_already_exist")?AviviD.get_cookie("AviviD_already_exist"): 0;AviviD.fcm_sec_log("0",d);jQuery(this).unbind(c)})}):setTimeout(function(){AviviD.compensation()},500))},AviviD.checktoken=function(){AviviD.firebaseApp||AviviD.loadFirebase();AviviD.messaging?AviviD.messaging.getToken().then(function(a){console.log(a)})["catch"](function(a){console.log(a)}):setTimeout(function(){AviviD.checktoken()},500)},AviviD.fcm_sec_log=function(a,b){jQuery.ajax({url:"https://webpush-api02.likr.com.tw/pushServer/count_fcm_sec.php",xhrFields:{withCredentials:!1},type:"POST", data:{choose:a,web_id:AviviD.web_id,uuid:AviviD.uuid,already_exist:b},error:function(c,d,f){console.log("xhr :",c);console.log("ajaxOptions :",d);console.log("thrownError :",f);console.log("status code : "+c.status+" , ajaxOptions : "+d)}})},AviviD.banner_old=function(){"1"!=(null!=AviviD.get_cookie("AviviD_show_sub")?AviviD.get_cookie("AviviD_show_sub"):0)&&(AviviD.waterfall_subscribe_module&&AviviD.highest_zindex&&AviviD.subscribe_waterfall?(AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_subscribe_v2.css", "AviviD_waterfall_subscribe"),AviviD.loadScript("https://avivid.likr.tw/api/avivid_waterfall_webpush.css","AviviD_waterfall_webpush"),jQuery("html").append(AviviD.waterfall_subscribe_module(1,"AviviD.compensation_subscribe")),AviviD.highest_zindex("avivid_waterfall"),AviviD.subscribe_waterfall(screen.width,"avivid_waterfall_subscribe")):setTimeout(function(){AviviD.banner_old()},500))},AviviD.token_uuid_mapping=function(){null==AviviD.get_cookie("AviviD_token_retake")&&(void 0!=AviviD.messaging?AviviD.messaging.getToken().then(function(a){a? (a={web_id:AviviD.web_id,uuid:AviviD.uuid,token:a,webuserid:AviviD.webuserid},1==AviviD.ns_flag&&AviviD.settings.fp_msi!=AviviD.settings.SENDER_ID&&(a.web_id=AviviD.web_id+"1"),jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/remapping.php",xhrFields:{withCredentials:!1},type:"POST",data:a,success:function(b){AviviD.set_cookie("AviviD_token_retake",1,30)},error:function(b,c,d){AviviD.set_cookie("AviviD_token_retake",0,7)}})):AviviD.set_cookie("AviviD_token_retake",0,7)})["catch"](function(a){AviviD.set_cookie("AviviD_token_retake", 0,7)}):setTimeout(function(){AviviD.token_uuid_mapping()},2E3))},AviviD.construct(AviviD.main));AviviD.DetectIE_Version=function(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");if(0<b)return parseInt(a.substring(b+5,a.indexOf(".",b)),10);if(0<a.indexOf("Trident/"))return b=a.indexOf("rv:"),parseInt(a.substring(b+3,a.indexOf(".",b)),10);b=a.indexOf("Edge/");return 0<b?parseInt(a.substring(b+5,a.indexOf(".",b)),10):0}; AviviD.waterfall=function(){var a=["20180802000001"],b=[];0<AviviD.DetectIE_Version()&&11>=AviviD.DetectIE_Version()||a.includes(AviviD.category_id)||(AviviD.get_urlparam("avivid_preview_ad")?AviviD.loadScript("https://avivid.likr.tw/api/ios_water_webpush_v21_addemo.js"):AviviD.get_urlparam("avivid_preview_onpage")||!b.includes(AviviD.web_id)?AviviD.loadScript("https://avivid.likr.tw/api/ios_water_webpush_v21.js"):AviviD.loadScript("https://avivid.likr.tw/api/ios_water_webpush_v19.min.js"))};AviviD.waterfall(); AviviD.checkme_start_callback=function(){var a=["damanwoo","punchline","pansci","euyoung"];AviviD.checkme_enable=null==AviviD.get_urlparam("avivid_checkme_enable")?1:AviviD.get_urlparam("avivid_checkme_enable");AviviD.get_urlparam("avivid_checkme_demo")?AviviD.loadScript("https://rhea-cache.advividnetwork.com/checkme/avivid_checkme_demo.js"):(AviviD.get_urlparam("avivid_preview_checkme")||a.includes(AviviD.web_id))&&AviviD.checkme_enable&&AviviD.loadScript("https://rhea-cache.advividnetwork.com/checkme/avivid_checkme.js")}; AviviD.checkme_start_callback();AviviD.notify_start_callback=function(){void 0===AviviD.settings.notify_enable?setTimeout(function(){AviviD.notify_start_callback()},500):(AviviD.notify_enable=null==AviviD.get_urlparam("avivid_notify_enable")?1:AviviD.get_urlparam("avivid_notify_enable"),(AviviD.get_urlparam("avivid_notify_enable")||"1"==AviviD.settings.notify_enable)&&AviviD.notify_enable&&AviviD.loadScript("https://avividone.likr.tw/line_notify/avivid_notify.js"))};AviviD.notify_start_callback(); AviviD.onsite_live=function(){var a=["pixnet"];void 0===AviviD.settings.live_onsite_enable?setTimeout(function(){AviviD.onsite_live()},500):AviviD.get_urlparam("avivid_live_demo")?AviviD.loadScript(" https://avivid.likr.tw/api/live_pixnet.js"):a.includes(AviviD.web_id)&&AviviD.settings.live_onsite_enable&&AviviD.loadScript(" https://avivid.likr.tw/api/live_onsite.js")};AviviD.onsite_live();AviviD.load_exsw_module=0; AviviD.load_exsw=function(){AviviD.load_exsw_module+=1;10>=AviviD.load_exsw_module&&("1"===AviviD.settings.native_enable&&1==AviviD.tget?AviviD.loadScript("https://avivid.likr.tw/api/subexsw_core.js"):(void 0===AviviD.settings.native_enable||void 0===AviviD.tget)&&setTimeout(function(){AviviD.load_exsw()},1E3))};"upmedia"!=AviviD.web_id&&"mirrormedia"!=AviviD.web_id||AviviD.load_exsw();AviviD.load_self_sw_module=0; AviviD.self_sw=function(){AviviD.load_self_sw_module+=1;10>=AviviD.load_self_sw_module&&("1"===AviviD.settings.native_enable?AviviD.loadScript("https://avivid.likr.tw/api/subselfsw_core.js"):void 0===AviviD.settings.native_enable&&setTimeout(function(){AviviD.self_sw()},1E3))};"upmedia"!=AviviD.web_id&&"managertoday"!=AviviD.web_id&&"babyhome"!=AviviD.web_id||AviviD.self_sw(); AviviD.bkad_notice=function(){"1"!=AviviD.get_cookie("AviviD_t_already_received")?AviviD.messaging?AviviD.messaging.getToken().then(function(a){var b=AviviD.UAResult;jQuery.ajax({url:"https://auto-load-balancer.likr.com.tw/pushServer/tkbkad.php",type:"POST",data:{web_id:AviviD.web_id,token:a,category_id:AviviD.category_id,avivid_regid:AviviD.avivid_regid,webuserid:AviviD.webuserid,uuid:AviviD.uuid,browser_ver:b.browser.version,os_ver:b.os.version,user_agent:b.ua,client_href:150<window.location.href.length? window.location.origin+"/?":window.location.href,os_type:AviviD.int_os_type,browser_type:AviviD.int_browser_type,avivid_tag:AviviD.avivid_tag},dataType:"json",xhrFields:{withCredentials:!1},success:function(c){AviviD.console("received");AviviD.set_cookie("AviviD_t_already_received","1",1)},error:function(c,d,f){AviviD.console("xhr :",c);AviviD.console("ajaxOptions :",d);AviviD.console("thrownError :",f);AviviD.console("status code : "+c.status+" , ajaxOptions : "+d)}})})["catch"](function(a){console.log("no subscribe")}): setTimeout(function(){AviviD.checktoken()},500):AviviD.console("user is done today")};AviviD.iframe_postMessage=function(){"add_to_cart"==AviviD.get_urlparam("avivid_event")?parent.postMessage(document.cookie,"https://brownie.likr.app"):"remove"==AviviD.get_urlparam("avivid_event")?parent.postMessage(document.cookie,"https://brownie.likr.app"):"purchase"==AviviD.get_urlparam("avivid_event")&&parent.postMessage(document.cookie,"https://brownie.likr.app")};AviviD.iframe_postMessage(); var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; $jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={}; $jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b,c){if(!c||null!=a){c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))}; $jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}; $jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var q=0;q<e.length-1;q++){var r=e[q];if(!(r in d))return;d=d[r]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1}; $jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}}; $jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; $jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; $jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype["return"]=function(a){this.abruptCompletion_={"return":a};this.nextAddress=this.finallyAddress_}; $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){var c=$jscomp.makeIterator(a),d=c.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=b;else return this.yieldAllIterator_=c,this.yield(d.value,b)}; $jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; $jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; $jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){var c=this.finallyContexts_.splice(b||0)[0];if(c=this.abruptCompletion_=this.abruptCompletion_||c){if(c.isException)return this.jumpToErrorHandler_();void 0!=c.jumpTo&&this.finallyAddress_<c.jumpTo?(this.nextAddress=c.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; $jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; $jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_["return"]);this.context_["return"](a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(q){return this.context_.yieldAllIterator_=null,this.context_.throw_(q),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a["return"],done:!0}}return{value:void 0,done:!0}}; $jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this["throw"]=function(b){return a.throw_(b)};this["return"]=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){var c=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(c,a.prototype);return c}; $jscomp.asyncExecutePromiseGenerator=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function q(r){r.done?d(r.value):Promise.resolve(r.value).then(b,c).then(q,e)}q(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; (function(a,b,c,d){a.jQuery||(a=b.getElementsByTagName(c)[0]||b.getElementsByTagName("head")[0],b=b.createElement(c),b.type="text/javascript",b.src=d,a.parentNode.insertBefore(b,a))})(window,document,"script","https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"); "undefined"===typeof UAParser&&function(a,b){var c={extend:function(g,h){var k={},m;for(m in g)k[m]=h[m]&&0===h[m].length%2?h[m].concat(g[m]):g[m];return k},has:function(g,h){return"string"===typeof g?-1!==h.toLowerCase().indexOf(g.toLowerCase()):!1},lowerize:function(g){return g.toLowerCase()},major:function(g){return"string"===typeof g?g.replace(/[^\d\.]/g,"").split(".")[0]:b},trim:function(g){return g.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},d=function(g,h){for(var k=0,m,v,w,l,x,t;k< h.length&&!x;){var z=h[k],B=h[k+1];for(m=v=0;m<z.length&&!x;)if(x=z[m++].exec(g))for(w=0;w<B.length;w++)t=x[++v],l=B[w],"object"===typeof l&&0<l.length?2==l.length?this[l[0]]="function"==typeof l[1]?l[1].call(this,t):l[1]:3==l.length?this[l[0]]="function"!==typeof l[1]||l[1].exec&&l[1].test?t?t.replace(l[1],l[2]):b:t?l[1].call(this,t,l[2]):b:4==l.length&&(this[l[0]]=t?l[3].call(this,t.replace(l[1],l[2])):b):this[l]=t?t:b;k+=2}},e=function(g,h){for(var k in h)if("object"===typeof h[k]&&0<h[k].length)for(var m= 0;m<h[k].length;m++){if(c.has(h[k][m],g))return"?"===k?b:k}else if(c.has(h[k],g))return"?"===k?b:k;return g},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2E3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},r={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],["name","version"],[/(opios)[\/\s]+([\w\.]+)/i],[["name","Opera Mini"],"version"], [/\s(opr)\/([\w\.]+)/i],[["name","Opera"],"version"],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],["name","version"],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[["name","IE"],"version"],[/(edge)\/((\d+)?[\w\.]+)/i],["name", "version"],[/(yabrowser)\/([\w\.]+)/i],[["name","Yandex"],"version"],[/(puffin)\/([\w\.]+)/i],[["name","Puffin"],"version"],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[["name","UCBrowser"],"version"],[/(comodo_dragon)\/([\w\.]+)/i],[["name",/_/g," "],"version"],[/(micromessenger)\/([\w\.]+)/i],[["name","WeChat"],"version"],[/(QQ)\/([\d\.]+)/i],["name","version"],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],["name","version"],[/xiaomi\/miuibrowser\/([\w\.]+)/i],["version",["name","MIUI Browser"]], [/;fbav\/([\w\.]+);/i],["version",["name","Facebook"]],[/(headlesschrome) ([\w\.]+)/i],["version",["name","Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[["name",/(.+)/,"$1 WebView"],"version"],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[["name",/(.+(?:g|us))(.+)/,"$1 $2"],"version"],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],["version",["name","Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],["name","version"],[/(dolfin)\/([\w\.]+)/i], [["name","Dolphin"],"version"],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[["name","Chrome"],"version"],[/(coast)\/([\w\.]+)/i],[["name","Opera Coast"],"version"],[/fxios\/([\w\.-]+)/i],["version",["name","Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],["version",["name","Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],["version","name"],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],["name",["version",e,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416", "2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],["name","version"],[/(navigator|netscape)\/([\w\.-]+)/i],[["name","Netscape"],"version"],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],["name","version"]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",c.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",c.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [["architecture",c.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],["model","vendor",["type","tablet"]],[/applecoremedia\/[\w\.]+ \((ipad)/],["model",["vendor","Apple"],["type","tablet"]],[/(apple\s{0,1}tv)/i],[["model","Apple TV"],["vendor","Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],["vendor","model",["type","tablet"]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i], ["model",["vendor","Amazon"],["type","tablet"]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[["model",e,{"Fire Phone":["SD","KF"]}],["vendor","Amazon"],["type","mobile"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],["model","vendor",["type","mobile"]],[/\((ip[honed|\s\w*]+);/i],["model",["vendor","Apple"],["type","mobile"]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],["vendor", "model",["type","mobile"]],[/\(bb10;\s(\w+)/i],["model",["vendor","BlackBerry"],["type","mobile"]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],["model",["vendor","Asus"],["type","tablet"]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[["vendor","Sony"],["model","Xperia Tablet"],["type","tablet"]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],["model",["vendor","Sony"],["type","mobile"]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],["vendor","model", ["type","console"]],[/android.+;\s(shield)\sbuild/i],["model",["vendor","Nvidia"],["type","console"]],[/(playstation\s[34portablevi]+)/i],["model",["vendor","Sony"],["type","console"]],[/(sprint\s(\w+))/i],[["vendor",e,{HTC:"APA",Sprint:"Sprint"}],["model",e,{"Evo Shift 4G":"7373KT"}],["type","mobile"]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],["vendor","model",["type","tablet"]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i], ["vendor",["model",/_/g," "],["type","mobile"]],[/(nexus\s9)/i],["model",["vendor","HTC"],["type","tablet"]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],["model",["vendor","Huawei"],["type","mobile"]],[/(microsoft);\s(lumia[\s\w]+)/i],["vendor","model",["type","mobile"]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],["model",["vendor","Microsoft"],["type","console"]],[/(kin\.[onetw]{3})/i],[["model",/\./g," "],["vendor","Microsoft"],["type","mobile"]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],["model",["vendor","Motorola"],["type","mobile"]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],["model",["vendor","Motorola"],["type","tablet"]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[["vendor",c.trim],["model",c.trim],["type","smarttv"]],[/hbbtv.+maple;(\d+)/i],[["model",/^/,"SmartTV"],["vendor","Samsung"],["type","smarttv"]],[/\(dtv[\);].+(aquos)/i],["model",["vendor","Sharp"],["type","smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i],[["vendor","Samsung"],"model",["type","tablet"]],[/smart-tv.+(samsung)/i],["vendor",["type","smarttv"],"model"],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[["vendor","Samsung"],"model",["type","mobile"]],[/sie-(\w+)*/i],["model",["vendor","Siemens"],["type","mobile"]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[["vendor","Nokia"],"model",["type","mobile"]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i], ["model",["vendor","Acer"],["type","tablet"]],[/android.+([vl]k\-?\d{3})\s+build/i],["model",["vendor","LG"],["type","tablet"]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[["vendor","LG"],"model",["type","tablet"]],[/(lg) netcast\.tv/i],["vendor","model",["type","smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],["model",["vendor","LG"],["type","mobile"]],[/android.+(ideatab[a-z0-9\-\s]+)/i],["model",["vendor","Lenovo"],["type","tablet"]],[/linux;.+((jolla));/i], ["vendor","model",["type","mobile"]],[/((pebble))app\/[\d\.]+\s/i],["vendor","model",["type","wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],["vendor","model",["type","mobile"]],[/crkey/i],[["model","Chromecast"],["vendor","Google"]],[/android.+;\s(glass)\s\d/i],["model",["vendor","Google"],["type","wearable"]],[/android.+;\s(pixel c)\s/i],["model",["vendor","Google"],["type","tablet"]],[/android.+;\s(pixel xl|pixel)\s/i],["model",["vendor","Google"],["type","mobile"]],[/android.+(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[["model",/_/g," "],["vendor","Xiaomi"],["type","mobile"]],[/android.+;\s(m[1-5]\snote)\sbuild/i],["model",["vendor","Meizu"],["type","tablet"]],[/android.+a000(1)\s+build/i],["model",["vendor","OnePlus"],["type","mobile"]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],["model",["vendor","RCA"],["type","tablet"]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],["model",["vendor", "Dell"],["type","tablet"]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],["model",["vendor","Verizon"],["type","tablet"]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[["vendor","Barnes & Noble"],"model",["type","tablet"]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],["model",["vendor","NuVision"],["type","tablet"]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[["vendor","ZTE"],"model",["type","tablet"]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],["model",["vendor","Swiss"], ["type","mobile"]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],["model",["vendor","Swiss"],["type","tablet"]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],["model",["vendor","Zeki"],["type","tablet"]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[["vendor","Dragon Touch"],"model",["type","tablet"]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],["model",["vendor","Insignia"],["type","tablet"]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],["model", ["vendor","NextBook"],["type","tablet"]],[/android.+[;\/]\s*(Xtreme_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[["vendor","Voice"],"model",["type","mobile"]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[["vendor","LvTel"],"model",["type","mobile"]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],["model",["vendor","Envizen"],["type","tablet"]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],["vendor","model",["type","tablet"]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], ["model",["vendor","MachSpeed"],["type","tablet"]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],["vendor","model",["type","tablet"]],[/android.+[;\/]\s*TU_(1491)\s+build/i],["model",["vendor","Rotor"],["type","tablet"]],[/android.+(KS(.+))\s+build/i],["model",["vendor","Amazon"],["type","tablet"]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],["vendor","model",["type","tablet"]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[["type",c.lowerize],"vendor","model"],[/(android.+)[;\/].+build/i], ["model",["vendor","Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],["version",["name","EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],["name","version"],[/rv:([\w\.]+).*(gecko)/i],["version","name"]],os:[[/microsoft\s(windows)\s(vista|xp)/i],["name","version"],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], ["name",["version",e,q]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[["name","Windows"],["version",e,q]],[/\((bb)(10);/i],[["name","BlackBerry"],"version"],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],["name","version"],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[["name","Symbian"],"version"],[/\((series40);/i],["name"],[/mozilla.+\(mobile;.+gecko.+firefox/i],[["name", "Firefox OS"],"version"],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],["name","version"],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[["name","Chromium OS"],"version"],[/(sunos)\s?([\w\.]+\d)*/i],[["name","Solaris"],"version"],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i], ["name","version"],[/(haiku)\s(\w+)/i],["name","version"],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[["version",/_/g,"."],["name","iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[["name","Mac OS"],["version",/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],["name","version"]]},f=function(g,h){this.name=g;this.version= h},p=function(g){this.architecture=g},n=function(g,h,k){this.vendor=g;this.model=h;this.type=k},u=function(g,h){"object"===typeof g&&(h=g,g=b);if(!(this instanceof u))return(new u(g,h)).getResult();var k=g||(a&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),m=h?c.extend(r,h):r,v=new f,w=new p,l=new n,x=new f,t=new f;this.getBrowser=function(){d.call(v,k,m.browser);v.major=c.major(v.version);return v};this.getCPU=function(){d.call(w,k,m.cpu);return w};this.getDevice=function(){d.call(l, k,m.device);return l};this.getEngine=function(){d.call(x,k,m.engine);return x};this.getOS=function(){d.call(t,k,m.os);return t};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return k};this.setUA=function(z){k=z;v=new f;w=new p;l=new n;x=new f;t=new f;return this};return this};u.VERSION="0.7.14";u.BROWSER={NAME:"name",MAJOR:"major",VERSION:"version"};u.CPU={ARCHITECTURE:"architecture"}; u.DEVICE={MODEL:"model",VENDOR:"vendor",TYPE:"type",CONSOLE:"console",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",EMBEDDED:"embedded"};u.ENGINE={NAME:"name",VERSION:"version"};u.OS={NAME:"name",VERSION:"version"};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=u),exports.UAParser=u):"function"===typeof define&&define.amd?a.UAParser=u:a&&(a.UAParser=u);var y=a&&(a.jQuery||a.Zepto);if("undefined"!==typeof y){var A=new u;y.ua= A.getResult();y.ua.get=function(){return A.getUA()};y.ua.set=function(g){A.setUA(g);g=A.getResult();for(var h in g)y.ua[h]=g[h]}}}("object"===typeof window?window:this);"undefined"===typeof AviviD.UAParser&&(AviviD.UAParser=new UAParser,AviviD.UAResult=AviviD.UAParser.getResult());AviviD.console=function(a,b){"1"==AviviD.settings.console_enable&&console.log(a,void 0===b?"":b)}; "function"!=typeof AviviD.construct&&(AviviD.track_construct=function(a){window.jQuery?a():setTimeout(function(){AviviD.track_construct(a)},500)}); "function"!=typeof AviviD.main&&(AviviD.main=function(){AviviD.str_os_type=AviviD.detect_os_type();AviviD.int_os_type=AviviD.trans_os_type_to_number(AviviD.str_os_type);AviviD.str_browser_type=AviviD.detect_browser_type();AviviD.int_browser_type=AviviD.trans_browser_type_to_number(AviviD.str_browser_type);AviviD.client_href=encodeURIComponent(window.location.href);AviviD.geolocation={latitude:null,longitude:null,get_interval:1E4};AviviD.settings.ip_enable=void 0!=AviviD.settings.ip_enable?AviviD.settings.ip_enable: 1;AviviD.clientIP="_";AviviD.tracking_job()}); AviviD.tracking_job=function(){var a=document.referrer,b=window.location.href;AviviD.allowAwsCategoryid="20201119000006 20201209000002 20201126000001 20201119000004 20201209000001 20201222000001 20170531000006 20170626001000 20210413000002 20201123000001 20200827000002 20200727000001 20200521000001 20190626000001 20190816000013 20181005000001 20180905000003 20180802000001 20180920000003 20210422000001 20200903000001".split(" ");null==AviviD.settings.website_type?setTimeout(function(){1!=AviviD.settings.website_type&& 2!=AviviD.settings.website_type||AviviD.tracking_data_kinesis("landing",a,b,"_",AviviD.clientIP,AviviD.int_os_type,AviviD.int_browser_type)},1E3):(1==AviviD.settings.website_type||2==AviviD.settings.website_type)&&AviviD.tracking_data_kinesis("landing",a,b,"_",AviviD.clientIP,AviviD.int_os_type,AviviD.int_browser_type)}; AviviD.tracking_data_kinesis=function(a,b,c,d,e,q,r){Date.prototype.format=function(f){var p={"M+":this.getUTCMonth()+1,"d+":this.getUTCDate(),"h+":this.getUTCHours(),"m+":this.getUTCMinutes(),"s+":this.getUTCSeconds(),"q+":Math.floor((this.getUTCMonth()+3)/3),S:this.getUTCMilliseconds()};/(y+)/.test(f)&&(f=f.replace(RegExp.$1,(this.getUTCFullYear()+"").substr(4-RegExp.$1.length)));for(var n in p)(new RegExp("("+n+")")).test(f)&&(f=f.replace(RegExp.$1,1==RegExp.$1.length?p[n]:("00"+p[n]).substr((""+ p[n]).length)));return f};null!==AviviD.geolocation.latitude&&null!==AviviD.geolocation.longitude&&(e=AviviD.geolocation.latitude+";"+AviviD.geolocation.longitude);a={web_id:AviviD.web_id,uuid:AviviD.uuid,behavior_type:a,referrer_url:b,current_url:c,click_url:d,user_ip:e,os_type:q,browser_type:r,tracking_platform:AviviD.tracking_platform,title:void 0!=AviviD.title?AviviD.title:"_",datetime:(new Date).format("yyyy-MM-dd hh:mm:ss")};AviviD_tracking_data_aws_put={debug_mode:0,sdkSrc:"https://avivid.likr.tw/sample/aws-sdk-AviviD-min-1.000.3.js", region:"ap-southeast-1",IdentityPoolId:"ap-southeast-1:f46698d9-24cf-4242-8a3d-8707f45d1cfd",dataStreamName:"elephant",kinesis:"",credentialsStatus:!1,errorFlag:!1,errorMsg:"",construct:function(f){if("undefined"===typeof AviviD_AWS){var p=document.createElement("script");p.src=this.sdkSrc;document.head.appendChild(p);p.onload=function(){AviviD_tracking_data_aws_put.main(f)}}else AviviD_tracking_data_aws_put.main(f)},main:function(f){-1!=window.location.href.indexOf("AviviD_debug_mode=1")&&(this.debug_mode= 1);this.credentialsStatus||this.credentials_init();""==this.kinesis&&(this.kinesis=new AviviD_AWS.Kinesis);data_prepared=this.prepare_data(f);1==this.debug_mode&&(AviviD.console("The Data before putting in kinesis datastream:"),AviviD.console(data_prepared));this.kinesit_put_data(data_prepared);this.check_token(f)},credentials_init:function(){AviviD_AWS.config.region=this.region;ai="AKIATBR2IINU2ISIXU72";sa="FDEVKX8o7qNAS15wWQGgjDXeLti2NC8xEuhM/y7d";AviviD_AWS.config.credentials=new AviviD_AWS.Credentials(ai, sa,sessionToken=null);AviviD_AWS.config.maxRetries=5;AviviD_AWS.config.credentials.get(function(f){f?(console.error(f),AviviD_tracking_data_aws_put.errorFlag=!0,AviviD_tracking_data_aws_put.errorMsg=f):(AviviD_tracking_data_aws_put.credentialsStatus=!0,AviviD_tracking_data_aws_put.errorFlag=!1,AviviD_tracking_data_aws_put.errorMsg="")})},kinesit_put_data:function(f){this.kinesis.putRecord(f,function(p,n){p?(AviviD_tracking_data_aws_put.errorFlag=!0,AviviD_tracking_data_aws_put.errorMsg=p):(AviviD_tracking_data_aws_put.errorFlag= !1,AviviD_tracking_data_aws_put.errorMsg="")})},prepare_data:function(f){return{Data:JSON.stringify(f,function(p,n){return"undefined"===typeof n?"_":"uuid"==p?n.match(/^[a-zA-z0-9]{8}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{12}$/)?n:"_":n}),PartitionKey:this.uuid_generate(),StreamName:this.dataStreamName}},check_token:function(f){"granted"==Notification.permission&&(data_prepared_token=AviviD_tracking_data_aws_put.prepare_data_token(f),1==AviviD_tracking_data_aws_put.debug_mode&& (AviviD.console("The token Data before putting in kinesis datastream:"),AviviD.console(data_prepared_token)),AviviD_tracking_data_aws_put.kinesit_put_data(data_prepared_token))},prepare_data_token:function(f){return{Data:JSON.stringify(f,function(p,n){return"undefined"===typeof n?"_":"uuid"==p?n.match(/^[a-zA-z0-9]{8}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{12}$/)?n:"_":n}),PartitionKey:this.uuid_generate(),StreamName:"token-ip"}},uuid_generate:function(){var f=Date.now();"undefined"!== typeof performance&&"function"===typeof performance.now&&(f+=performance.now());return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var n=(f+16*Math.random())%16|0;f=Math.floor(f/16);return("x"===p?n:n&3|8).toString(16)})}};AviviD_tracking_data_aws_put.construct(a)};"function"!=typeof AviviD.detect_is_mobile&&(AviviD.detect_is_mobile=function(a){return"Android"==a||"iOS"==a?!0:!1});"function"!=typeof AviviD.detect_os_type&&(AviviD.detect_os_type=function(){return AviviD.UAResult.os.name}); "function"!=typeof AviviD.trans_os_type_to_number&&(AviviD.trans_os_type_to_number=function(a){switch(a){case "Android":return"1";case "iOS":return"2";case "Mac OS":return"3";case "Windows":return"4";default:return"9"}});"function"!=typeof AviviD.detect_browser_type&&(AviviD.detect_browser_type=function(){var a=null!=navigator.userAgent.match(/line/i),b="iOS"==AviviD.UAResult.os.name;return a?"LINE":b?"iOS":AviviD.UAResult.browser.name}); "function"!=typeof AviviD.trans_browser_type_to_number&&(AviviD.trans_browser_type_to_number=function(a){switch(a){case "Chrome":return"1";case "Firefox":return"2";case "Safari":return"3";case "iOS":return"4";case "IE":return"5";case "Edge":return"6";case "Samsung Browser":return"8";default:return"9"}}); AviviD.run_tracking_data=function(){jQuery.ajax({url:"https://load-balancer.likr.com.tw/pushServer/get_client_ip_for_ring.php",type:"POST",dataType:"json",success:function(a){AviviD.clientIP=a;AviviD.tracking_job()},error:function(a,b,c){}})};"function"!=typeof AviviD.get_urlparam&&(AviviD.get_urlparam=function(a){a=new RegExp("(^|&)"+a+"=([^&]*)(&|$)");a=window.location.search.substr(1).match(a);return null!=a?unescape(a[2]):null}); "function"!=typeof AviviD.get_cookie&&(AviviD.get_cookie=function(a){a=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));return null!=a?unescape(a[2]):null});"function"!=typeof AviviD.empty&&(AviviD.empty=function(a){if("number"==typeof a||"boolean"==typeof a)return!1;if("null"===a||"undefined"===a||"undefined"==typeof a||null===a)return!0;if("undefined"!=typeof a.length)return 0==a.length;var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return 0==b}); "function"!=typeof AviviD.get_uuid&&(AviviD.get_uuid=function(){AviviD.status.is_new_user_uuid="0";if(AviviD.get_urlparam("likr_id"))try{var a=window.atob(AviviD.get_urlparam("likr_id"));AviviD.set_cookie("AviviD_uuid",a);AviviD.set_cookie("uuid",a);AviviD.status.is_new_user_uuid="1";AviviD.uuid=a}catch(d){AviviD.set_cookie("AviviD_uuid","")}var b=AviviD.get_cookie("AviviD_uuid");if(AviviD.empty(b)){a=AviviD.detect_browser_type();var c=-1!=document.cookie.indexOf("hasCookiePermission=true");if("iOS"!= a&&"Safari"!=a||c)window.addEventListener("message",function(d){AviviD.uuid_origin=d.origin;if("https://auto-load-balancer.likr.com.tw"===AviviD.uuid_origin){d=null===d.data?AviviD.get_ios_uuid():d.data;AviviD.set_cookie("AviviD_uuid",d);AviviD.status.is_new_user_uuid="1";AviviD.uuid=d;var e=document.createElement("iframe");e.id="AviviD_ad_uuid_iframe";e.src="https://sun.advividnetwork.com/include_code/uuid_iframe.html?uuid="+d;e.style="display:none";document.body&&(document.body.appendChild(e),document.getElementById("AviviD_ad_uuid_iframe").style.display= "none");AviviD.set_cookie("AviviD_refresh_uuid_status",1)}},!1),a=document.createElement("iframe"),a.id="AviviD_likr_uuid_iframe",a.src="https://auto-load-balancer.likr.com.tw/pushEndPoint/uuid_gen/uuid_iframe.php",a.style="display:none",document.body?(document.body.appendChild(a),a=document.getElementById("AviviD_likr_uuid_iframe"),a.style.display="none"):setTimeout(function(){AviviD.get_uuid()},500);else return a=AviviD.get_ios_uuid(),AviviD.set_cookie("AviviD_uuid_safari",a),AviviD.uuid=a}else return!AviviD.empty(AviviD.web_id)&& (a=AviviD.get_cookie("AviviD_refresh_uuid_status"),AviviD.empty(a)||1==a)&&(window.addEventListener("message",function(d){AviviD.uuid_origin=d.origin;if("https://auto-load-balancer.likr.com.tw"===AviviD.uuid_origin){d=null===d.data?AviviD.get_ios_uuid():d.data;AviviD.set_cookie("AviviD_uuid",d);AviviD.status.is_new_user_uuid="1";b=AviviD.uuid=d;var e=document.createElement("iframe");e.id="AviviD_ad_uuid_iframe";e.src="https://sun.advividnetwork.com/include_code/uuid_iframe.html?uuid="+d;e.style="display:none"; document.body&&(document.body.appendChild(e),document.getElementById("AviviD_ad_uuid_iframe").style.display="none");AviviD.set_cookie("AviviD_refresh_uuid_status",2)}},!1),a=document.createElement("iframe"),a.id="AviviD_likr_uuid_iframe",a.src="https://auto-load-balancer.likr.com.tw/pushEndPoint/uuid_gen/uuid_iframe.php",a.style="display:none",document.body?(document.body.appendChild(a),a=document.getElementById("AviviD_likr_uuid_iframe"),a.style.display="none"):setTimeout(function(){AviviD.get_uuid()}, 500)),b},AviviD.get_ios_uuid=function(){var a=function(){var c=Date.now();"undefined"!==typeof performance&&"function"===typeof performance.now&&(c+=performance.now());return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(c+16*Math.random())%16|0;c=Math.floor(c/16);return("x"===d?e:e&3|8).toString(16)})},b="";AviviD.status.is_new_user_ios_uuid="0";null==AviviD.get_cookie("AviviD_ios_uuid")?null==localStorage.getItem("AviviD_ios_uuid")?(b=a(),AviviD.status.is_new_user_ios_uuid= "1"):b=localStorage.getItem("AviviD_ios_uuid"):b=AviviD.get_cookie("AviviD_ios_uuid");AviviD.set_cookie("AviviD_ios_uuid",b);AviviD.set_cookie("AviviD_uuid",b);localStorage.setItem("AviviD_ios_uuid",b);return b},AviviD.get_webuserid=function(){var a=AviviD.get_cookie("webuserid");AviviD.status.is_new_user_webuserid="0";a||(a=AviviD.gen_webuserid(),AviviD.set_cookie("webuserid",a),AviviD.status.is_new_user_webuserid="1");return a}); "function"!=typeof AviviD.set_cookie&&(AviviD.set_cookie=function(a,b,c){var d=AviviD.get_top_domain();c=c||3650;var e=new Date;e.setTime(e.getTime()+864E5*c);document.cookie=a+"="+escape(b)+";expires="+e.toGMTString()+";domain="+d+";path=/"}); "function"!=typeof AviviD.get_top_domain&&(AviviD.get_top_domain=function(){var a=window.location.host,b=a.split(".").length,c=a.split(".").reverse();return"2">=b?a:"3"==b?"com"===c[1]?a:c[1]+"."+c[0]:"4"==b?"com"===c[0]?c[1]+"."+c[0]:c[2]+"."+c[1]+"."+c[0]:c[2]+"."+c[1]+"."+c[0]});AviviD.continus_run_jquery=function(){window.jQuery?(AviviD.clientIP="_",AviviD.tracking_job()):setTimeout(function(){AviviD.continus_run_jquery()},500)}; "function"==typeof AviviD.track_construct?(AviviD.uuid=AviviD.get_uuid(),AviviD.track_construct(AviviD.main)):(void 0==AviviD.uuid&&(AviviD.uuid=AviviD.get_cookie("AviviD_uuid")),AviviD.geolocation={latitude:null,longitude:null,get_interval:1E4},AviviD.settings.ip_enable=void 0!=AviviD.settings.ip_enable?AviviD.settings.ip_enable:1,AviviD.continus_run_jquery());AviviD.user_enter_time="_";AviviD.total_stay_time=0;AviviD.click_url="_"; AviviD.user_local_storage=null==localStorage.getItem("user_timestamp")?null:JSON.parse(localStorage.getItem("user_timestamp")); AviviD.tracking_data_save=function(a,b,c,d,e,q){var r=[],f=null==localStorage.getItem("user_timestamp")?null:JSON.parse(localStorage.getItem("user_timestamp"));null!==f?(r=f,landing_time=f[0].landing_time,AviviD.total_stay_time=AviviD.time_difference(f[0].landing_time,q)):(landing_time=e,AviviD.total_stay_time=AviviD.time_difference(AviviD.user_enter_time,q));a={web_id:AviviD.web_id,uuid:AviviD.uuid,behavior_type:a,referrer_url:document.referrer,current_url:window.location.href,click_url:void 0!= b?b:"_",user_ip:c,os_type:d,browser_type:AviviD.int_browser_type,tracking_platform:AviviD.tracking_platform,title:void 0!=AviviD.title?AviviD.title:"_",datetime:e,landing_time:landing_time,leave_time:q,stay_time:AviviD.time_difference(e,q),total_stay_time:AviviD.total_stay_time};r.push(a);r=JSON.stringify(r);localStorage.setItem("user_timestamp",r)}; AviviD.time_difference=function(a,b){a=new Date(parseInt(a.split(" ")[0].split("-")[0]),parseInt(a.split(" ")[0].split("-")[1]),parseInt(a.split(" ")[0].split("-")[2]),parseInt(a.split(" ")[1].split(":")[0]),parseInt(a.split(" ")[1].split(":")[1]),parseInt(a.split(" ")[1].split(":")[2]));b=new Date(parseInt(b.split(" ")[0].split("-")[0]),parseInt(b.split(" ")[0].split("-")[1]),parseInt(b.split(" ")[0].split("-")[2]),parseInt(b.split(" ")[1].split(":")[0]),parseInt(b.split(" ")[1].split(":")[1]),parseInt(b.split(" ")[1].split(":")[2])); return Math.ceil((b-a)/1E3)};AviviD.gcs_subscription_post=function(a){null!==a?(send_data=JSON.parse(a),jQuery.ajax({url:"https://asia-east1-gaii-335704.cloudfunctions.net/customer_tracking",data:JSON.stringify(send_data[send_data.length-1]),type:"POST",dataType:"json",contentType:"application/json;charset=utf-8",xhrFields:{withCredentials:!1},success:function(b){AviviD.console(b)},error:function(b){AviviD.console(b.status)}})):window.setTimeout(function(){AviviD.gcs_subscription_post(a)},1E3)}; AviviD.aws_subscription_post=function(a){"undefined"!==typeof AviviD_AWS?null!==a&&(AviviD_AWS.config.region="ap-southeast-1",ai="AKIATBR2IINUW3Y6AWEJ",sa="1Dh6QNoT3l8OFJ+OLZfvnDc5bVleFKom5/jyzLgY",AviviD_AWS.config.credentials=new AviviD_AWS.Credentials(ai,sa,sessionToken=null),AviviD_AWS.config.maxRetries=5,a=JSON.parse(a),AviviD_AWS.config.credentials.get(function(b){if(b)console.error(b);else{b=new AviviD_AWS.Firehose;var c={DeliveryStreamName:"elephant-new",Record:{Data:JSON.stringify(a[a.length- 1])}};b.putRecord(c,function(d,e){d||AviviD.console("success")})}})):window.setTimeout(function(){AviviD.aws_subscription_post(a)},1E3)};AviviD.tracking_data_ip=function(){AviviD.clientIP="_"}; Date.prototype.time_format=function(a){var b={"M+":this.getUTCMonth()+1,"d+":this.getUTCDate(),"h+":this.getUTCHours(),"m+":this.getUTCMinutes(),"s+":this.getUTCSeconds(),"q+":Math.floor((this.getUTCMonth()+3)/3),S:this.getUTCMilliseconds()};/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(this.getUTCFullYear()+"").substr(4-RegExp.$1.length)));for(var c in b)(new RegExp("("+c+")")).test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?b[c]:("00"+b[c]).substr((""+b[c]).length)));return a}; AviviD.send_user_tracking=function(){AviviD.user_enter_time=(new Date).time_format("yyyy-MM-dd hh:mm:ss");AviviD.tracking_data_ip();var a=(new Date).getTime(),b=(new Date).getDate().toString();null==localStorage.getItem("user_enter_time")||null==localStorage.getItem("user_enter_date")?(localStorage.removeItem("user_timestamp"),window.setTimeout(function(){AviviD.tracking_data_save("landing",AviviD.click_url,AviviD.clientIP,AviviD.int_os_type,AviviD.user_enter_time,(new Date).time_format("yyyy-MM-dd hh:mm:ss"))}, 1E3)):null!==localStorage.getItem("user_enter_time")&&null!==localStorage.getItem("user_enter_date")&&(18E5<a-localStorage.getItem("user_enter_time")||localStorage.getItem("user_enter_date")!==b)&&(localStorage.removeItem("user_timestamp"),window.setTimeout(function(){AviviD.tracking_data_save("landing",AviviD.click_url,AviviD.clientIP,AviviD.int_os_type,AviviD.user_enter_time,(new Date).time_format("yyyy-MM-dd hh:mm:ss"))},1E3));window.setTimeout(function(){AviviD.aws_subscription_post(localStorage.getItem("user_timestamp"))}, 1E3);"94monster"==AviviD.web_id&&window.setTimeout(function(){AviviD.gcs_subscription_post(localStorage.getItem("user_timestamp"))},1E3);localStorage.setItem("user_enter_time",(new Date).getTime());localStorage.setItem("user_enter_date",(new Date).getDate());localStorage.removeItem("timestamp_saved");localStorage.setItem("timestamp_saved",!1);jQuery(document).on("click","a",function(c){AviviD.click_url=jQuery(this).attr("href");void 0!==AviviD.click_url&&AviviD.user_behavior()})}; AviviD.check_jQuery=function(){"function"==typeof jQuery?AviviD.send_user_tracking():setTimeout(function(){AviviD.check_jQuery()},1E3)};AviviD.check_jQuery();window.onbeforeunload=function(a){"false"==localStorage.getItem("timestamp_saved")&&AviviD.user_behavior()}; AviviD.user_behavior=function(){var a=localStorage.getItem("user_timestamp");null==a?window.setTimeout(function(){AviviD.tracking_data_save("landing",AviviD.click_url,AviviD.clientIP,AviviD.int_os_type,AviviD.user_enter_time,(new Date).time_format("yyyy-MM-dd hh:mm:ss"))},1E3):null!==a&&"_"!==AviviD.click_url?1==JSON.parse(a).length&&"_"==JSON.parse(a)[0].click_url?(a=JSON.parse(a)[0].landing_time,localStorage.removeItem("user_timestamp"),AviviD.tracking_data_save("landing",AviviD.click_url,AviviD.clientIP, AviviD.int_os_type,a,(new Date).time_format("yyyy-MM-dd hh:mm:ss"))):AviviD.tracking_data_save("click",AviviD.click_url,AviviD.clientIP,AviviD.int_os_type,AviviD.user_enter_time,(new Date).time_format("yyyy-MM-dd hh:mm:ss")):null!==a&&"_"==AviviD.click_url&&AviviD.tracking_data_save(JSON.parse(a)[JSON.parse(a).length-1].behavior_type,AviviD.click_url,AviviD.clientIP,AviviD.int_os_type,JSON.parse(a)[JSON.parse(a).length-1].landing_time,(new Date).time_format("yyyy-MM-dd hh:mm:ss"));localStorage.setItem("timestamp_saved", !0)};AviviD.sliding_start_callback=function(){void 0===AviviD.settings.sliding_enable||void 0===AviviD.block_killswitch?setTimeout(function(){AviviD.sliding_start_callback()},500):(AviviD.sliding_enable=null==AviviD.get_urlparam("avivid_sliding_enable")?1:AviviD.get_urlparam("avivid_sliding_enable"),(AviviD.get_urlparam("avivid_preview_sliding")||"1"==AviviD.settings.sliding_enable)&&AviviD.sliding_enable&&AviviD.block_killswitch.sliding_enable&&AviviD.loadScript("https://rhea-cache.advividnetwork.com/sliding_recommend/avivid_sliding_recommend.js"))}; AviviD.sliding_start_callback();AviviD.load_recommend_module_counting=0; AviviD.load_recommend_module=function(){AviviD.load_recommend_module_counting+=1;20>=AviviD.load_recommend_module_counting&&("1"===AviviD.settings.ad_block_enabled?AviviD.loadScript("https://rhea-cache.advividnetwork.com/include_js/recommendation_core.js"):void 0===AviviD.settings.ad_block_enabled&&(AviviD.console("AviviD.settings.ad_block_enabled:"+AviviD.settings.ad_block_enabled),setTimeout(function(){AviviD.load_recommend_module()},500)))};AviviD.load_recommend_module(); AviviD.load_block_preview=function(){0<parseInt(AviviD.get_urlparam("AviviD_block_preview"))&&AviviD.loadScript("https://waffle.likr.app/preview/preview_script.js")};AviviD.load_block_preview(); AviviD.detect_member_page=function(){AviviD.shopline_web_id="shopedh lab52 taichi nicelife millerpopcorn blueseeds buybiji funselect crystal168 menwen laegis jdgift ankoutfit loveofrain".split(" ");if(AviviD.shopline_web_id.includes(AviviD.web_id)&&document.URL.includes("sign_in"))jQuery("button[id^='sign-in']").on("click",function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){if(1==a.nextAddress)return acc=jQuery("input[name=mobile_phone_or_email]").val(),encoder=new TextEncoder, acc_data=encoder.encode(acc),a.yield(window.crypto.subtle.digest("SHA-256",acc_data),2);acc_hash_buffer=a.yieldResult;acc_hash_arr=Array.from(new Uint8Array(acc_hash_buffer));acc_hash=acc_hash_arr.map(function(b){return b.toString(16).padStart(2,"0")}).join("");localStorage.setItem("a_sign",acc_hash);a.jumpToEnd()})})};AviviD.detect_member_page(); </script>r--> <!-- modals --> <div id="kcm-modals"> <div class="modals__content"></div> </div> <div id="sso_g_signin"> </div> <!-- footer --> <div class="footerMain clearfix"> <div class="container"> <div class="footerWrap"> <div class="footerCol-column"> <div class="footerLogo"> <a href="https://www.kompas.com"> <img class="lozad" data-src="https://asset.kompas.com/data/2023/11/30/kompascom/desktop/images/logo-kompascom-small.png" alt="www.kompas.com" width="207" height="26"> </a> </div> <div class="footerSosmed"> <ul class="footerSosmed-wrap"> <li> <a href="http://www.facebook.com/kompascom" target="_blank" class="footerSosmed-link" aria-label="Facebook"> <div class="iconSos iconSos-facebook"></div> </a> </li> <li> <a href="http://www.twitter.com/kompascom" target="_blank" class="footerSosmed-link" aria-label="X"> <div class="iconSos iconSos-x"></div> </a> </li> <li> <a href="https://t.me/kompascomupdate" target="_blank" class="footerSosmed-link" aria-label="Telegram"> <div class="iconSos iconSos-telegram"></div> </a> </li> <li> <a href="http://instagram.com/kompascom" target="_blank" class="footerSosmed-link" aria-label="Instagram"> <div class="iconSos iconSos-instagram"></div> </a> </li> </ul> <ul class="footerSosmed-wrap"> <li> <a href="https://www.youtube.com/c/mykompascom" target="_blank" class="footerSosmed-link" aria-label="Youtube"> <div class="iconSos iconSos-youtube"></div> </a> </li> <li> <a href="https://kmp.im/AGFeTy" target="_blank" class="footerSosmed-link" aria-label="Whatsapp"> <div class="iconSos iconSos-whatsapp"></div> </a> </li> <li> <a href="https://line.me/ti/p/@kompas.com" target="_blank" class="footerSosmed-link" aria-label="Line"> <div class="iconSos iconSos-line"></div> </a> </li> <li> <a href="https://www.tiktok.com/@kompascom?lang=en" target="_blank" class="footerSosmed-link" aria-label="Tiktok"> <div class="iconSos iconSos-tiktok"></div> </a> </li> </ul> </div> <div class="footerDownload"> <ul class="footerDownload-wrap"> <li> <a href="https://apps.apple.com/id/app/kompas-com-berita-terpercaya/id535483055" target="_blank"> <div class="footerDownload-store"> <img class="lozad" data-src="https://asset.kompas.com/data/2017/mobile/images/id-badge-appstore.png" alt="apple store"> </div> </a> </li> <li> <a href="https://play.google.com/store/apps/details?id=com.ertanto.kompas.official&hl=en&gl=US" target="_blank"> <div class="footerDownload-store"> <img class="lozad" data-src="https://asset.kompas.com/data/2017/mobile/images/id-badge-playstore.png" alt="google store"> </div> </a> </li> </ul> </div> <div class="footerAchievement"> <div class="footerAchievement-title"> Penghargaan dan sertifikat: </div> <div class="footerAchievement-wrap"> <div class="footerAchievement-item"> <a href="#" class="footerAchievement-link"> <div class="footerAchievement-img"> <img class="lozad" data-src="https://asset.kompas.com/data/2017/wp/images/logo-wowbrands-2019.png" alt="WOW Brand Indonesia 2019" title="WOW Brand Indonesia 2019"> </div> </a> </div> <div class="footerAchievement-item"> <div class="footerAchievement-link"> <a href="https://money.kompas.com/read/2019/08/01/124215826/kompascom-kembali-jadi-pemenang-kategori-media-online-tepercaya" class="footerAchievement-link"> <div class="footerAchievement-img"> <img class="lozad" data-src="https://asset.kompas.com/data/2017/wp/images/logo-superbrands-2019.png" alt="Superbrand Indonesia 2019 - Trusted Online News" title="Superbrands Indonesia 2019"> </div> </a> </div> </div> <div class="footerAchievement-item"> <a href="https://ifcncodeofprinciples.poynter.org/profile/pt-kompas-cyber-media" class="footerAchievement-link" target="_blank"> <div class="footerAchievement-img"> <img class="lozad" data-src="https://asset.kompas.com/data/2024/wp/images/desktop/logo-ifcn.png" alt="International Fact-Checking Network" title="International Fact-Checking Network" loading="lazy"> </div> </a> </div> </div> </div> <div class="footerNewsletter"> <div class="footerNewsletter-title"> Dapatkan informasi dan insight pilihan redaksi Kompas.com </div> <div class="footerNewsletter-cta"> <a href="javascript:void(0)" onclick="nwsLetterSubmit()" class="footerNewsletter-link"> <i class="iconNewsletter"></i> Daftarkan Email </a> </div> </div> </div> <div class="footerCol-nav"> <div class="footerMenu-title">Kanal</div> <div class="footerMenu"> <ul class="footerMenu-wrap"> <li><a href="https://news.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">News</a></li> <li><a href="https://nasional.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Nasional</a></li> <li><a href="https://www.kompas.com/global?source=kompascom&medium=footer" class="footerMenu-link">Global</a></li> <li><a href="https://megapolitan.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Megapolitan</a></li> <li><a href="https://regional.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Regional</a></li> <li><a href="https://pemilu.kompas.com/?source=kompascom&medium=footer" class="footerMenu-link">Pemilu</a></li> <!-- <li><a href="https://www.kompas.com/ramadhan/?source=kompascom&medium=footer" class="footerMenu-link --linknew">Ramadhan</a></li> --> <li><a href="https://ikn.kompas.com/?source=kompascom&medium=footer" class="footerMenu-link --linknew">IKN</a></li> <li><a href="https://bola.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Bola</a></li> <li><a href="https://tekno.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Tekno</a></li> <li><a href="https://otomotif.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Otomotif</a></li> <li><a href="https://entertainment.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Entertainment</a></li> <li><a href="https://sains.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Sains</a></li> <li><a href="https://health.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Health</a></li> <li><a href="https://money.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Money</a></li> <li><a href="https://www.kompas.com/tren?source=kompascom&medium=footer" class="footerMenu-link">Tren</a></li> <li><a href="https://properti.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Properti</a></li> <li><a href="https://lifestyle.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Lifestyle</a></li> <li><a href="https://www.kompas.com/hype?source=kompascom&medium=footer" class="footerMenu-link">Hype</a></li> <li><a href="https://travel.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Travel</a></li> <li><a href="https://www.kompas.com/homey?source=kompascom&medium=footer" class="footerMenu-link">Homey</a></li> <li><a href="https://www.kompas.com/food?source=kompascom&medium=footer" class="footerMenu-link">Food</a></li> <li><a href="https://umkm.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">UMKM</a></li> <li><a href="https://edukasi.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Edukasi</a></li> <li><a href="https://www.kompas.com/parapuan?source=kompascom&medium=footer" class="footerMenu-link">Parapuan</a></li> <li><a href="https://foto.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Foto</a></li> <li><a href="https://video.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Video</a></li> <li><a href="https://kolom.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Kolom</a></li> <li><a href="https://vik.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">VIK</a></li> <li><a href="https://jeo.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">JEO</a></li> <li><a href="https://lestari.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Lestari</a></li> <li><a href="https://ohayojepang.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Ohayo Jepang</a></li> <li><a href="https://pesonaindonesia.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Pesona Indonesia</a></li> <li><a href="https://play.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Play</a></li> <li><a href="https://indeks.kompas.com/terpopuler?source=kompascom&medium=footer" class="footerMenu-link">Artikel Terpopuler</a></li> <li><a href="https://indeks.kompas.com?source=kompascom&medium=footer" class="footerMenu-link">Artikel Terkini</a></li> <li><a href="https://www.kompas.com/topik-pilihan?source=kompascom&medium=footer" class="footerMenu-link">Topik Pilihan</a></li> <li><a href="https://indeks.kompas.com/headline?source=kompascom&medium=footer" class="footerMenu-link">Artikel Headline</a></li> </ul> </div> </div> <div class="footerCol-nav --colNetwork"> <div class="footerMenu-title">Network</div> <div class="footerMenu"> <ul class="footerMenu-wrap"> <li><a href="https://kompas.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Kompas.com</a></li> <li><a href="https://kompas.id?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Harian KOMPAS</a></li> <li><a href="https://www.kompas.tv?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">KompasTV</a></li> <li><a href="https://www.kompasiana.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Kompasiana</a></li> <li><a href="https://www.kgmedia.id?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">KG Media</a></li> <li><a href="https://www.kgnow.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">KGNow!</a></li> <li><a href="https://pasangiklan.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Pasangiklan.com</a></li> <li><a href="https://www.kontan.co.id?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Kontan</a></li> <li><a href="https://www.sonora.id?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Sonora</a></li> <li><a href="https://www.grid.id?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Grid.ID</a></li> <li><a href="https://www.gridoto.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">GridOto.com</a></li> <li><a href="https://www.bolasport.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">BolaSport.com</a></li> <li><a href="https://parapuan.co/?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Parapuan</a></li> <li><a href="https://www.tribunnews.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Tribunnews</a></li> <li><a href="https://www.gramedia.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Gramedia.com</a></li> <li><a href="https://ebooks.gramedia.com?source=kompascom&medium=footer" class="footerMenu-link" target="_blank">Gramedia Digital</a></li> </ul> </div> </div> </div> <div class="footerBottom"> <div class="footerBottom-wrap"> <ul class="footerBottom-menu"> <li> <a class="footerMenu-link" href="https://kabarpalmerah.kompas.com/">Kabar Palmerah</a> </li> <li> <a class="footerMenu-link" href="https://inside.kompas.com/about-us">About Us</a> </li> <li> <a class="footerMenu-link" href="http://www.meetkcm.com/">Advertise</a> </li> <li> <a class="footerMenu-link" href="https://inside.kompas.com/term-of-use">Ketentuan Penggunaan</a> </li> <li> <a class="footerMenu-link" href="https://www.kgmedia.id/legal-privacy-id">Kebijakan Data Pribadi</a> </li> <li> <a class="footerMenu-link" href="https://inside.kompas.com/pedoman">Pedoman Media Siber</a> </li> <li> <a class="footerMenu-link" href="https://jobs.kompas.com">Career</a> </li> <li> <a class="footerMenu-link" href="https://inside.kompas.com/about-us#meet">Contact Us</a> </li> </ul> </div> <div class="footerCopyright"> <p>Copyright 2008 - 2024 PT. Kompas Cyber Media (Kompas Gramedia Digital Group). All Rights Reserved.</p> </div> </div> </div> </div> </div> <script type="text/javascript"> function getCookieNwsLetter(name) { var re = new RegExp(name + "=([^;]+)"); var value = re.exec(document.cookie); return (value != null) ? unescape(value[1]) : null; } function nwsLetterSubmit() { var token = getCookieNwsLetter("kmp_uid"); if (token !== null) { window.location.href = "https://www.kompas.com/newsletter/pendaftaran-berhasil"; } else { window.location.href = 'https://account.kompas.com/login/a29tcGFz/aHR0cHM6Ly93d3cua29tcGFzLmNvbS9uZXdzbGV0dGVyL3BlbmRhZnRhcmFuLWJlcmhhc2ls?source=kompas.com&medium=gatenewsletter'; } } </script> <script src="https://asset.kompas.com/data/2022/12/27/1003/kompascom/copy_credit.min.js"></script> <script type="text/javascript" src="https://asset.kompas.com/data/2024/10/24/kompascom/js/sso_g_signin_fedcm.min.js"></script> <!-- <script src="https://asset.kompas.com/data/2017/wp/js/radio-stream.js"></script> --> <script src="https://asset.kompas.com/data/2017/wp/js/slick.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/jquery.sticky-kit.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/jquery.marquee.min.js?v=11"></script> <script src="https://asset.kompas.com/data/2017/wp/js/jquery.lazyload.min.js"></script> <script src="https://asset.kompas.com/data/2024/02/22/kompascom/desktop/css/main.min.js"></script> <script src="https://asset.kompas.com/data/2024/02/27/sso/js/sso_personalisasi.min.js"></script> <script type="text/javascript" src="https://asset.kompas.com/data/2023/sso/js/sdk-cookie-consent-v3.min.js"></script> <script src="https://asset.kompas.com/data/2023/08/30/sso/js/extender.min.js"></script> <script src="https://asset.kompas.com/data/2022/sso/js/ssouser.min.js?v=2"></script> <script src="https://asset.kompas.com/data/2017/wp/js/main-photo-article.min.js?v=6"></script> <script src="https://asset.kompas.com/data/2017/wp/js/photoswipe.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/photoswipe-ui-default.min.js"></script> <script src="https://asset.kompas.com/data/2023/08/31/kompascom/desktop/js/main-article.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/bootstrap-datepicker.min.js"></script> <script src="https://asset.kompas.com/data/2017/wp/js/jquery.magnific-popup.min.js"></script> <script src="https://asset.kompas.com/data/2023/09/20/kompascom/desktop/js/main-comment.min.js"></script> <!-- infografis zoom--> <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> <div class="pswp__bg"></div> <div class="pswp__scroll-wrap"> <div class="pswp__container"> <div class="pswp__item"></div> <div class="pswp__item"></div> <div class="pswp__item"></div> </div> <div class="pswp__ui pswp__ui--hidden"> <div class="pswp__top-bar"> <div class="pswp__counter"></div> <button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> <div class="pswp__preloader"> <div class="pswp__preloader__icn"> <div class="pswp__preloader__cut"> <div class="pswp__preloader__donut"></div> </div> </div> </div> </div> <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> <div class="pswp__share-tooltip"></div> </div> <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button> <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button> <div class="pswp__caption"> <div class="pswp__caption__center"></div> </div> </div> </div> </div> <script> !(function () { var time = new Date().getTime(); $(document.body).bind('mousemove keypress', function(e) { time = new Date().getTime(); }); function refresh() { if (new Date().getTime() - time >= 900000) { // 15 Menit window.location.reload(true); } else { setTimeout(refresh, 10000); } } setTimeout(refresh, 10000); })(); </script> <script async src="https://asset.kompas.com/kgnotif/2024/11/06/kompascom.js"></script> <script> function setCookieUkid(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";domain=.kompas.com;path=/;"; } if(document.cookie.indexOf('ukid=') == -1){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var ukid_cookie = JSON.parse(xhttp.responseText); setCookieUkid('ukid', ukid_cookie.ukid, 365); } }; xhttp.open("GET", "https://apis.kompas.com/api/activity/user", true); xhttp.send(); } </script><script> /*! lozad.js - v1.7.0 - 2018-11-08 * https://github.com/ApoorvSaxena/lozad.js * Copyright (c) 2018 Apoorv Saxena; Licensed MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";var g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},r="undefined"!=typeof document&&document.documentMode,l={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var e=document.createElement("img");r&&t.getAttribute("data-iesrc")&&(e.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(e.alt=t.getAttribute("data-alt")),t.appendChild(e)}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}}; /** * Detect IE browser * @const {boolean} * @private */function f(t){t.setAttribute("data-loaded",!0)}var b=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var r,o,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=g({},l,t),n=e.root,i=e.rootMargin,d=e.threshold,u=e.load,c=e.loaded,s=void 0;return window.IntersectionObserver&&(s=new IntersectionObserver((r=u,o=c,function(t,e){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(e.unobserve(t.target),b(t.target)||(r(t.target),f(t.target),o(t.target)))})}),{root:n,rootMargin:i,threshold:d})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(a,n),e=0;e<t.length;e++)b(t[e])||(s?s.observe(t[e]):(u(t[e]),f(t[e]),c(t[e])))},triggerLoad:function(t){b(t)||(u(t),f(t),c(t))},observer:s}}}); </script> <script type="text/javascript"> // Initialize library $(document).ready(function(){ lozad('.lozad', { load: function(el) { el.src = el.dataset.src; el.onload = function() { el.classList.add('fade') } } }).observe() }); </script> <script src="https://asset.kompas.com/data/2024/08/26/kgmverify/js/kgmverify.min.js"></script> <script async> const handlePopup = { __kgmverify: ("; "+document.cookie).split("; __kgmverify=").pop().split(";").shift(), consentMode: localStorage.getItem("consentMode"), init: function() { let showKgmVerify = true; const listPopupElement = [ '#kgmModal-cookie', '.popup-kcmplus', 'body.-restricted' ]; for (let i = 0; i < listPopupElement.length; i++) { const popup = document.querySelector(`${listPopupElement[i]}`); if (listPopupElement[i] == '#kgmModal-cookie') { if (!!popup && this.consentMode == null) { showKgmVerify = false; break; } } else if (listPopupElement[i] == '.popup-kcmplus') { if (this.__kgmverify) { this.__kgmverify = JSON.parse(atob(this.__kgmverify)); let show = this.__kgmverify.show; let currentTime = new Date(); if (typeof show !== "undefined") { const showTime = new Date(show); if (showTime.getTime() > currentTime.getTime()) { this.popupKompasPlus(); showKgmVerify = false; break; } }else{ this.popupKompasPlus(); showKgmVerify = false; break; } } } else if (listPopupElement[i] == 'body.-restricted' && !!popup) { showKgmVerify = false; break; } } if (showKgmVerify) { KgmVerifyWidget({publisher: "kompascom"}); } }, popupKompasPlus: function() { const params = new URLSearchParams(window.location.search) // if (params.has('l') && params.get('l') == 'c' && getCookieKcmPlus('kcmplus_cookies') == 1) { // deleteCookieKcmPlus('kcmplus_cookies', '/', '.kompas.com'); // } if (getCookieKcmPlus('kmps_usrid') && getCookieKcmPlus('kcmplus_cookies') == '' && params.has('lgn_method') && params.get('lgn_method') != '') { // showPopupKcmPlus(); const icoClosePopup = document.querySelector('.icoClosePopup'); const kcmplusImg = document.querySelector('.popup-kcmplusImg'); icoClosePopup.addEventListener('click', function(event) { setCookieKcmPlus("kcmplus_cookies", 1, ""); }); kcmplusImg.addEventListener('click', function(event) { setCookieKcmPlus("kcmplus_cookies", 1, ""); }); } } } handlePopup.init() </script> <script async src="https://asset.kompas.com/data/2024/10/23/js/freepremium.js"></script> <script async src="https://asset.kompas.com/data/2024/10/23/js/kompasplus_reminder.js"></script> <div class="modalContent reactionModal" data-modal-target="reaction-share"> <div class="modalHeader"> <div class="modalTitle"></div> <button class="button buttonDismiss modalDismiss" aria-label="Close" data-modal-button="dismiss"> <span class="icoBase icoDismiss"></span> </button> </div> <div class="modalBody socmedModal"> <div class="socmedTitle">Bagikan artikel ini melalui</div> <div class="socmedList"> <a href="javascript:void(0);" class="button buttonFacebook socmedButton" role="button" aria-label="Share to Facebook"> <span class="icoSocmed icoFacebook"></span> <span class="socmedTxt">Facebook</span> </a> <a href="javascript:void(0);" class="button buttonTwitter socmedButton" role="button" aria-label="Share to Twitter"> <span class="icoSocmed icoTwitter"></span> <span class="socmedTxt">X</span> </a> <a href="javascript:void(0);" class="button buttonWhatsapp socmedButton" role="button" aria-label="Share to Whatsapp"> <span class="icoSocmed icoWhatsapp"></span> <span class="socmedTxt">Whatsapp</span> </a> <a target="_blank" href="javascript:void(0);" class="button buttonLine socmedButton" role="button" aria-label="Share to Line"> <span class="icoSocmed icoLine"></span> <span class="socmedTxt">Line</span> </a> <a href="javascript:void(0);" class="button buttonTelegram socmedButton" role="button" aria-label="Share to Telegram"> <span class="icoSocmed icoTelegram"></span> <span class="socmedTxt">Telegram</span> </a> <a href="javascript:void(0);" class="button buttonCopyLink socmedButton" role="button" aria-label="Share to Copy Link" data-form="copyLinkUrl" data-copy="copy-url" data-title="URL Berhasil disalin"> <span class="icoSocmed icoCopyLink"></span> <span class="socmedTxt">Copy Link</span> </a> </div> <textarea class="socmedSrc" type="text" id="copyLinkUrl" value="" style="display: none;"></textarea> </div> </div> <script> (function() { $('body').on('click', '.reaction > * .buttonShare, .listPop > * .buttonShare', function(e) { if($(this).data("type")=='buku'){ let title = $(this).data("title"); let url = $(this).data("url").replace('http://', 'https://'); let copy_link = url; let modals = $('.reactionModal'); modals.find('.modalTitle').html(title); modals.find('#copyLinkUrl').html(copy_link); modals.find('.socmedTitle').html('Bagikan buku ini melalui'); modals.find('.buttonFacebook').attr("onclick", `fb_share('${title}','${url}')`); modals.find('.buttonTwitter').attr("onclick", `tweet_share('${url}')`); modals.find('.buttonWhatsapp').attr("onclick", `whatsapp_share_new('', '${url}')`); modals.find('.buttonLine').attr("href", `https://line.me/R/msg/text/?${url}`); modals.find('.buttonTelegram').attr("onclick", `telegram_share('${title}', '${url}')`); }else{ let title = $(this).data("title"); let url = $(this).data("url").replace('http://', 'https://'); let campaign = $(this).data("campaign"); let modals = $('.reactionModal'); let tagline_wa = '\\n\\nKompascom+ baca berita tanpa iklan: https://kmp.im/plus3 \\nDownload aplikasi: https://kmp.im/app3'; let tagline_tw = '\\n\\nKompascom+ baca berita tanpa iklan: https://kmp.im/plus2 \\nDownload aplikasi: https://kmp.im/app2'; let type = $(this).data("type") ? $(this).data("type") : 'article'; let title_klik = (type == 'article') ? 'Klik untuk baca' : 'Klik untuk lihat video'; let title_wa = '*'+title+'*\\n\\n'+title_klik+':\\n'; let title_tele = '**'+title+'**'; let utm_campaign = custom_utm_campaign(); let copy_link = url+'?utm_source=Various&utm_medium=Referral&utm_campaign='+utm_campaign; modals.find('.modalTitle').html(title); modals.find('#copyLinkUrl').html(copy_link); modals.find('.buttonFacebook').attr("onclick", `fb_share('${title}','${url}?utm_source=Facebook&utm_medium=Referral&utm_campaign=${utm_campaign}')`); if(title.length < 200){ modals.find('.buttonTwitter').attr("onclick", `tweet_share('${title}\\n\\n`+title_klik+`: ${url}?utm_source=Twitter&utm_medium=Referral&utm_campaign=${utm_campaign}${tagline_tw}', '${url}?utm_source=Twitter&utm_medium=Referral&utm_campaign=${utm_campaign}')`); }else{ modals.find('.buttonTwitter').attr("onclick", `tweet_share('${title}\\n\\n`+title_klik+`: ${url}?utm_source=Twitter&utm_medium=Referral&utm_campaign=${utm_campaign}')`); } modals.find('.buttonWhatsapp').attr("onclick", `whatsapp_share_new('${title_wa}', '${url}?utm_source=Whatsapp&utm_medium=Referral&utm_campaign=${utm_campaign}${tagline_wa}')`); modals.find('.buttonLine').attr("href", `https://line.me/R/msg/text/?${title}%0D%0A%0D%0A`+title_klik+`:%0D%0A${url}%3Futm_source=Line%26utm_medium=Referral%26utm_campaign=${utm_campaign}%0D%0A%0D%0AKompascom%2B baca berita tanpa iklan: https://kmp.im/plus4%0D%0ADownload aplikasi: https://kmp.im/app4`); modals.find('.buttonTelegram').attr("onclick", `telegram_share('${title_tele}', '${url}?utm_source=Telegram&utm_medium=Referral&utm_campaign=${utm_campaign}', '%0D%0A%0D%0AKompascom%2B baca berita tanpa iklan: https://kmp.im/plus5%0D%0ADownload aplikasi: https://kmp.im/app5')`); } openModal('reaction-share'); }); })(); function custom_utm_campaign() { if (window.location.hostname.indexOf('activity') == 0) { if (window.location.pathname == '/saved') { return 'Saved_Desktop' } else if (window.location.pathname == '/like') { return 'Liked_Desktop' } } else { var el_socmedList = document.querySelector('.socmedList'); if (!!el_socmedList) { var data_area = el_socmedList.getAttribute('data-area'); if (data_area == 'top') { return 'Top_Desktop' } else if (data_area == 'bottom') { return 'Bottom_Desktop' } else { return 'AIML_Widget_Desktop' } } } return 'Sticky_Desktop' } </script><!-- reaction toast --> <div class="toast" data-toast="bottom"> <div class="toastContent"></div> <a href="#" class="button buttonDismiss toastDismiss" aria-label="Dismiss" role="button" data-toast-button="dismiss">Oke</a> </div> <script> var el_badge = document.querySelector('.sso__badge') var el_badge_menu = document.querySelector('.sso__badge__inline') function checkSession() { var badge_temp_session = getCookie("_badge_temp_session") var badge_session = getCookie("badge_session") var badge_first_click = getCookie("badge_first_click"); if (badge_temp_session == "" && badge_session == "") { setCookie("_badge_temp_session", 1) setCookie("badge_session", 1, 8760) // console.log("test badge temp 1") } else if (badge_temp_session == "" && badge_session == 1) { setCookie("_badge_temp_session", 1) setCookie("badge_session", 2, 8760) // console.log("test badge temp 2") } else if (badge_temp_session == "" && badge_session == 2 && badge_first_click == 1) { setCookie("_badge_temp_session", 1) setCookie("badge_session", 3, 8760) // console.log("test badge temp 3") } setCookie("_badge_temp_session", 1) } checkSession() function checkCookieBadgeNps() { var badge_session = getCookie("badge_session") var badge_first_click = getCookie("badge_first_click") var click_icon_badge = getCookie("click_icon_badge") var feedback_click = getCookie("feedback_click_badge") // show badge jika sesi berikutnya if (badge_session == 2) { el_badge.style.display = "block" el_badge_menu.style.display = "block" // console.log("test 1") } // jika ada di sesi berikutnya dan telah click badge icon utk pertama kali, maka hide badge icon login if (badge_session == 2 && badge_first_click == 1) { el_badge.style.display = "none" // console.log("test 2") // jika tidak cek, // jika ada di sesi berikutnya dan telah click badge icon utk pertama kali // atau jika di sesi berikutnya dan cookie click icon badge expired // atau jika di sesi berikutnya dan cookie badge feedback success expired } else if ((badge_session == 3 && badge_first_click == 1) || (badge_session == 3 && document.cookie.indexOf("click_icon_badge=") == -1) || (badge_session == 3 && document.cookie.indexOf("badge_feedback_success=") == -1)) { el_badge.style.display = "block" el_badge_menu.style.display = "block" // console.log("test 3") } // hide jika ada cookie click icon badge masih aktif // utk cek cookie 2 jam, 1 hari, 1 minggu dan 4 minggu. if (document.cookie.indexOf("click_icon_badge=") != -1) { el_badge.style.display = "none" // console.log("test 4") } // jika "Berikan masukkanmu" telah dikilk, maka hide // jika tidak cek jika sesi > 1 dan cookie feedback click badge "Berikan masukkanmu" expired, maka show if (document.cookie.indexOf("feedback_click_badge=") != -1) { el_badge_menu.style.display = "none" // console.log("test 5") } else if (badge_session > 1 && document.cookie.indexOf("feedback_click_badge=") == -1) { el_badge_menu.style.display = "block" // console.log("test 6") } // hide jika telah memberi penilaian if (document.cookie.indexOf("badge_feedback_success=") != -1) { el_badge.style.display = "none" el_badge_menu.style.display = "none" // console.log("test 7") } } checkCookieBadgeNps() var sso__icon__login_top = document.getElementById('sso__icon__login_top') sso__icon__login_top.addEventListener('click', function() { var badge_session = getCookie("badge_session") var badge_first_click = getCookie("badge_first_click") var feedback_success = getCookie("badge_feedback_success") var click_icon_badge = getCookie("click_icon_badge") var click_icon_counter_badge = getCookie("click_icon_counter_badge") if (feedback_success == "" || document.cookie.indexOf("badge_feedback_success=") == -1) { // click untuk pertama kali di sesi berikutnya if (badge_session == 2 && badge_first_click == "") { el_badge.style.display = "none" el_badge_menu.style.display = "block" setCookie("badge_first_click", 1, 8760) // console.log("click 1") // click jika sesi berikutnya setelah mengklik icon badge utk pertama kali } else { // jika belum ada cookie click icon badge // dan ada di sesi berikutnya setelah click icon pertama kali // dan counter click icon kosong atau 0 if (badge_session == 3 && click_icon_badge == "" && (click_icon_counter_badge == "" || click_icon_counter_badge == 0)) { setCookie("click_icon_counter_badge", 1, 8760) setCookie("click_icon_badge", 1, 2) el_badge.style.display = "none" el_badge_menu.style.display = "block" // console.log("clicked 1") // Jika cookie badge click icon expired dan counter = 1, maka set 1 hari } else if (document.cookie.indexOf("click_icon_badge=") == -1 && click_icon_counter_badge == 1) { setCookie("click_icon_counter_badge", parseInt(click_icon_counter_badge)+1, 8760) setCookie("click_icon_badge", 2, 24) el_badge.style.display = "none" el_badge_menu.style.display = "block" // console.log("clicked 2") // Jika cookie badge click icon expired dan counter = 2, maka set 1 minggu } else if (document.cookie.indexOf("click_icon_badge=") == -1 && click_icon_counter_badge == 2) { setCookie("click_icon_counter_badge", parseInt(click_icon_counter_badge)+1, 8760) setCookie("click_icon_badge", 3, 168) el_badge.style.display = "none" el_badge_menu.style.display = "block" // console.log("clicked 3") // Jika cookie badge click icon expired dan counter lebih dari 2, maka set 4 minggu } else if (document.cookie.indexOf("click_icon_badge=") == -1 && click_icon_counter_badge > 2) { setCookie("click_icon_counter_badge", 0, 8760) // reset badge counter click icon setCookie("click_icon_badge", 4, 672) el_badge.style.display = "none" el_badge_menu.style.display = "block" // console.log("clicked 4") } // console.log("click 2") } // jika feedback click expired dan counter >= 0, maka show var feedback_click_counter = getCookie("feedback_click_counter_badge") if (badge_session > 1 && document.cookie.indexOf("feedback_click_badge") == -1 && feedback_click_counter >= 0) { el_badge_menu.style.display = 'block' } } }) var feedback__item = document.getElementById('feedback__item') feedback__item.addEventListener("click", function() { var feedback_click = getCookie("feedback_click_badge") var feedback_success = getCookie("badge_feedback_success") var feedback_click_counter = getCookie("feedback_click_counter_badge") if (feedback_success == "" || document.cookie.indexOf("badge_feedback_success=") == -1) { // jika belum ada cookie feedback click counter, maka set 2 jam if (feedback_click_counter == "" || feedback_click_counter == 0) { setCookie("feedback_click_counter_badge", 1, 8760) setCookie("feedback_click_badge", 1, 2) el_badge_menu.style.display = "none" // console.log("feedback clicked 1") // Jika cookie feedback click badge expired dan counter 1, maka set 1 hari } else if (document.cookie.indexOf("feedback_click_badge=") == -1 && feedback_click_counter == 1) { setCookie("feedback_click_counter_badge", parseInt(feedback_click_counter)+1, 8760) setCookie("feedback_click_badge", 2, 24) el_badge_menu.style.display = "none" // console.log("feedback clicked 2") // Jika cookie feedback click badge expired dan counter 2, maka set 1 minggu } else if (document.cookie.indexOf("feedback_click_badge=") == -1 && feedback_click_counter == 2) { setCookie("feedback_click_counter_badge", parseInt(feedback_click_counter)+1, 8760) setCookie("feedback_click_badge", 3, 168) el_badge_menu.style.display = "none" // console.log("feedback clicked 3") // Jika cookie feedback click badge expired dan counter > 2, maka set 4 minggu } else if (document.cookie.indexOf("feedback_click_badge=") == -1 && feedback_click_counter > 2) { setCookie("feedback_click_counter_badge", 0, 8760) setCookie("feedback_click_badge", 4, 672) el_badge_menu.style.display = "none" // console.log("feedback clicked 4") } else { // jika di sesi sebelumnya sudah diklik tapi belum isi feedback el_badge_menu.style.display = "none" // console.log("feedback clicked 5") } } }) function setCookie(name,value,hour) { var expires = ""; if (hour) { var date = new Date(); date.setTime(date.getTime() + (hour*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + (value || "") + expires + "; ;domain=.kompas.com;path=/"; } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } // action create cookie badge_feedback_success expired 90 hari var onSubmitNps = document.getElementById("nps-submit") if (onSubmitNps !== null) { onSubmitNps.addEventListener("click", function(e) { // e.preventDefault() setCookie("badge_feedback_success", 1, 2160) }) } </script><script> const showAllBtnJs = document.querySelector('#show_all_news') if (!!showAllBtnJs) { showAllBtnJs.addEventListener('click', function() { const startPage = showAllBtnJs.dataset.startPage const url = new URL(window.location.href); window.location.href = `${url.origin}${url.pathname}?page=all#page${startPage}`; }) } </script> <section class="kgmModal -hide" id="kgmModal-onetap" data-event-category="KG Media ID Account" data-event-action="View KG Onetap" data-event-label="" data-event-track="impression" data-url="" type="button" id="kgmModal-onetap-close-tag" class="kgmModal-close"> <div class="kgmModal-block"> <div class="kgmModal-header"> <div class="kgmModal-header-inner"> <div class="kgmModal-header-logo"> <img class="lozad" data-src="https://asset.kompas.com/data/2023/03/30/kompascom/images/logo-kompascom.svg?v=1" alt="logo-Kompas.com"> </div> <button data-event-category="KG Media ID Account" data-event-action="ClickClose KG Onetap" data-event-label="Tags Button" data-event-track="click" data-url="" type="button" id="kgmModal-onetap-close-tag" class="kgmModal-close" style="display:none;"></button> <button data-event-category="KG Media ID Account" data-event-action="ClickClose KG Onetap" data-event-label="See All Button" data-event-track="click" type="button" id="kgmModal-onetap-close-page" onclick="document.getElementById('kgmModal-onetap').classList.add('-hide');oneTapHide();return false;" class="kgmModal-close" style="display:none;"></button> <button data-event-category="KG Media ID Account" data-event-action="ClickClose KG Onetap" data-event-label="" data-event-track="click" type="button" id="kgmModal-onetap-close-iteraction" onclick="document.getElementById('kgmModal-onetap').classList.add('-hide');oneTapHide();return false;" class="kgmModal-close" style="display:none;"></button> </div> </div> <div class="kgmModal-body"> <div class="kgmModal-center"> <div class="kgmModal-title" id="kgmModal-title">Login untuk memaksimalkan pengalaman mengakses Kompas.com</div> </div> <div class="kgmModal-onetap"> <!-- google --> <div class="form-google"> <div id="kgOne1"> <div id="g_id_onload" data-client_id="776828813358-infk4sje3q07sa8mg8n6lq1mk2pdkkua.apps.googleusercontent.com" data-context="signin" data-ux_mode="popup" data-service="a29tcGFz" data-continue="aHR0cHM6Ly90cmF2ZWwua29tcGFzLmNvbS9yZWFkLzIwMTcvMDQvMjUvMDYwMzAwODI3L21lbmNpY2lwaS5zd2lrZS5wdXJ3b2RhZGkuc3VwLmtvZG9rLmRlbmdhbi50YXVjbz91dG1fc291cmNlPWxvZ2luX2tnb25ldGFw" data-login_uri="https://account.kompas.com/social/user" data-scope="public_profile,email,openid" data-provider="google" data-nonce="" data-auto_prompt="false"> </div> <div class="g_id_signin" data-type="standard" data-shape="rectangular" data-theme="filled_blue" data-theme="outline" data-text="continue_with" data-size="large" data-locale="id" data-logo_alignment="left"> </div> </div> <div id="kgOne2" style="display:none;"> <div id="googleLgnBtn"></div> </div> </div> <!-- screen 1 --> <!-- screen 2 --> <!-- screen 3 --> </div> <div class="kgmModal-divider -clean"><span>atau</span></div> <div class="kgmModal-method"> <a href="https://account.kompas.com/login/a29tcGFz/aHR0cHM6Ly90cmF2ZWwua29tcGFzLmNvbS9yZWFkLzIwMTcvMDQvMjUvMDYwMzAwODI3L21lbmNpY2lwaS5zd2lrZS5wdXJ3b2RhZGkuc3VwLmtvZG9rLmRlbmdhbi50YXVjbw==">Gunakan metode lain</a> </div> </div> <div class="kgmModal-footer"> <div class="kgmModal-info">Dengan login, kamu menyetujui <a href="https://www.kgmedia.id/legal-privacy-id" target="_blank">Kebijakan Data Pribadi</a></div> </div> </div> </section> <script src="https://accounts.google.com/gsi/client" async defer></script> <script> var url_continue = "https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco"; function oneTapShow(tipe='') { let otd = document.getElementById('kgmModal-onetap') if(!!otd) { let kgOne1 = document.getElementById('kgOne1'); let kgOne2 = document.getElementById('kgOne2'); kgOne1.style.display = 'none'; kgOne2.style.display = 'block'; otd.classList.remove('-hide'); document.body.classList.add('-locked'); } } function oneTapHide() { let otd = document.getElementById('kgmModal-onetap') if(!!otd) { otd.classList.add('-hide'); document.body.classList.remove('-locked'); } } function hideButtonClose(){ document.getElementById('kgmModal-onetap-close-tag').style.display = 'none'; document.getElementById('kgmModal-onetap-close-page').style.display = 'none'; document.getElementById('kgmModal-onetap-close-iteraction').style.display = 'none'; } // start all kanal tag rule document.querySelectorAll(".tag__article__link").forEach(element => element.addEventListener('click', event => { event.preventDefault() hideButtonClose(); var kgmModalOneTapClose = document.getElementById('kgmModal-onetap-close-tag'); kgmModalOneTapClose.style.display = "block"; kgmModalOneTapClose.dataset.url = element.getAttribute("href"); document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger=tags_btn') document.getElementById('kgmModal-title').innerHTML = 'Baca berita bertopik serupa dengan login menggunakan akun kamu'; var script = document.createElement("script"); (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); document.getElementById('kgmModal-onetap').dataset.eventLabel = 'Tags Button'; oneTapShow(); })); let kgmModalOneTapClose = document.getElementById('kgmModal-onetap-close-tag'); if (!!kgmModalOneTapClose) { kgmModalOneTapClose.addEventListener('click', function (e) { var url_tag = kgmModalOneTapClose.dataset.url; window.location.href = url_tag; }); } // end all kanal tag rule // start food tag rule let pageShow = document.getElementById('show_all'); if (!!pageShow) { pageShow.addEventListener('click', function (e) { hideButtonClose(); var kgmModalOneTapPage = document.getElementById('kgmModal-onetap-close-page'); kgmModalOneTapPage.style.display = "block"; document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger=seeall_btn'); document.getElementById('kgmModal-title').innerHTML = 'Login untuk akses baca lebih lengkap'; var script = document.createElement("script"); (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); document.getElementById('kgmModal-onetap').dataset.eventLabel = 'See All Button'; oneTapShow(); }); } $(document).on("click", "#commentFormLogin", function() { var komentar_url = $(this).data('komentar-url'); hideButtonClose(); var kgmModalOneTapPage = document.getElementById('kgmModal-onetap-close-page'); kgmModalOneTapPage.style.display = "block"; document.getElementById('g_id_onload').dataset.continue = btoa(komentar_url + '?lgn_source=kgonetap&lgn_trigger=comment_article'); document.getElementById('kgmModal-title').innerHTML = 'Login untuk menyampaikan komentarmu.'; var script = document.createElement("script"); (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); document.getElementById('kgmModal-onetap').dataset.eventLabel = 'Comment Article'; oneTapShow(); }); document.addEventListener('DOMContentLoaded', function() { const elementKgOneTapAction = document.querySelectorAll('[data-kgonetap-action]'); if (!!elementKgOneTapAction) { elementKgOneTapAction.forEach(function(el) { el.addEventListener('click', function() { const kgOneTapAction = el.getAttribute('data-kgonetap-action'); let kgOneTapTitle = 'Login untuk menyampaikan komentarmu.'; let lgnTrigger = ''; let eventLabel = 'See All Button'; if (kgOneTapAction == 'COMMENT_POST') { kgOneTapTitle = 'Login untuk menyampaikan komentarmu.'; lgnTrigger = 'comment_post_btn'; eventLabel = 'Comment Post Button'; } else if (kgOneTapAction == 'COMMENT_LIKE') { kgOneTapTitle = 'Login untuk kasih jempol buat komentar ini.'; lgnTrigger = 'comment_like_btn'; eventLabel = 'Comment Like Button'; } else if (kgOneTapAction == 'COMMENT_DISLIKE') { kgOneTapTitle = 'Tidak setuju dengan komentar ini? Login untuk ikut menanggapi'; lgnTrigger = 'comment_dislike_btn'; eventLabel = 'Comment Disike Button'; } else if (kgOneTapAction == 'COMMENT_REPLY') { kgOneTapTitle = 'Login untuk membalas komentar ini'; lgnTrigger = 'comment_reply_btn'; eventLabel = 'Comment Reply Button'; el.querySelector('.commentButton').textContent = 'Balas'; el.closest('.commentItem').querySelector('.reply_form').style.display = 'none'; } else if (kgOneTapAction == 'MYVALUE_CLAIM') { kgOneTapTitle = 'Login untuk mendapatkan voucher'; lgnTrigger = 'claim_voucher_button'; eventLabel = 'Claim Voucher Button'; } hideButtonClose(); var kgmModalOneTapPage = document.getElementById('kgmModal-onetap-close-page'); kgmModalOneTapPage.style.display = "block"; document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger=' + lgnTrigger); document.getElementById('kgmModal-title').innerHTML = kgOneTapTitle; var script = document.createElement("script"); (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); const dataEventLabel = document.getElementById('kgmModal-onetap'); if (!!dataEventLabel) { dataEventLabel.dataset.eventLabel = eventLabel; const otherDataEventLabel = dataEventLabel.querySelectorAll('[data-event-label]'); if (!!otherDataEventLabel) { otherDataEventLabel.forEach(function(label) { label.dataset.eventLabel = eventLabel }) } } oneTapShow(); }); }); } }) // start reaction rule document.querySelectorAll(".reactionIteration").forEach(element => element.addEventListener('click', event => { hideButtonClose(); var kgmModalOneTapIteraction = document.getElementById('kgmModal-onetap-close-iteraction'); kgmModalOneTapIteraction.style.display = "block"; var trigger_touch_point = 'click_like'; var label = 'Like'; var title = 'Suka konten ini? Login untuk menyimpan preferensimu'; if(element.dataset.ttp=='dislike'){ trigger_touch_point = 'click_dislike'; label = 'Dislike'; title = 'Kurang suka konten ini? Login untuk menyimpan preferensimu'; }else if(element.dataset.ttp=='bookmark'){ trigger_touch_point = 'click_bookmark'; label = 'Bookmark'; title = 'Login untuk simpan dan baca nanti'; }else if(element.dataset.ttp=='like_comment'){ trigger_touch_point = 'click_like_comment'; label = 'Like Comment' title = 'Login untuk kasih jempol buat komentar ini.'; } else if(element.dataset.ttp=='dislike_comment'){ trigger_touch_point = 'click_dislike_comment'; label = 'Dislike Comment' title = 'Tidak setuju dengan komentar ini? Login untuk ikut menanggapi'; } // document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger='+trigger_touch_point) document.getElementById('kgmModal-title').innerHTML = title; // var script = document.createElement("script"); // (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); // document.getElementById('kgmModal-onetap').dataset.eventLabel = label // document.getElementById('kgmModal-onetap-close-iteraction').dataset.eventLabel = label oneTapShow('reaction'); })); // end reaction rule // start comment rule let CommentShow = document.getElementById('btnSendIteration'); if (!!CommentShow) { CommentShow.addEventListener('click', function (e) { hideButtonClose(); var kgmModalOneTapIteraction = document.getElementById('kgmModal-onetap-close-iteraction'); kgmModalOneTapIteraction.style.display = "block"; var trigger_touch_point = 'click_post_comment'; var label = 'Post Comment' var title = 'Login untuk menyampaikan komentarmu.'; document.getElementById('g_id_onload').dataset.continue = btoa(url_continue+'?lgn_source=kgonetap&lgn_trigger='+trigger_touch_point) document.getElementById('kgmModal-title').innerHTML = title; var script = document.createElement("script"); (script.src = "https://accounts.google.com/gsi/client"), (script.defer = !0), (script.async = !0), document.head.appendChild(script); document.getElementById('kgmModal-onetap').dataset.eventLabel = label document.getElementById('kgmModal-onetap-close-iteraction').dataset.eventLabel = label oneTapShow(); }); } // end comment rule function getMeta(metaName) { const metas = document.getElementsByTagName('meta'); for (let i = 0; i < metas.length; i++) { if (metas[i].getAttribute('name') === metaName) { return metas[i].getAttribute('content'); } } return ''; } const closeModalOneTap = document.querySelector('#kgmModal-onetap-close-iteraction'); if (!!closeModalOneTap) { closeModalOneTap.addEventListener('click', function() { localStorage.removeItem('reaction_like_temp') localStorage.removeItem('reaction_dislike_temp') localStorage.removeItem('reaction_bookmark_temp') }) } </script> <script> var addebug = document.querySelectorAll('.cpRight'); for (i = 0; i < addebug.length; ++i) { addebug[i].addEventListener('click', function handleClick() { googletag.openConsole(); }); }; </script><script type="text/javascript"> let kmps_usrid = getCookie("kmps_usrid"); let kmp_uid = getCookie("kmp_uid"); let lgn_w = getCookie("lgn_w"); if(kmp_uid && (!localStorage.getItem("sso_gender") || (JSON.parse(localStorage.getItem("sso_gender")).kmps_usrid != kmps_usrid))){ $.ajax({ "url": "https://apis.kompas.com/api/sso_new/user/detail?token="+kmp_uid+"&loginwith="+lgn_w, "method": "GET", "timeout": 0, }).done(function (response) { let gender = '' if(response['user']['gender']=='l'){ gender = 'male' } if(response['user']['gender']=='p'){ gender = 'female' } localStorage.setItem("sso_gender", JSON.stringify({'kmps_usrid':getCookie("kmps_usrid"), 'gender':gender})); }); } </script> <script> var inject_baca_juga = document.getElementsByClassName('inject-baca-juga'); if(inject_baca_juga.length > 0){ var xhr_auto_baca_juga = new XMLHttpRequest(); xhr_auto_baca_juga.open("POST", "https://recommendation.kgdata.dev/rec/kompascom/api/v2/recommendation/item", true); xhr_auto_baca_juga.setRequestHeader("Content-Type", "application/json"); xhr_auto_baca_juga.onreadystatechange = function () { if (xhr_auto_baca_juga.readyState === 4 && xhr_auto_baca_juga.status === 200) { var json_baca_juga = JSON.parse(xhr_auto_baca_juga.responseText); for (var i = 0; i < inject_baca_juga.length; i++) { inject_baca_juga[i].innerHTML = '<p><strong>Baca juga: <a href="'+json_baca_juga.items[i].url.replace('http:/','https:/')+'?source=bacajuga&engine=C" class="inner-link-baca-juga" target="_self">'+json_baca_juga.items[i].title+'</a></strong></p>'; } } }; var data = JSON.stringify({ "pageurl" : "https://travel.kompas.com/read/2017/04/25/060300827/mencicipi.swike.purwodadi.sup.kodok.dengan.tauco", "pagetype" : "baca-juga" }); xhr_auto_baca_juga.send(data); } </script> <!-- (ads.ambient) --> <!-- (ads.outbrain) --> <!-- (ads.pickwords) --> <!-- (ads.avivid) --> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10