Webseite:The Voice of Millennials and Gen ZInhalt
window.region=getRegion();window.continent=getContinent();window.isAllowAddressByRegion=isAllowAddressByRegion();functiongetRegion(){varregion=getCookie('region');if(region===""){var=newXML();("GET","pro.ip-api.com/json/?key=tZjXsR6xtdknm7C&fields=region",false);(null);region=JSON.parse().region;createCookie('region',region);returnregion;}returnregion;}functiongetContinent(){varcontinent=getCookie('continent');if(continent===""){var=newXML();("GET","pro.ip-api.com/json/?key=tZjXsR6xtdknm7C&fields=continent",false);(null);continent=JSON.parse().continent;createCookie('continent',continent);returncontinent;}returncontinent;}functionisAllowAddressByRegion(){if(window.continent=='Europe'){returnfalse;}if(window.region=='CA'){returnfalse;}returntrue;}functioncreateCookie(cookieName,cookieValue){vardate=newDate();date.setTime(date.getTime()+(5*));document.cookie=cookieName+"="+cookieValue+";expires="+date.toGMTString();}functiongetCookie(cookieName){varname=cookieName+"=";varallCookieArray=document.cookie.split(';');for(vari=0;iBeritaTerkinidanTerbaruGenZHariIni { "@context":"schema.org", "@type":"WebSite", "url":"", "potentialAction":{ "@type":"SearchAction", "target":"/search?q={search_term_string}", "query-input":"requiredname=search_term_string" } }.loading-ads{position:relative;overflow:hidden;background:#eee;opacity:.9;margin:0pxauto}.loading-ads::before{content:"";background:url("/assets/img/ads/ad-icon.png");background-size:20px20px;background-repeat:no-repeat;width:20px;height:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:-1}.loading-ads::after{content:"";background:url("/assets/img/ads/ad-loading.gif");background-size:100%2px;background-repeat:no-repeat;height:2px;width:100%;position:absolute;left:0px;top:0px;z-index:-1} .blur-up{ -webkit-filter:blur(5px); filter:blur(5px); transition:filter400ms,-webkit-filter400ms; } .blur-up.lazyloaded{ -webkit-filter:blur(0); filter:blur(0); } if(window.isAllowAddressByRegion){document.write('');}functiongetLotameAudience(){vardartCC="";if(typeof(ccauds)!='undefined'){for(varcci=0;cci0)dartCC+=",";dartCC+=ccauds.Profile.Audiences.Audience[cci].abbr;}}return[dartCC];}vargptadslots=[];window.googlet=window.googlet||{cmd:[]};//initializepbjsvarpbjs=pbjs||{};pbjs.que=pbjs.que||[];gpt_slot_objects=[];googlet.cmd.push(function(){//gpt_leaderboard=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[970,90],[970,250],[728,90]],'div-gpt-ad-leaderboard_top')//.setTargeting('pos',['leaderboard_top'])//.addService(googlet.pubads());gpt_infeed1=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[728,90]],'div-gpt-ad-infeed1').setTargeting('pos',['infeed1']).addService(googlet.pubads());gpt_infeed2=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[728,90]],'div-gpt-ad-infeed2').setTargeting('pos',['infeed2']).addService(googlet.pubads());gpt_infeed3=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[728,90]],'div-gpt-ad-infeed3').setTargeting('pos',['infeed3']).addService(googlet.pubads());gpt_ct1=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[1,1]],'div-gpt-ad-custom1').setTargeting('pos',['custom1']).addService(googlet.pubads());gpt_ct2=googlet.defineSlot('/9/IDNTimesDesktop/Homepe',[[1,1]],'div-gpt-ad-custom2').setTargeting('pos',['custom2']).addService(googlet.pubads());oopSlot=googlet.defineOutOfPeSlot('/9/IDNTimesDesktop/Homepe','div-gpt-ad-oop1').setTargeting('pos',['oop1']).addService(googlet.pubads());gpt_interstitial=googlet.defineOutOfPeSlot('/9/IDNTimesDesktop/Interstitial',googlet.enums.OutOfPeFormat.INTERSTITIAL).addService(googlet.pubads());gpt_slot_objects.push(gpt_infeed1,gpt_infeed2,gpt_infeed3,gpt_ct1,gpt_ct2,gpt_interstitial,oopSlot);googlet.pubads().enableSingleRequest();googlet.pubads().collapseEmptyDivs(true);googlet.pubads().setTargeting('pe_type',['home']);if(window.isAllowAddressByRegion){googlet.pubads().setTargeting('lotameAudience',getLotameAudience());}googlet.pubads().addEventListener('slotOnload',function(event){$("#"+event.slot.getSlotElementId()).removeClass("loading-ads");});googlet.enableServices();//functionthatcallsthead-serverfunctioncallAdserver(gptSlots){if(pbjs.adserverCalled)return;pbjs.adserverCalled=true;}//requestpbjsbidswhenitloadspbjs.que.push(function(){pbjs.rp.requestBids({callback:callAdserver,gptSlotObjects:gpt_slot_objects});});//failsafeincasePBJSdoesn'tloadsetTimeout(function(){callAdserver(gpt_slot_objects);},3500);});vararticleListUrl,nextArticleUrl;varkillAjax=false;varbaseUrl="";varjscrollOptions={loadingHtml:'',padding:50,refresh:true};{"@context":"schema.org","@type":"Organization","name":"IDNTimes","url":"","logo":"/assets/img/logo.png","sameAs":["/idntimes","twitter.com/idntimes","plus.google.com/+IDNtimescom","/idntimes/","/channel/UCMcqmnF-uCBFzQ3NvmaELCg","/company/idntimes-com"]}window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'userInfo','userId':'0','interests':'na','postSubmitted':'0','postApproved':'0'});window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'contentGroup','category':'notapplicable','subCategory':'notapplicable','peType':'homepe',});(function(a,s,y,n,c,h,i,d,e){s.className+=''+y;h.end=i=function(){s.className=s.className.replace(RegExp('?'+y),'')};(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);})(window,document.documentElement,'async-hide','dataLayer',4000,{'GTM-P84KQM':true});if(window.isAllowAddressByRegion){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P84KQM');}(function(d,s,id){ varjs,fjs=d.getElementsByTName(s)[0]; if(d.getElementById(id))return; js=d.createElement(s);js.id=id; js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId="; fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));!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.getElementsByTName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','connect.facebook.net/en_US/fbevents.js');fbq('init','');fbq('track','PeView');fbq('track','ViewContent');constclientSideIdentityOptions={subscriptionId:"9nYmxNTHPW",serverPublicKey:"UID2-X-P-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9ofTlO2SV9Sfx32rYc65iZOtTdbo2d0QVkXsBHFM5KHkiNVT//d8TbSHEyeNPvPWVi8Tu9wkbQviEMTzgDMerA==",};asyncfunctionloggedIn(email){//Triggeredwhenuserlogoutif(email==null||email==undefined){awaitloggedOut();}//Triggeredwhenuserloginif(email){try{await__uid2.setIdentityFromEmail(email,clientSideIdentityOptions);}catch(e){console.error('setIdentityFromEmailfailed',e);}}}asyncfunctionloggedOut(){try{await__uid2.disconnect();}catch(e){console.error('disconnectfailed',e);}}asyncfunctionsetLoggedInEmail(){consttoken=document.querySelector('meta[name="csrf-token"]').getAttribute('content');consturl=document.querySelector('#component-account').getAttribute('data-url-account-status');constresponse=awaitfetch(url+'?_data='+token,{method:'GET',credentials:'include',});constdata=awaitresponse.json();constemail=data.data.email;if(email){awaitloggedIn(email);}}functionsetCookie(token,timestampExp){constcookie="__uid2_advertising_token="+token+";expires="+newDate(timestampExp).toGMTString()+";SameSite=None;Source=true;Secure";document.cookie=cookie;}functionsetCookieIdentity(identityObject,timestampExp){constcookie="__uid2_identity="+JSON.stringify(identityObject)+";expires="+newDate(timestampExp).toGMTString()+";";document.cookie=cookie;}window.__uid2=window.__uid2||{};window.__uid2.callbacks=window.__uid2.callbacks||[];window.__uid2.callbacks.push((eventType,payload)=>{console.log({eventType,payload,});if(eventType==='SdkLoaded'){window.__uid2.init({baseUrl:'global.prod.uidapi.com',});document.addEventListener("DOMContentLoaded",function(){setLoggedInEmail();});}if(eventType=='InitCompleted'){if(payload.identity!=undefined){window.__uid2_advertising_token=payload.identity.advertising_token;window.__uid2_identity_expires=payload.identity.identity_expires;setCookie(window.__uid2_advertising_token,window.__uid2_identity_expires);setCookieIdentity(payload.identity,window.__uid2_identity_expires);}else{if(__uid2.isLoginRequired()){//CalloneofthesetIdentityFromfunctionstogenerateanewUID2token.//Addanyretrylogicaroundthiscallasrequired.setLoggedInEmail();}}}if(eventType=='IdentityUpdated'){if(payload.identity!=undefined){window.__uid2_advertising_token=payload.identity.advertising_token;window.__uid2_identity_expires=payload.identity.identity_expires;setCookie(window.__uid2_advertising_token,window.__uid2_identity_expires);setCookieIdentity(payload.identity,window.__uid2_identity_expires);}}});//initializepbjsvarpbjs=pbjs||{};pbjs.que=pbjs.que||[];pbjs.que.push(function(){pbjs.setConfig({userSync:{userIds:[{name:'uid2',params:{store:'cookie',uid2Cookie:'__uid2_identity',},}],},});});console.log(pbjs); QuizNewsBusinessSportTechHypeKoreaLifeHealthCommunityRegional RegionalIDNTimesJawaBaratBantenJawaTengahJogjaJawaTimurBaliSumateraUtaraSulawesiSelatanKalimantanTimurSumateraSelatanLampungNTBLainnya KategoriTanyaJawabAutomotiveScienceMenFoodOpinionFictionIndexTrelEvent#ADA100CARA#COZIMMOVING#AKUPEREMPUAN#KITAIDN#LIPUTANKHUSUS#IDGAFDOWNLOADIDNAPPSEKARANG!TopikPopulergooglet.cmd.push(function(){googlet.display('div-gpt-ad-custom1');});googlet.cmd.push(function(){googlet.display('div-gpt-ad-oop1');}); IDNTimes:BeritaTerkiniTheVoiceofMillennialsandGenZNews21Dec24|21:33LukisanYosSupraptoDiturunkan,Mahfud:AspirasiHarusDilindungiNews21Dec24|20:33ViralJokiPenunjukJalurAlternatifPuncakBogorTembakHargaRp850RibuBusiness21Dec24|22:00MengenalNisbahAktivaTetapterhadapModalBersihHype21Dec24|21:475TeoriPenyebabKrentheHunterRugiBesardiBoxOfficeSport21Dec24|21:33FilipinaUngguliTimnasIndonesiaLewatPenaltiLukisanYosSupraptoDiturunkan,Mahfud:AspirasiHarusDilindungiViralJokiPenunjukJalurAlternatifPuncakBogorTembakHargaRp850RibuMengenalNisbahAktivaTetapterhadapModalBersih5TeoriPenyebabKrentThe Voice of Millennials and Gen ZheHunterRugiBesardiBoxOfficeFilipinaUngguliTimnasIndonesiaLewatPenaltiBeritaTerpopulerNews21Dec24|15:5718PolisiDiperiksaTerkaitDugaanPemerasanPenontonDWP2024Life21Dec24|22:5020UcapanHariIbuyangSudahMeninggal,PenuhKenangan!Life21Dec24|15:0014RekomendasiBuketHariIbu2024,SimpelhinggaEstetik!Life21Dec24|22:4050UcapanSelamatHariIbu2024dariSuamiuntukIstriNews21Dec24|16:05RSTiaraBekasiKebakaran,Sebanyak165PasienSempatDievakuasiHealth21Dec24|22:117PenyebabKeluarGasdariVina,NormalkahIni?News21Dec24|16:04PelakuTerorMobildiJerman,DokterdanAnti-IslamNews21Dec24|15:40KronologiTerorMobilPasarMalamNataldiJermanBusiness21Dec24|19:00AktivaProduktifBermasalah:Pengertian,KategoridanKriterianyaBusiness21Dec24|21:00AktivaBerisiko:PengertiandanJenisnyaBeritaTerkinigooglet.cmd.push(function(){googlet.display('div-gpt-ad-infeed1');});BeritaLainnya!KategoriLainnyaNewsHypeTechTrelMenOpinionnewsgooglet.cmd.push(function(){googlet.display('div-gpt-ad-infeed2');});BeritaLainnya!hypegooglet.cmd.push(function(){googlet.display('div-gpt-ad-infeed3');});BeritaLainnya!lifeBeritaLainnya!trelBeritaLainnya! RekomendasiArtikel ABOUTUS CAREER PRIVACY&POLICY PEDOMANMEDIASIBER CONTACTUS FOLLOWUS: ©2024IDN|AllRightsReserved "TheVoiceofMillennialsandGenZ" #DIVERSITYISBEAUTIFUL AboutUsCareerPrivacyPolicyPedomanMediaSiberContactUs©2024IDN|AllRightsReserved"TheVoiceofMillennialsandGenZ"FOLLOWUS: if(nigator.userent.indexOf('Safari')!=-1&&nigator.userent.indexOf('Chrome')==-1){ document.write(''); }functionnotify(messe,type,autohide,delay,duration){vardiv=$('',{'class':'notice'+(type?''+type:''),text:messe||''}),close=$('',{'class':'close-container',click:remove.bind(div.stop(true,true),0,duration),html:$('',{'class':'fasfa-check'})});$('#notification-container').show().append(div.fadeIn(duration||0));if(autohide)remove(div,delay,duration);}functionremove(div,delay,duration){div.delay(delay||0).fadeOut(duration||0,function(){$(this).remove();});}$(document).on("click",".share-facebook",function(e){e.preventDefault();varself=$(this);//OpenFBsharepopupFB.ui({method:'share_open_graph',display:'iframe',action_type:'og.shares',action_properties:JSON.stringify({object:{'og:url':self.data('url'),'og:title':'VotepertanyaaniniardijawabtimredaksiIDNTimes','og:description':'KirimpertanyaanmuseputarPilpres2019dandapatkanhadiahmenariksetiapminggunya!','og:ime':'/assets/img/millennials-memilih/asset-share-pe.jpg'}})},function(response){if(response&&!response.error_messe){console.log('Successfullyposted.Statusid:'+response.post_id);}else{console.log('Somethingwenterror.');}})});$(document).on("click",".share-twitter",function(e){e.preventDefault();varhref='twitter.com/intent/tweet?url='+$(this).data('url')+'&text=VotepertanyaaniniardijawabtimredaksiIDNTimes&via=idntimes&related=idntimes';window.open(href,"Twitter","height=285,width=550,resizable=1");});window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'newsView','ecommerce':{'promoView':{'promotions':[{'id':'6cae00a4eb327baa170b8a85aa45ededbe9','name':'18PolisiDiperiksaTerkaitDugaanPemerasanPenontonDWP2024','creative':'cdn.idntimes.com/content-imes/post//1-c0d5e2b1be2a7dd23_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-1'//pegroup-articlelistname-slotorposition},{'id':'112fa267ec41bdfd5246deaad2afa3fc2fd','name':'20UcapanHariIbuyangSudahMeninggal,PenuhKenangan!','creative':'cdn.idntimes.com/content-imes/post//danila-hamsterman-ou4-cs4vrvy-unsplash-8f6df9218b520d0bf98da_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-2'//pegroup-articlelistname-slotorposition},{'id':'c40f6577ccd0eeaec144afb87d5b963c08','name':'14RekomendasiBuketHariIbu2024,SimpelhinggaEstetik!','creative':'cdn.idntimes.com/content-imes/post//buketbunga-b8a61cfe2b6fa27eb2d97_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-3'//pegroup-articlelistname-slotorposition},{'id':'088e96eb8e173e070fe34f5dfd7c','name':'50UcapanSelamatHariIbu2024dariSuamiuntukIstri','creative':'cdn.idntimes.com/content-imes/community/2024/12/pexels-pixabay--94e6cc185ec1d10df67afedc-b13d77e2f1d1777e2a0a7d4bc_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-4'//pegroup-articlelistname-slotorposition},{'id':'c436c5bdb3f9d4db19e35befa67','name':'RSTiaraBekasiKebakaran,Sebanyak165PasienSempatDievakuasi','creative':'cdn.idntimes.com/content-imes/post//55-85acae54bfa7486aa7033d078b3f8b6a_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-5'//pegroup-articlelistname-slotorposition},{'id':'f6672eb0b2e2893afade6968b4bcb70f85af8b30','name':'7PenyebabKeluarGasdariVina,NormalkahIni?','creative':'cdn.idntimes.com/content-imes/post//front-view-woman-dealing-with-std-1-fc3a90cb46a0e52fe46f53c40a77fe24_600x400.jpg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-6'//pegroup-articlelistname-slotorposition},{'id':'4e811a7b841b274cb5022b1eee7754e8a','name':'PelakuTerorMobildiJerman,DokterdanAnti-Islam','creative':'cdn.idntimes.com/content-imes/post//whatsapp-ime-2022-03-09-at--pm-a39fa1f24cf6cdae3ab_600x400.jpeg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-7'//pegroup-articlelistname-slotorposition},{'id':'b82bf2dc8e10f7b4cef2c9769a8362e3c','name':'KronologiTerorMobilPasarMalamNataldiJerman','creative':'cdn.idntimes.com/content-imes/post//whatsapp-ime-2022-03-09-at--pm-cca63e26c2459fa753c_600x400.jpeg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-8'//pegroup-articlelistname-slotorposition},{'id':'f8a10ea7f6ea32bd','name':'AktivaProduktifBermasalah:Pengertian,KategoridanKriterianya','creative':'cdn.idntimes.com/content-imes/post//whatsapp-ime-2021-11-15-at--am-7e85ff959b6790f130b0a0b9ebb2c6b0_600x400.jpeg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-9'//pegroup-articlelistname-slotorposition},{'id':'febc29face303dbd495fc49e97f','name':'AktivaBerisiko:PengertiandanJenisnya','creative':'cdn.idntimes.com/content-imes/post//whatsapp-ime-2021-11-15-at--am-d2ba68f24ae35d392bc9_600x400.jpeg',//imeurlifnoimejustuse‘text’'position':'homepe-trending-10'//pegrouThe Voice of Millennials and Gen Zp-articlelistname-slotorposition},]}}});$('.box-trending').on('click','a.trending-click',function(){varpost_id=$(this).attr('data-post-id');varime_url=$(this).attr('data-ime-url');varposition=$(this).attr('data-position');vartitle=$(this).attr('title');dataLayer.push({'event':'newsClick','ecommerce':{'promoClick':{'promotions':[{'id':post_id,'name':title,'creative':ime_url,//imeurlifnoimejustuse‘text’'position':'homepe-trending-'+position//pegroup-articlelistname-slotorposition}]}}}); }); $('.sidebar-social').on('click','a',function(){vartitle=$(this).attr('title');window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'follow','eventAction':'sidebar','eventLabel':title.toLowerCase(),});});$('.header-campaign').on('click',function(){varmenu=$(this.children).text();window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'nigation','eventAction':'mainmenuclick','eventLabel':menu.toLowerCase(),});});$('ul.nigation').on('click','li.main-menu',function(){varmenu=$(this.children).text();window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'nigation','eventAction':'mainmenuclick','eventLabel':menu.toLowerCase(),});});$('#dropdown-submenu-regional').on('click','li',function(){varmenu=$(this.children).text();window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'nigation','eventAction':'regionalmenuclick','eventLabel':'regional'+menu.toLowerCase(),});});$('.dropdown-submenu-more').on('click','li',function(){varmenu=$(this.children).text();if($(this).hasClass('channels')){menu=$(this.children).children().attr('alt');}window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'nigation','eventAction':'morecategoriesmenuclick','eventLabel':'morecategories'+menu.toLowerCase(),});});$(document).ready(function(){getTrendingTs();});functiongetTrendingTs(){$.ajax({//url:"/ajax/trending-ts",url:"/ajax/trending-ts",type:"GET",dataType:"json",complete:function(data){if(data.responseText===''){stopload=true;$('#skeleton-trending-ts').hide();returnfalse;}$('#skeleton-trending-ts').hide();$('#section-trending-ts').append(data.responseText);initTrendingTs();returntrue;}});};functioninitTrendingTs(){$(".wrapper__trending_t").on("scroll",function(){varcur=$(this).scrollLeft();varmax=$(this)[0].scrollWidth-$(this).width();$('#content-trending-ts#scroll_right').removeClass('disabled');$('#content-trending-ts#scroll_left').removeClass('disabled');if(cur==0){$('#content-trending-ts#scroll_left').addClass('disabled');}elseif(cur>=(max-5)){$('#content-trending-ts#scroll_right').addClass('disabled');}});$(".wrapper__trending_t").trigger("scroll");}$('#follow').on('click','a',function(){vartitle=$(this).attr('data-title');window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'generalEvent','eventCategory':'follow','eventAction':'footer','eventLabel':title,});});(function(w,d,s,o,f,js,fjs){w['IDNADS']=o;w[o]=w[o]||function(){(w[o].q=w[o].q||[]).push(arguments,f)};js=d.createElement(s),fjs=d.getElementsByTName(s)[0];js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);}(window,document,'script','mw','ads.idn.media/script.js'));mw('IDNTimes','Homepe','Desktop',[]);$(document).ready(function(){varcategory_slug='all'if(category_slug=='all'){category_slug=null}$.ajax({url:"/ajax/latest-news-homepe",type:"GET",dataType:"json",data:{category:category_slug,iteration:''},complete:function(data){if(data.responseText===''){$('#skeleton-latest-articles.skeleton-all').hide();returnfalse;}$('#skeleton-latest-articles.skeleton-all').hide();$('#related-articles-all').append(data.responseText);$('#latest-list').appear();returntrue;}});});$(document).ready(function(){varcategory_slug='news'if(category_slug=='all'){category_slug=null}$.ajax({url:"/ajax/latest-news-homepe",type:"GET",dataType:"json",data:{category:category_slug,iteration:'1'},complete:function(data){if(data.responseText===''){$('#sThe Voice of Millennials and Gen Zkeleton-latest-articles.skeleton-news').hide();returnfalse;}$('#skeleton-latest-articles.skeleton-news').hide();$('#related-articles-news').append(data.responseText);$('#latest-list').appear();returntrue;}});});$(document).ready(function(){varcategory_slug='hype'if(category_slug=='all'){category_slug=null}$.ajax({url:"/ajax/latest-news-homepe",type:"GET",dataType:"json",data:{category:category_slug,iteration:'2'},complete:function(data){if(data.responseText===''){$('#skeleton-latest-articles.skeleton-hype').hide();returnfalse;}$('#skeleton-latest-articles.skeleton-hype').hide();$('#related-articles-hype').append(data.responseText);$('#latest-list').appear();returntrue;}});});$(document).ready(function(){varcategory_slug='life'if(category_slug=='all'){category_slug=null}$.ajax({url:"/ajax/latest-news-homepe",type:"GET",dataType:"json",data:{category:category_slug,iteration:'3'},complete:function(data){if(data.responseText===''){$('#skeleton-latest-articles.skeleton-life').hide();returnfalse;}$('#skeleton-latest-articles.skeleton-life').hide();$('#related-articles-life').append(data.responseText);$('#latest-list').appear();returntrue;}});});$(document).ready(function(){varcategory_slug='trel'if(category_slug=='all'){category_slug=null}$.ajax({url:"/ajax/latest-news-homepe",type:"GET",dataType:"json",data:{category:category_slug,iteration:'4'},complete:function(data){if(data.responseText===''){$('#skeleton-latest-articles.skeleton-trel').hide();returnfalse;}$('#skeleton-latest-articles.skeleton-trel').hide();$('#related-articles-trel').append(data.responseText);$('#latest-list').appear();returntrue;}});});$(document).ready(function(){getTrendings();});functiongetTrendings(){$.ajax({//url:"/ajax/sidebar-trending-news",url:"/ajax/sidebar-trending-news",type:"GET",dataType:"json",complete:function(data){if(data.responseText===''){stopload=true;$('#skeleton-popular').hide();returnfalse;}$('#sidebar-recommendation#skeleton-popular').hide();$('#sidebar-recommendation').append(data.responseText);returntrue;}});};$(document).ready(function(){consttoken=$(document).find('meta[name="csrf-token"]').attr('content');consturl=$(document).find('#component-account').attr('data-url-account-status');$.ajax({url:url,type:"GET",xhrFields:{withCredentials:true},data:{"_token":token},success:function(result){if(result.status=='success'){$(document).find('#component-account').html(result.data.component);}}});});$(document).on('click',".follow-user-qna",function(event){event.preventDefault();varaction="/follow";vartarget_username=$(this).data('username');varformData=newFormData();formData.append('target_username',target_username);varclassUsername=".follow-user-qna-"+target_username;var$followButton=$(classUsername);$.ajax({type:"POST",url:action,headers:{'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')},data:formData,contentType:false,processData:false,//dataType:'text',cache:false,complete:function(data){data=$.parseJSON(data.responseText);if(data.is_following==true){alert("SuksesFollow");$followButton.html('UnfollowAccount');}else{alert("SuksesUnfollow");$followButton.html('FollowAccount');}}});})$(document).on('click',".delete-qna",function(event){event.preventDefault();varaction=$(this).data('action');varconfirmation=confirm("Apakahandayakininginmenghapus?");if(confirmation==true){$.ajax({type:"DELETE",url:action,headers:{'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')},contentType:false,processData:false,//dataType:'text',cache:false,complete:function(data){data=$.parseJSON(data.responseText);if(data.status==200){alert("SuksesMenghapus");window.location.replace(data.redirect);}else{alert("Galmenghapus");}}});}})//Menambahkanheadercampaign,jikaada$(document).ready(function(){constselector=$('ul.nigation');$.ajax({url:"/ajax/nbar/campaigns",type:"GET",data:{'_token':"2nGc29AQBTxvcf2W9h26hIGi9LvjXy7sm9seIi6Q"},success:function(result){varcampaign_slot=[];result.campaigns.forEach((campaign)=>{constnow=newDate();conststartDate=newDate(campaign.date.start);constendDate=newDate(campaign.date.end);if(startDate=now){campaign_slot.push(''+campaign.name+'');}});if(campaign_slot.length){selector.prepend(campaign_slot)}}});}); if(window.isAllowAddressByRegion){dataLayer.push({'event':'total_site_traffic','lotameDomain':'','lotameGender':'','lotamee':'',});}