site Internet:RCTI+ - Satu Aplikasi, Semua Hiburanteneur
RCTI+-Superapp{"@context":"schema.org","@type":"WebSite","name":"RCTIPLus","alternateName":"RCTI+","url":""}{"@context":"schema.org","@type":"WebSite","url":"","potentialAction":[{"@type":"SearchAction","target":"/explores/keyword?q={search_term_string}","query-input":"requiredname=search_term_string"},{"@type":"SearchAction","target":"/news/search?keyword={search_term_string}","query-input":"requiredname=search_term_string"}]}{"@context":"schema.org","@type":"Organization","name":"RCTI+-Superapp","alternate":"rctiplus","url":"","logo":"/assets/ime/elements/svgv3/logo-n-rcti.svg","sameAs":["/RCTIPlusOfficial","twitter.com/RCTIPlus","/company/rctiplus","/rctiplusofficial","/c/RCTIPLUSOFFICIAL","/@rctiplusofficial","id.wikipedia.org/wiki/RCTI%2B","/search?q=rctiplus&kponly&kgmid=%2Fg%2F11k0mrm59p"]}(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+'>m_auth=bo364VFvv-awdeFc2S8KmA>m_preview=env-2>m_cookies_win=x';f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WJNRTJP');window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','G-JR2L0ZYPG7');window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','UA-1-17');functiontoIsoString(date){vartzo=-date.getTimezoneOffset(),dif=tzo>=0?'+':'-',pad=function(num){return(numo.key==='content_id')?objConviva.find(o=>o.key==='content_id').value:'N/A';letasset_name=objConviva.find(o=>o.key==='asset_name')?objConviva.find(o=>o.key==='asset_name').value:'N/A';letprogram_id=objConviva.find(o=>o.key==='program_id')?objConviva.find(o=>o.key==='program_id').value:'N/A';letprogram_name=objConviva.find(o=>o.key==='program_name')?objConviva.find(o=>o.key==='program_name').value:'N/A';letclassification=objConviva.find(o=>o.key==='classification')?objConviva.find(o=>o.key==='classification').value:'N/A';letprogram_type=objConviva.find(o=>o.key==='program_type')?objConviva.find(o=>o.key==='program_type').value:'N/A';letgenre=objConviva.find(o=>o.key==='genre')?objConviva.find(o=>o.key==='genre').value:'N/A';letcontent_category=objConviva.find(o=>o.key==='content_category')?objConviva.find(o=>o.key==='content_category').value:'N/A';letcontent_type=objConviva.find(o=>o.key==='content_type')?objConviva.find(o=>o.key==='content_type').value:'N/A';letis_login=objConviva.find(o=>o.key==='is_login')?objConviva.find(o=>o.key==='is_login').value:'N/A';letis_premium=objConviva.find(o=>o.key==='is_premium')?objConviva.find(o=>o.key==='is_premium').value:'N/A';lettv_id=objConviva.find(o=>o.key==='tv_id')?objConviva.find(o=>o.key==='tv_id').value:'N/A';lettv_name=objConviva.find(o=>o.key==='tv_name')?objConviva.find(o=>o.key==='tv_name').value:'N/A';letsite=objConviva.find(o=>o.key==='site')?objConviva.find(o=>o.key==='site').value:'N/A';letjsonObj={event_category:'video_interaction',event_action:'video_click_content_list',event_label:obj.title,content_id:content_id,content_name:obj.title,content_type:content_type,content_category:content_category,program_id:program_id,program_name:program_name,classification_id:'not_ailable',classification:classification,cluster_id:'not_ailable',cluster_name:'not_ailable',channel_owner_id:tv_id,channel_owner:tv_name,genre_level_1:genre,genre_level_2:'not_ailable',season_number:'not_ailable',episode_number:'not_ailable',pillar:'video',is_premium:is_premium,};letevent_name='click_short_content';if(typeStory=='story'){event_name='homepe_story_clicked';}gaTracking(event_name,jsonObj);}functioncategoryTracking(categoryId,categoryName,eventName){letjsonObj={event_category:'video_interaction',event_label:categoryName,pillar:'video',};if(eventName=='subcategory_click'){jsonObj.subcategory_id=categoryId;jsonObj.subcategory_name=categoryName;jsonObj.event_action='click_subcategory_list';}else{jsonObj.category_id=categoryId;jsonObj.category_name=categoryName;jsonObj.event_action='click_category_list';}gaTracking(eventName,jsonObj);}functionvideoLineupTracking(obj,clusterName){constobjData=JRCTI+ - Satu Aplikasi, Semua HiburanSON.parse(obj);if(objData.content_type=="clip"){}elseif(objData.content_type=="radio"||objData.content_type=="live_music"||objData.content_type=="live_radio"){}elseif(objData.content_type=="program"){programTracking(objData,clusterName);}elseif(objData.content_type=="special"){specialTracking(objData,clusterName);}else{contentTracking(objData,clusterName);}}functionspecialTracking(objData,clusterName){constobjDetail=objData.content_type_detail.detail.data;letjsonObj={event_category:'video_interaction',event_actRCTI+ - Satu Aplikasi, Semua Hiburanion:'video_special_event_banner',event_label:objDetail.title,content_id:objDetail.id,content_name:objDetail.title,content_type:'video|'+objData.content_type,cluster_name:clusterName.replaceAll("-",""),pillar:'general',};gaTracking('homepe_special_event_clicked',jsonObj);}functionprogramTracking(objData,clusterName){constobjDetail=objData.content_type_detail.detail.data;letjsonObj={event_category:'video_interaction',event_action:'video_click_program_list',event_label:objDetail.title,program_id:objDetail.id,program_name:objDetail.title,classification_id:'not_ailable',classification:'not_ailable',cluster_id:'not_ailable',cluster_name:clusterName.replaceAll("-",""),channel_owner_id:'not_ailable',channel_owner:'not_ailable',genre_level_1:'not_ailable',genre_level_2:'not_ailable',season_number:'not_ailable',episode_number:'not_ailable',pillar:'video',is_premium:objDetail.premium=="0"||objDetail.premium==false?"no":"yes",};gaTracking('homepe_program_clicked',jsonObj);}functioncontentTracking(objData,clusterName){constobjDetail=objData.content_type_detail.detail.data;letjsonObj={event_category:'video_interaction',event_action:'video_click_content_list',event_label:objDetail.title,content_id:objDetail.id,content_name:objDetail.title,content_type:`video|${objData.content_type}`,content_category:(objData.content_type=='live_event'||objData.content_type=='live_tv'?'live':'VoD'),program_id:objDetail.id,program_name:objDetail.title,classification_id:'not_ailable',classification:'not_ailable',cluster_id:'not_ailable',cluster_name:clusterName.replaceAll("-",""),channel_owner_id:'not_ailable',channel_owner:'not_ailable',genre_level_1:'not_ailable',genre_level_2:'not_ailable',season_number:'not_ailable',episode_number:'not_ailable',pillar:'video',is_premium:objDetail.premium=="0"||objDetail.premium==false?"no":"yes",};gaTracking('homepe_content_clicked',jsonObj);}functionsearchTracking(){letjsonObj={event_category:'menu_nbar_tracking',event_action:'click_go_to_search',event_label:'search_bar',pillar:'general'};gaTracking('search_clicked',jsonObj);}varusercToken;varspecificCookieValue;vardataUserC;functiongetCookie(cookieName){varname=cookieName+"=";vardecodedCookie=decodeURIComponent(document.cookie);varcookieArray=decodedCookie.split(';');for(vari=0;iHistorySearchRecommendationforyouTiktokAwards2024SpotifyWrappedLiveIndonesia2024AFFASEANChampionsip2024AmnesiaRomansaTheCue10-BallInternationalOpen2024varisClickOutside=false;functionclickOutside(){if(isClickOutside==true){document.getElementById("q").value="";$('#ModalSeach').modal('hide');}isClickOutside=true;}functionclickInsideModal(){isClickOutside=false;}functioninit(){constcurrentHistory=JSON.parse(localStore.getItem('search-history'));if(currentHistory?.length>0){document.getElementById('history-search-box').style="";html="";currentHistory.forEach(el=>{html+=`${el}Delete`});document.getElementById('history-search-box-items').innerHTML=html;}}init();functiondeleteSearchItem(item){constcurrentHistory=JSON.parse(localStore.getItem('search-history'));letnewHistory=[];if(currentHistory?.length>1){newHistory=currentHistory.filter((hs)=>hs!=item)}else{document.getElementById('history-search-box').style="display:none;";document.getElementById('history-search-box-items').innerHTML="";}localStore.setItem('search-history',JSON.stringify(newHistory));if(newHistory.length>0)init();}functiononSearchInputChange(e){if(!e.value){document.getElementById("clear-search").style="display:none;";document.getElementById("src-icn-wrapper").classList.remove("justify-content-around");document.getElementById("src-icn-wrapper").classList.add("justify-content-end")}else{document.getElementById("clear-search").style="";document.getElementById("src-icn-wrapper").classList.remove("justify-content-end");document.getElementById("src-icn-wrapper").classList.add("justify-content-around");}}functionclearSearchInput(e){e.style="display:none;";document.getElementById("src-icn-wrapper").classList.remove("justify-content-around");document.getElementById("src-icn-wrapper").classList.add("justify-content-end");document.getElementById("q").value="";}functiononSearch(e){constsrcinput=document.getElementById('q');if(escaltionEscp(srcinput.value)){alert("Keywordyangandamasukansalah!");returnfalse;}if(srcinput.value?.length0){letnewHistory=currentHistory;constitemIdx=newHistory.findIndex(el=>el==srcinput.value);if(newHistory!=-1){newHistory=newHistory.filter((el,i)=>i!=itemIdx);}if(newHistory.length>2)newHistory=newHistory.slice(1);newHistory.push(srcinput.value);localStore.setItem('search-history',JSON.stringify(newHistory));}else{consthistory=[srcinput.value];localStore.setItem('search-history',JSON.stringify(history));}consths=JSON.parse(localStore.getItem('search-history'));document.location='/search?q='+srcinput.value;returnfalse;}functionescaltionEscp(str){varregex=/[650?-5:15,right:40})$('#ModalProfile').modal('show');};functionappierRadioEventClick(){qg("event","radio_menu_button_clicked");};functionappierHotEventClick(){qg("event","hot_menu_button_clicked");};functionappierGamesEventClick(){qg("event","games_menu_button_clicked");};$(document).ready(function(){varsubmitIcon=$('.searchbox-icon');varcloseIcon=$('.close-icon');varinputBox=$('.searchbox-input');varsearchBox=$('.searchbox');varrecommendation=$('.recommendation');varisOpen=false;closeIcon.click(function(){inputBox.val('');inputBox.hide();searchBox.removeClass('searchbox-open');$('.close-icon').css('display','none');$('.searchbox-icon').css('display','block');returnfalse;})submitIcon.click(function(){if(isOpen==false){searchBox.addClass('searchbox-open');recommendation.show();inputBox.focus();inputBox.show()isOpen=true;}else{recommendation.hide();searchBox.removeClass('searchbox-open');inputBox.focusout();inputBox.hide()isOpen=false;}});submitIcon.mouseup(function(){returnfalse;});searchBox.mouseup(function(){returnfalse;});$(document).mouseup(function(){if(isOpen==true){$('.searchbox-icon').css('display','block');submitIcon.click();}});});functionbuttonUp(){varinputVal=$('.searchbox-input').val();inputVal=$.trim(inputVal).length;if(inputVal!==0){$('.searchbox-icon').css('display','none');$('.close-icon').css('display','block');}else{$('.searchbox-input').val('');$('.searchbox-icon').css('display','block');$('.close-icon').css('display','none');}}functionopenSearchModal(){searchTracking();$('#ModalSeach').modal('show');setTimeout(()=>{$(".searchbox-input").focus();},500)}functionisURLWithDomainOrSegment(){letstr=newURL(window.location.href);varisUrlencoded=/%[0-9A-Fa-f]{2}/.test(str);if(isUrlencoded){str=decodeURIComponent(str);}vardomainURLRegex=/^(?:\/\/)?[a-z0-9.-]+\.[a-z]{2,}(\/.*)?$/i;varsegmentRegex=/^\/.*$/;pathname=str.pathname==='/'?'home':str.pathnamereturnpathname;}functionclickPillarMenu(typeMenu){leteventName=''leteventLabel=''if(typeMenu==='home'){eventName='home_menu_button_clicked';eventLabel='home'}elseif(typeMenu==='live'){eventName='bottom_menu_clicked';eventLabel='live'}elseif(typeMenu==='short'){eventName='bottom_menu_clicked';eventLabel='short'}elseif(typeMenu==='videoplus'){eventName='video_button_menu_clicked'eventLabel='Video+'}elseif(typeMenu==='news'){eventName='news_menu_button_clicked'eventLabel='News+'}elseif(typeMenu==='audio'){eventName='radio_menu_button_clicked'eventLabel='Audio+'}elseif(typeMenu==='hot'){eventName='hot_menu_button_clicked'eventLabel='Hot+'}elseif(typeMenu==='games'){eventName='games_menu_button_clicked'eventLabel='Games+'}letjsonObj={pillar:'general',origin:originLabel,event_category:'pillar_menu',event_action:'click_pillar_menu',event_label:eventLabel,user_id:"RCTI+"+"",client_id:'G-JR2L0ZYPG7',date_time:toIsoString(newDate())}clickPillarMenuForGA(eventName,jsonObj)}varlastStoryAdIndex=0;functionloadStory(){constcategoryId="";constqueryCatId=!!categoryId?'?categoryId='+categoryId:'';varidStr=!!categoryId?'StoryHomeTop'+categoryId:'StoryHomeTop';window.googlet=window.googlet||{cmd:[]};letisGPTRunning=false;$.ajax({url:"/getStories"+queryCatId,dataType:'JSON',beforeSend:function(){letkeysToRemove=["listStory"+idStr,"listStoryTrue"+idStr,"listValidAds"+idStr,"wrapperStory"+idStr];for(keyofkeysToRemove){localStore.removeItem(key);}},success:asyncfunction(res){varStorEl='';varime_path=res.data.stories.meta.ime_path;varlistUniqueSlotGptId=[];letisGPTExistBefore=false;letstoriesData=res.data.stories.data;letlistAdsSlotRendered=[];consttimeOut=nigator?.connection?.effectiveType=="4g"?500:1000;storiesData.forEach((s,i)=>{varPathiImg='/assets/ime/elements/svg/rcti-plus-lazy.svg'if(s.program_img){PathiImg=ime_path+'300'+s.program_img;}StorEl+=`${s.title}`StorEl+=``StorEl+=""if(s.gpt?.length==0){isGPTRunning=true;}if(!isGPTExistBefore){s.gpt.map(async(sa)=>{if(!isGPTExistBefore){if(!listUniqueSlotGptId?.includes(sa.div_gpt)){listUniqueSlotGptId.push(sa.div_gpt);}else{isGPTExistBefore=true;}}})}})$('#loading-content-st').hide();$('#loading-content-ct').hide();$('#home-category-wrapper').show();if(storiesData.length8){$('#sw-sht-7').hide();document.getElementById("sw-sht").innerHTML=StorEl;$('#sw-sht').show();}lastStoryAdIndex=Math.ceil(listUniqueSlotGptId.length/3)awaitstoriesData.map(async(s,i)=>{if(i{letslot=null;awaitgooglet.cmd.push(function(){slot=googlet.defineSlot(sa.path,['fluid'],sa.div_gpt)?.addService(googlet.pubads());googlet.pubads().enableSingleRequest();googlet.pubads().collapseEmptyDivs();googlet.enableServices();isGPTRunning=true;listAdsSlotRendered.push(slot);});conststoryAdEl=document.createElement('div');storyAdEl.id=sa.div_gpt;storyAdEl.style=`width:0px!important;height:0px!important;display:none!important;`;document.getElementById(`program_id(${s.program_id})`).append(storyAdEl);googlet.cmd.push(function(){googlet.display(sa.div_gpt);});})}})varrecValid;asyncfunctionproccesValidation(){if(!!recValid)clearTimeout(recValid)if(isGPTRunning==true){awaitsetTimeout(async()=>{letlistValidAds=JSON.parse(localStore.getItem("listValidAds")||"{}");storiesData=storiesData.map((s,index)=>{constwrapperStoryAdIdTemp=`program_id(${s.program_id})`;constiframeAds=document?.getElementById(wrapperStoryAdIdTemp)?.querySelectorAll("iframe")||[];letgpt=[];if(iframeAds?.length>0){iframeAds.forEach((ifAd)=>{letpathAd=ifAd.id?.replace("google_ads_iframe_","")pathAd=pathAd.substr(0,pathAd.length-2)listValidAds[pathAd]=true;})}gpt=s?.gpt?.filter(sa=>{returnlistValidAds?.hasOwnProperty(sa?.path)})return{...s,index,isRead:false,gpt,totalAds:gpt.length}})letlistStory=localStore.getItem("listStory"+idStr);if(listStory?.length>0){listStory=JSON.parse(listStory);listStory[idStr]=storiesData}else{listStory={[idStr]:storiesData};}localStore.setItem("listValidAds",JSON.stringify(listValidAds))window.googlet.destroySlots(listAdsSlotRendered);localStore.setItem("listStory"+idStr,JSON.stringify(listStory));localStore.setItem("baseUrlStory"+idStr,JSON.stringify(res.data.stories.meta.ime_path));localStore.setItem("wrapperStory"+idStr,JSON.stringify("sw-sht"));$(".story-hiden").remove()},timeOut)}else{recValid=setTimeout(()=>{proccesValidation();},500)}}proccesValidation();if(storiesData?.length>8){newSwiper('.swiper-sht',{slidesPerView:'auto',spaceBetween:8,slidesPerGroup:4,loop:false,loopFillGroupWithBlank:false,simulateTouch:true,})}}});}functionrRCTI+ - Satu Aplikasi, Semua HiburaneArrangeStoryData(idStory,oldListStory,currentStory,wrapperStory){conststoryReaded=currentStory.filter((item)=>item.isRead==true)conststoryUnRead=currentStory.filter((item)=>item.isRead==false)storyReaded.sort(function(itemA,itemB){returnitemA.index-itemB.index});storyUnRead.sort(function(itemA,itemB){returnitemA.index-itemB.index});constnewStory=storyUnRead.concat(storyReaded);letnewListStory={oldListStory,[idStory]:newStory,};localStore.setItem("listStory"+idStory,JSON.stringify(newListStory));reArrangeStoryElement(newStory,wrapperStory,idStory)}functionreArrangeStoryElement(dataStory,wrapperStory,idStory){letStorEl='';if(wrapperStory=="sw-sht"){dataStory.forEach((s,i)=>{varPathiImg='/assets/ime/elements/svg/rcti-plus-lazy.svg'if(s.program_img){PathiImg=JSON.parse(localStore.getItem("baseUrlStory"+idStory))+'300'+s.program_img;}varseen='';if(s.isRead){varseen='seen';}StorEl+=`${s.title}`})}else{dataStory.forEach((s,i)=>{varseen='';if(s.isRead){varseen='seen';}varPathiImg='/assets/ime/elements/svg/rcti-plus-lazy.svg'if(s.program_img){PathiImg=JSON.parse(localStore.getItem("baseUrlStory"+idStory))+'300'+s.program_img;}StorEl+=`${s.title}`})}document.getElementById(wrapperStory).innerHTML=StorEl;}functionshowStory(el){const[idStory,i,index]=el.id.split("-")activeStoryIdx=i;activeId=idStory;indexStory=indexconsttimeOut=nigator?.connection?.effectiveType=="4g"?500:1000;constlistStory=JSON.parse(localStore.getItem("listStory"+idStory))||{}localStore.removeItem("sourceStory");localStore.setItem("sourceStory",'story')$('#modalStory').modal('show');if(!listStory?.hasOwnProperty(activeId)){setTimeout(()=>onloadStoryDetail(),((lastStoryAdIndex??3)+1)*timeOut)}else{setTimeout(()=>onloadStoryDetail(),200)}}loadStory();constElWrap=document.getElementById("home-category-wrapper");constcategoryId="";functionloadCategories(){$.ajax({url:"/getCategories",dataType:'JSON',data:{categoryId},success:function(res){if(res?.data?.categories?.status?.code===0){ElWrap.style="display:flex;";letelItems='';res.data.categories.data.forEach((el)=>{constbaseUrlIcon=res.data.categories.meta.ime_path;lettargetUrl="/category/category_id/category_slug";constmapObj={category_id:el.id,category_slug:convertCategorySlug(el.name)};str=targetUrl.replace(/\b(?:category_id|category_slug)\b/gi,matched=>mapObj[matched]);elItems+=`${el.name}`});ElWrap.innerHTML=elItems;controlCategoriesSlider(res.data.categories.data?.length)}elseif(res?.data?.sub_categories?.status?.code===0){ElWrap.style="display:flex;";letelItems='';res.data.sub_categories.data.forEach((el)=>{constbaseUrlIcon=res.data.sub_categories.meta.ime_path;lettargetUrl="/category/category_id/category_slug";constmapObj={category_id:el.id,category_slug:convertCategorySlug(el.name)};str=targetUrl.replace(/\b(?:category_id|category_slug)\b/gi,matched=>mapObj[matched]);elItems+=`${el.name}`});ElWrap.innerHTML=elItems;controlCategoriesSlider(res.data.sub_categories.data?.length)}else{ElWrap.style="display:none;";}}});}loadCategories();functionconvertCategorySlug(Text){returnText.toLowerCase().replace(//g,'-').replace(/[^\w-]+/g,'');}varisTouch=(('ontouchstart'inwindow)||(nigator.msMaxTouchPoints>0));if(isTouch){$('.swiper-button-next').css('display','none');}functionsliderCategory(){newSwiper('#sweeper-hc',{slidesPerView:'auto',spaceBetween:5,slidesPerGroup:5,loop:false,loopFillGroupWithBlank:false,simulateTouch:true,nigation:{nextEl:'.swiper-button-nexthc',prevEl:'.swiper-button-prevhc',},})}functioncontrolCategoriesSlider(totalEl=0){if(totalEl{varelCat=document.getElementsByClassName("category-container");controlCategoriesSlider(elCat?.length??0)})functioncheckAllElementShowed(totalEl,widthEl){letcontainerWidth=window.innerWidth-160;lettotalWidthEl=totalEl*widthEl;returncontainerWidth>totalWidthEl;}functionuniqueSwiperCategory(){constswiperruniqueswip=newSwiper('.ct-swiper-uniqueswip',{slidesPerView:'auto',spaceBetween:10,slidesPerGroup:5,loop:false,loopFillGroupWithBlank:false,slidesPerColumnFill:'row',nigation:{nextEl:'.swiper-button-nextuniqueswip',prevEl:'.swiper-button-prevuniqueswip',},});}closeTVTerpopulerfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}LiveIndonesianIdolXIIIfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}X-IstfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TayanganSportUnggulanfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}SerialTVPilihanfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TayanganForitHariInifunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}BiliardDuyaKunLeuefunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TayanganOlahraPilihanfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}CaraBerlanggananPaketTimnasfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}BeliPaketBeINSportfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}-X"usestrict";varisPauseVideo=false;varintervalId;varconvivaParams;functionhandleVideoCategory(conviva_params){constasPath=window.location.href;letdatideoCategory={content_category:getValueByKey("content_category",conviva_params),content_type:getValueByKey("content_type",conviva_params),};returnconvertToString(datideoCategory);}consthandleVideoId=(conviva_params)=>{constasPath=window.location.href;letdatideoId={content_id:getValueByKey("content_id",conviva_params),program_id:getValueByKey("program_id",conviva_params),};returnconvertToString(datideoId);};consthandleVideoName=(conviva_params)=>{constasPath=window.location.href;letdatideoName={asset_name:getValueByKey("asset_name",conviva_params),program_name:getValueByKey("program_name",conviva_params),};returnconvertToString(datideoName);};consthandleDataAttribute=(conviva_params)=>{constasPath=window.location.href;letdataAttribute={};dataAttribute={pillar:"video",program_type:getValueByKey("program_type",conviva_params),genre:getValueByKey("genre",conviva_params),publisher_name:getValueByKey("tv_name",conviva_params),publisher_id:getValueByKey("tv_id",conviva_params),cluster_name:getValueByKey("cluster_name",conviva_params),classification:getValueByKey("classification",conviva_params),is_login:convertBooleanToYesOrNo(getValueByKey("is_login",conviva_params)),partner:"NA",is_premium:convertBooleanToYesOrNo(getValueByKey("is_premium",conviva_params)),app_name:"RCTI+WEB",origin:"NA",pe_menu:"NA",campaign:"NA",site:getValueByKey("site",conviva_params),};console.log("dataAttribute",dataAttribute)returnconvertToString(dataAttribute);};constconvertBooleanToYesOrNo=(condition)=>{constnormalizedCondition=String(condition).toLowerCase();if(normalizedCondition==="true"||normalizedCondition==="yes"){return"yes";}return"no";};constsetUser=(user_id)=>{if(user_id){window.setUserID(user_id)}}constsetAppVersion=(app_ver)=>{if(app_ver){window.setAppVer(app_ver);}}constsetDuuid=(app_ver)=>{if(app_ver){window.setDUUID(app_ver);}}constvideoDurationMNCAnalityc=(duration)=>{if(window){window.videoDuration(duration);}}constvideoBitrateMNCAnalityc=(bitrate)=>{if(window){window.videoBitrate(bitrate);}}constvideoOnBufferMNCAnalityc=()=>{if(window){logingMNCAnalityc("inivideoonbuffer")this.isPauseVideo=false;window.videoOnBuffer();}}constvideoOnPlayMNCAnalityc=()=>{if(window){window.videoOnPlay();}}constvideoOnSeekMNCAnalityc=(position)=>{if(window){logingMNCAnalityc("inivideoonseeking")window.videoOnSeek(position);}}constvideoOnPauseMNCAnalityc=()=>{if(window){logingMNCAnalityc("videoOnPauseMNCAnalityc")this.isPauseVideo=true;window.videoOnPause();clearInterval(intervalId);}}constvideoOnCompleteMNCAnalityc=()=>{if(window){window.videoOnComplete();}}constvideoUnloadMNCAnalityc=()=>{if(window){window.videoUnload();}}constvideoErrorMNCAnalityc=(messe)=>{if(window){window.videoError(messe);videoUnloadMNCAnalityc()}}constvideoAdPlayMNCAnalityc=(t)=>{if(window){videoOnPauseMNCAnalityc()window.videoAdPlay(t);}}constvideoAdClickMNCAnalityc=(t)=>{if(window){window.videoAdClick(t);}}constvideoAdSkippedMNCAnalityc=(t)=>{if(window){window.videoAdSkipped(t);}}constvideoAdPauseMNCAnalityc=(t)=>{if(window){window.videoAdPause(t);}}constvideoAdCompleteMNCAnalityc=(t)=>{if(window){window.videoAdComplete(t);}}constvideoAdErrorMNCAnalityc=(t,messe)=>{if(window){window.videoAdError(t,messe);}}constgetValueByKey=(key,conviva_params)=>{if(key==="cluster_name"){consturlParams=newURLSearchParams(window.location.search);constmyParam=urlParams.get(key);returnmyParam?myParam:"NA";}constfoundItem=conviva_params.find((item)=>item.key===key);returnfoundItem?foundItem.value!="N/A"?foundItem.value:"NA":"NA";}constthrowErr=(messe)=>{Exception.TypeError(messe);};constthrowMesse=(messe)=>{debug?console.log('[MncAnalitycInstance]::'+messe):null;};constvalidationDataObject=(params,messe)=>{validationDataUndefined(params,messe)if(typeofparams!=='object'){throwErr(messe+"failedinitfunctionbecauseparamsnotobject")returnfalse;}}constvalidationDataString=(params,messe)=>{validationDataUndefined(params,messe)if(typeofparams!=='string'){throwErr(messe+"failedinitfunctionbecauseparamsnotstring")returnfalse;}}constvalidationDataUndefined=(params,messe)=>{if(typeofparams==='undefined'){throwErr(messe+"failedinitfunctionbecauseparamscannotundefined")returnfalse;}}constinitSDKMNCAnalitycLibrary=(client,domain)=>{window.initSdk(client,domain);}constsetEnvironmentProductionMNCAnalitycLibrary=()=>{if("production"==="development"){window.setEnvironmentProduction(false);}elseif("production"==="production"){window.setEnvironmentProduction(true);}else{window.setEnvironmentProduction("production");}}constvideoLoadMNCAnalitycLibraryvideoLoad=(videoCategories,videoId,videoName,videoAttributes,videoTs,videoTypeSend)=>{window.videoLoad(videoCategories,videoId,videoName,videoAttributes,videoTs,videoTypeSend);}constconvertToString=(objectData)=>{letformattedString="";Object.keys(objectData).forEach((key,index,array)=>{formattedString+=objectData[key];if(index{if(window){letinitiationValue=1;window.videoOnPlay()logingMNCAnalityc(isLive?"islivebenar":"islivesalah")if(initiationValue===1){if(isLive){window.videoOnPlaying(initiationValue)}else{window.videoOnPlaying(initiationValue)}initiationValue+=1}intervalId=setInterval(()=>{if(isLive){logingMNCAnalityc("iniintervaldidalamlive")window.videoOnPlaying(1)}else{console.log('videocekvideoonplayingnotislive=====',player.currentTime)window.videoOnPlaying(player.currentTime)}initiationValue+=1},);logingMNCAnalityc({"intervalId":intervalId})}}constlogingMNCAnalityc=(messe)=>{console.log("mncavideoMeasured_",messe)}PrivacyPolicyTerms&ConditionsContactUsnewSwiper('.swiper-container-footer',{slidesPerView:3,slidesPerGroup:3,nigation:{nextEl:'.swiper-button-next-footer',prevEl:'.swiper-button-prev-footer',},})functionappierAndroidClick(){qg("event","web_clicked_on_Android_app",{"Playstore_URL":window.location.href,});}functionappierIOSClick(){qg("event","web_clicked_on_iOS_app",{"Appstore_URL":window.location.href,});}functionappierGalleryClick(){qg("event","web_clicked_on_Gallery_app",{"Appgallery_URL":window.location.href,});}functionappierMistoreClick(){qg("event","web_clicked_on_MiStore",{"Mistore_URL":window.location.href,});}functionappierOppostoreClick(){qg("event","web_clicked_on_OppoStore",{"Oppostore_URL":window.location.href,});}functionappierGalaxystoreClick(){qg("event","web_clicked_on_GalaxyStore",{"Galaxystore_URL":window.location.href,});}functionappierVappstoreClick(){returnfalse;}varbackButtonTop=document.getElementById("btn-back-to-top");varbannerList=[];varbannerIdx=0;varcountBanner=0;varindexBanner=0;varindexBannerMinus=0;varprevBut=false;$(window).resize(()=>{reStylingBottomBoxPosition();})functionpremiumModal(){$('.premium-popup').addClass('is-visible');$('.premium-popup').css('display','block');}functionreStylingBottomBoxPosition(){constslickEl=document.getElementsByClassName("slick-dots");varel=$(".slick-dots");if(el?.length>0){varoffset=el.offset();varposY=offset.top-$(window).scrollTop();varposX=offset.left-$(window).scrollLeft();$("#bottom-box").css({"top":`${offset.top-130}px`,'left':`${offset.left}px`,"position":"absolute"});}}$(document).ready(function(){$('.premium-popup').on('click',function(event){if($(event.target).is('.close-premium')||$(event.target).is('.premium-popup')){event.preventDefault();$(this).removeClass('is-visible');$('.premium-popup').css('display','block');}});$(window).scroll(function(){if((window.innerHeight+window.peYOffset)>=document.body.offsetHeight){$('#btn-back-to-top').css('transition-duration','2s');$('#btn-back-to-top').css('bottom','138px');}else{$('#btn-back-to-top').css('bottom','24px');}if($(window).scrollTop()>100){$('n').removeClass('transparent-background');$('.nbar').css('background-color','#1D1D1D');backButtonTop.style.display="block";}else{$('n').addClass('transparent-background');$('.nbar').css('background-color','transparent');backButtonTop.style.display="none";}});window.onload=function(){document.getElementById('close').onclick=function(){$('.sticky-ads').fadeOut();varold_close_total=$('.sticky-ads').data('close');varnew_close_total=parseInt(old_close_total+1);$('#sticky-ads').attr('data-close',new_close_total);returnfalse;};};varisLoadingData;window.onscroll=function(ev){if($(window).scrollTop()>=$(document).height()-$(window).height()&&!isLoadingData){isLoadingData=true;varnumb=$(".ntrend").length;varis_scroll=true;if(current_pe===total_pe){returnfalse;}constcategoryId="";constcategory_slug="";lettargetUrl="/category/category_id/category_slug";constmapObj={category_id:categoryId,category_slug:convertToSlug(category_slug)};strTargetUrl=targetUrl.replace(/\b(?:category_id|category_slug)\b/gi,matched=>mapObj[matched]);varuri='';if(categoryId){uri=strTargetUrl;}else{uri="";}varpe=numb;$('#loading').show();is_scroll=false;$.ajax({url:uri,data:{pe:numb},success:function(html){$("#append").append(html);$('#loading').hide();is_scroll=true;isLoadingData=false;$('.lazy').Lazy({scrollDirection:'vertical',effect:'fadeIn',visibleOnly:true,chainable:false});}});}};});functionconvertToSlug(Text){returnText.toLowerCase().replace(//g,'-').replace(/[^\w-]+/g,'');}functiononClickButtonBanner(){constcurrentBanner=bannerList[bannerIdx];bannerClickedTracking(currentBanner);consturl=currentBanner.type=='url'?currentBanner.external_link:currentBanner.permalink;if(url){if(currentBanner?.type=="special_banner"){window.open(url,'_blank');}else{window.location.href=url;}}else{console.error("Bannerinitidakmemilikilink")}}functioncheckShareLink(sharelink){share_link=sharelink.slice();if(share_link.includes('/globaltv/')){share_link=sharelink.replace('/globaltv/','/gtv/');}returnshare_link;}functionloadTime(time,id){varrilis=newDate(time*1000).getTime();varx=setInterval(function(){varnow=newDate().getTime();vardistance=rilis-now;vardays=Math.floor(distance/(1000*60*60*24));varhours=Math.floor((distance%(1000*60*60*24))/(1000*60*60));varminutes=Math.floor((distance%(1000*60*60))/(1000*60));varseconds=Math.floor((distance%(1000*60))/1000);if(document.getElementById("time"+id)!=null&&document.getElementById("time"+id)!=undefined){document.getElementById("time"+id).innerHTML=days+"d"+hours+"h"+minutes+"m"+seconds+"s";}if(document.getElementById("time")!=null&&document.getElementById("time")!=undefined){document.getElementById("time").innerHTML=days+"d"+hours+"h"+minutes+"m"+seconds+"s";}if(distancemapObj[matched]);if((json.data.banners.data).length!=0){$.each(json.data.banners.data,function(key,value){content+=``;indexStory++;});content+=`SEEMORE`;}else{content=`SEEMORE`;}$('#loader').hide();$('#set-category').show();$('#category-ctn').html(content);uniqueSwiperCategory();}});}functionbackToTop(){document.body.scrollTop=0;document.documentElement.scrollTop=0;}backButtonTop?.addEventListener("click",backToTop);functiongetAppierID(){constvalue=`;${document.cookie}`;constparts=value.split(`;QGUserId=`);if(parts.length===2)returnparts.pop().split(';').shift();}constappierid=getAppierID();letadsFrameDiv='';letisShowAds=true;letadsExist=null;letparentDiv=null;varidBody=document.getElementById("idBody");functionloadAdsParam(){constcategoryId="";constqueryCatId=!!categoryId?'?categoryId='+categoryId:'';$.ajax({url:"/getAdsParam"+queryCatId,dataType:'JSON',success:function(res){letadsPath=res.data.path;letadsDiv=res.data.div_gpt;letsize_width_1=res.data.size_width_1;letsize_height_1=res.data.size_height_1;letsize_width_2=res.data.size_width_2;letsize_height_2=res.data.size_height_2;varrequest_gpt="single";varparam_size='';if(request_gpt=='single'){param_size=[size_width_1,size_height_1];}else{param_size=[[size_width_1,size_height_1],[size_width_2,size_height_2]];}adsFrameDiv='google_ads_iframe_'+adsPath+'_0__container__';idBody.id=adsDiv;leturlParams='';letslugName="";letcategoryName=slugName.replace(/-/g,'%20');if(categoryId){urlParams="api-v2.rctiplus.com/ads/v1/cust-params"+"?platform=web&aid="+appierid+"&home_category="+categoryName;}else{urlParams="api-v2.rctiplus.com/ads/v1/cust-params"+"?platform=web&aid="+appierid;}$.ajax({url:urlParams,dataType:'json',success:function(json){varcustParams=json;if(!!adsDiv){window.googlet=window.googlet||{cmd:[]};googlet.cmd.push(function(){varcheckAdsDiv=document.getElementById(adsDiv);varslot=googlet.defineSlot(adsPath,param_size,adsDiv);if(slot){slot.addService(googlet.pubads());if(custParams.length>0){for(vari=0;i{$('.sticky-ads').css({display:'block',margin:'60pxauto',width:'fit-content',height:'90px',position:'static',left:'0',transform:'translateX(0)'});$('#close').hide();}constputAdToFixBottomPosition=()=>{$('.sticky-ads').css({position:'fixed',left:'50%',transform:'translateX(-50%)',bottom:'35px',zIndex:'',display:'block',margin:'0pxauto',width:'fit-content',height:'90px',});$('#close').css({float:'left',padding:'2px5px',background:'black','z-index':'9999',top:'-28px',right:'0px',cursor:'pointer',opacity:'0.8',border:'1pxsolid#FFFFFF','border-radius':'4px',display:'inline',float:'right'});}consthideAd=()=>{$('.close-btn-ads').hide();$('.wrapper-ads').hide();$('.sticky-ads').hide();}$(window).scroll(function(){varcurrentScroll=$(window).scrollTop();if(adsExist==null){adsExist=document.getElementById(adsFrameDiv);}if(!adsExist||(!!adsExist&&adsExist?.childNodes?.length==0)){hideAd();return;}varclose_total=$('#sticky-ads').attr('data-close');if(currentScroll>=700&&close_total==0){$('#close').show();$('.sticky-ads').fadeIn();putAdToFixBottomPosition();}else{putAdToStaticPosition();}});Youcanonlyopenspecialvideosviamobileapplication!ClosefunctionconvivaJwPlayer(assetName=null,player=null,duration=null,playerUrl=null,ts={},cdn='Anevia',is_live=null){functiongetDeviceMetadata(){vardeviceMetadata={};deviceMetadata[Conviva.Constants.DeviceMetadata.TYPE]=Conviva.Constants.DeviceType.DESKTOP;deviceMetadata[Conviva.Constants.DeviceMetadata.CATEGORY]=Conviva.Constants.DeviceCategory.WEB;returndeviceMetadata;};functiongetDeviceUUID(visitor_id){returnnewDeviceUUID().get(visitor_id);}return{assetName:assetName,player:player,sessionId:null,createSession:function(duration=null){letconvivideoAnalytics=null;if(convivideoAnalytics===null){Conviva.Analytics.init("ff84ae928c3bb76dec08fe59a6f");convivideoAnalytics=Conviva.Analytics.buildVideoAnalytics();window.convivideoAnalytics=convivideoAnalytics;Conviva.Analytics.setDeviceMetadata(getDeviceMetadata());constcontentInfo={};contentInfo[Conviva.Constants.ASSET_NAME]=assetName;contentInfo[Conviva.Constants.PLAYER_NAME]="RCTI+WEB";contentInfo[Conviva.Constants.DURATION]=duration;contentInfo[Conviva.Constants.STREAM_URL]=playerUrl;contentInfo[Conviva.Constants.DEFAULT_RESOURCE]="ALIBABA";if(is_live==null){contentInfo[Conviva.Constants.IS_LIVE]=Conviva.Constants.StreamType.VOD;}else{contentInfo[Conviva.Constants.IS_LIVE]=Conviva.Constants.StreamType.LIVE;}letuser_id=usercId?String(usercId):"0";contentInfo[Conviva.Constants.VIEWER_ID]=user_id=='0'?getDeviceUUID(user_id):user_id;constplayerInfo={};playerInfo[Conviva.Constants.FRAMEWORK_NAME]="JWPLAYER";playerInfo[Conviva.Constants.FRAMEWORK_VERSION]=jwplayer.version.split('+')[0];convivideoAnalytics.setPlayerInfo(playerInfo);convivideoAnalytics.reportPlaybackRequested({...contentInfo,...ts});convivideoAnalytics.setCallback(function(){if(convivideoAnalytics!=null){if(player){convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.PLAY_HEAD_TIME,duration*1000);convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.BUFFER_LENGTH,player.getBuffer());}}});}},updateMetaData:function(value){constconvivideoAnalytics=Conviva.Analytics.buildVideoAnalytics();if(convivideoAnalytics!=null){convivideoAnalytics.setContentInfo(value);}},cleanUpSession:function(){if(convivideoAnalytics){window.convivideoAnalytics.release();Conviva.Analytics.release();}},playing:function(){if(window.convivideoAnalytics){window.convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.PLAYER_STATE,Conviva.Constants.PlayerState.PLAYING);}},pause:function(){if(window.convivideoAnalytics){window.convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.PLAYER_STATE,Conviva.Constants.PlayerState.PAUSED);}},buffer:function(){if(window.convivideoAnalytics){window.convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.PLAYER_STATE,Conviva.Constants.PlayerState.BUFFERING);}},bitrate:function(bitrate){if(window.convivideoAnalytics&&Number.isInteger(bitrate)){window.convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.BITRATE,bitrate/1000);}},seeking:function(){if(window.convivideoAnalytics){convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.SEEK_STARTED);}},seeked:function(){if(window.convivideoAnalytics){convivideoAnalytics.reportPlaybackMetric(Conviva.Constants.Playback.SEEK_ENDED);}},error:function(err){if(window.convivideoAnalytics){window.convivideoAnalytics.reportPlaybackFailed(`[${err.code}][${err.sourceError.type}]:${err.messe}`);}},adBreakStarted:function(obj){if(window.convivideoAnalytics){letadBreakInfo={};if(obj.adposition==='pre'){adBreakInfo[Conviva.Constants.POD_POSITION]=Conviva.Constants.AdPosition.PREROLL;}elseif(obj.adposition==='post'){adBreakInfo[Conviva.Constants.POD_POSITION]=Conviva.Constants.AdPosition.POSTROLL;}else{adBreakInfo[Conviva.Constants.POD_POSITION]=Conviva.Constants.AdPosition.MIDROLL;}window.convivideoAnalytics.reportAdBreakStarted(Conviva.Constants.AdType.CLIENT_SIDE,Conviva.Constants.AdPlayer.SEPARATE,adBreakInfo,);}},adBreakEnd:function(){if(window.convivideoAnalytics){window.convivideoAnalytics.reportAdBreakEnded();}},};};window.onbeforeunload=function(){if(Conviva.Analytics||Conviva.Analytics!=''||Conviva.Analytics!=null){convivideoAnalytics=Conviva.Analytics.buildVideoAnalytics();if(convivideoAnalytics){convivaJwPlayer().cleanUpSession()}}}varhoverTimer=null$(document).on({mouseenter:asyncfunction(){constbox=$(this)constvideo=box.find('video')if(video.length>0){hoverTimer=setTimeout(function(){constfile=video.attr('video-url')constmute=trueconstid=video.attr('id')if(id!==undefined){constimgFluid=box.find('.lazy.img-fluid')imgFluid.hide()constcontentArray=id.replace('vid-player-','').split('-')consttype=contentArray[0]constcontentID=contentArray[1]consttitle=box.find(`#title-${type}-${contentID}`).val()functionsetupPlayer(){jwplayer(id).setup({"autostart":true,"file":file,"title":title,"primary":'html5',"width":"263px","height":"168px","aspectratio":"16:9","displaytitle":true,"stretching":"fill","mute":mute,"advertising":{"client":"googima","t":"pubads.g.doubleclick.net/gampad/ads?iu=//FTA-VastPre&description_url=[placeholder]&env=vp&impl=s&correlator=&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=400x300|640x480&unviewed_position_start=1"},"logo":{"hide":true}}).on('ready',function(){$('#vid-player').append($('.unmute'))this.on('adSkipped',function(){$('.overlay-clickable').css({'display':'none',});$('#button-clicker').css({'display':'none',});});"false";constassetMetadata={app_version:"1.0.0",content_id:'',application_name:"RCTI+WEB",asset_name:"N/A",program_id:"N/A",program_name:"N/A",classification:'',program_type:"N/A",genre:"N/A",content_category:"VoD",content_type:"video|shortvideo",is_login:"notlogin",is_premium:"no",cluster_name:'N/A',tv_id:1,tv_name:"RCTI",site:"/",};consttrackConviva=convivaJwPlayer(title,this,null,file,assetMetadata,null,null)trackConviva.createSession()this.on('play',function(){trackConviva.playing()})this.on('pause',function(){trackConviva.pause()})this.on('buffer',function(){trackConviva.buffer()})this.on('complete',function(){convivaJwPlayer().cleanUpSession()})this.on('remove',function(){convivaJwPlayer().cleanUpSession()})this.on('mute',function(mute){if(mute){$('.unmute').hide();}})if(type==='horizontal'){$(`#${id}`).css({'margin-left':'-3em','margin-top':'30px','cursor':'pointer'})}elseif(type==='horizontal_square'){$(`#${id}`).css({'margin-left':'-2.5em','margin-top':'19px','cursor':'pointer'})}}).on('error',function(){$('.jw-error-msg').css({"width":"315px","height":"176px",})$('.jw-info-container').html('')$('.jw-info-container').addClass('text-center')$('.jw-info-container').append(`CannotloadthevideoPleasetryainlater,we’reworkingtofixtheproblem.`)}).on('setupError',function(){$(".ico-play-live-video").hide();$("error-messe").show();$('#vid-player>.jw-error-msg>.jw-icon.jw-reset').hide()$('#vid-player>.jw-error-msg>.jw-info-container.jw-reset').hide()$('#play10sekforward').hide()$('video').removeAttr("poster");$('.error-messe').css({display:"block"});})}setupPlayer()}},2500)}},mouselee:asyncfunction(){clearTimeout(hoverTimer)constbox=$(this)constvideoPlayer=$("div[id*='vid-player-']")$("img.lazy.img-fluid").show()if(videoPlayer.length>0){jwplayer().remove()constvideoId=videoPlayer.attr('id')if(videoId!==undefined){videoPlayer.remove()}}}},'.box19')varplayerList=[];varbannerImePath='';varfirstRun=true;varplayerCurrent={};varplayerCurrentIndex=0;varpreviouseButtonForPlayer=false;functiongetBanner(){constcategoryId="";constqueryCatId=!!categoryId?'?categoryId='+categoryId:'';$.ajax({type:"GET",url:"/getbanner"+queryCatId,dataType:'json',success:function(json){varod=JSON.stringify(json);varobj=JSON.parse(od);varimes="";varimesq="";vardesc="";varscreenWidth=screen.width;varscreenWidth29=screen.width-140;varsizeBanner=(Math.floor(screenWidth/100))*100;letindexBanner=0;bannerList=json.data.banners.data;bannerImePath=json.data.banners.meta.ime_path+sizeBanner;$.each(json.data.banners.data,function(key,value){letelBannerDesc="";letelImg="";elBannerDesc=``+(value.logo?``:``)+(!value.is_live&&value.live_at>0?`