موقع الكتروني:RCTI+ - Satu Aplikasi, Semua Hiburanالمحتوى
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.datRCTI+ - Satu Aplikasi, Semua HiburanaLayer=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=JSON.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_action:'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;iHistorySearchRecommendationforyouSeoul CeahtPOBSIPoolCircuitSeriIIILampungBandungOpen10-BallChampionship2024BatamOpen10-BallChampionship2024Euro2024varisClickOutside=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='/explores/keyword?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=''letoriginLabel=''if(typeMenu==='home'){eventName='home_clicked';eventLabel='home';originLabel='home';}elseif(typeMenu==='live'){eventName='bottom_menu_clicked'eventLabel='live';originLabel='live';}elseif(typeMenu==='short'){eventName='bottom_menu_clicked'eventLabel='short+';originLabel='short+';}elseif(typeMenu==='videoplus'){eventName='video_button_menu_clicked'eventLabel='video+';originLabel='video+';}elseif(typeMenu==='news'){eventName='news_menu_button_clicked'eventLabel='news+';originLabel='news+';}elseif(typeMenu==='audio'){eventName='music_menu_button_clicked'eventLabel='audio+';originLabel='audio+';}elseif(typeMenu==='hot'){eventName='hot_menu_button_clicked'eventLabel='hot+';originLabel='hot+';}elseif(typeMenu==='games'){eventName='games_menu_button_clicked'eventLabel='Games+';originLabel='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:asyncfunctioRCTI+ - Satu Aplikasi, Semua Hiburann(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,})}}});}functionreArrangeStoryData(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});}TayanganSportUnggulanfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TayanganForitHariInifunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}PONXXIACEH-SUMUT2024functionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TopThisWeekfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}TayanganOlahraPilihanfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}SerunyaMainGame+functionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}OriginalSeriesTerbaikfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}SHOP+ByAladinMallfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}ContinueWatchingfunctionsendAppirShowmore(section){qg("event","click_show_more",{"section":section});}-XPrivacyPolicyTerms&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-]RCTI+ - Satu Aplikasi, Semua Hiburan+/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="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')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;$.each(json.data.banners.data,function(key,value){letelBannerDesc="";letelImg="";if(!!value.summary){elBannerDesc=`${value.title}${value.summary}`}if(indexBanner=0;varpadding='padding:035px00!important';if(is_Mac){padding='padding:020px00!important';}imesq+=`${elImg}${elBannerDesc}`;indexBanner++;})imes+=`${imesq}`;$('#home_banner').html(imes);$('#load-banner').hide();$("#menu-header").show();$("#menu-header-login").show();$(".owl-carousel").css('display','block');$(".customNextBtn").css('display','block');$(".customPrevBtn").css('display','block');$("#now-trending").css('display','block');$("#sticky-ads").show();changeMetaBannerBtn(0);$('#bottom-box').show();$('.owl-carousel').owlCarousel({stePadding:70,loop:true,dots:false,items:1,lazyLoad:true,autoplay:true,autoplaySpeed:400,autoplayTimeout:,autoplayHoverPause:false});varowl=$('.owl-carousel');owl.owlCarousel();$('.customNextBtn').click(function(){owl.trigger('next.owl.carousel');})$('.customPrevBtn').click(function(){owl.trigger('prev.owl.carousel',[1000]);prevBut=true;})owl.on('changed.owl.carousel',function(event){varitems=event.item.count;countBanner=items-1;if(prevBut){indexBanner=indexBannerMinus;}else{indexBanner=indexBanner;}setTimeout(()=>{changeMetaBannerBtn();},2000);})$.each(json.data.banners.data,function(key,value){document.querySelector('#slider-'+value.id).addEventListener('click',function(e){e.stopPropation();e.preventDefault();window.open(value.permalink,'_parent');})})}});}functionclickPermalink(e,permalink){e.stopPropation();e.preventDefault();window.open(permalink,'_parent');}functionhomepeBannerClicked(e,id,title,type){e.preventDefault();vardatAEmpat={user_id:"RCTI+"+"",client_id:'G-JR2L0ZYPG7',banner_id:id,banner_name:title,content_id:'N/A',content_name:'N/A',content_type:'video|'+type,pillar:'video',date_time:toIsoString(newDate()),event_category:'video_interaction',event_action:'click_banner_list',event_label:title}clickPillarMenuForGA('homepe_banner_clicked',datAEmpat)}functionchangeMetaBannerBtn(){if(indexBanner==countBanner){indexBanner=0;}else{if(prevBut){if(indexBanner==countBanner){indexBanner=0;}else{if(indexBanner==0){indexBanner=Math.abs(indexBanner-countBanner);indexBannerMinus=indexBanner-1;}else{indexBanner=Math.abs(indexBanner-1);indexBannerMinus=indexBanner;}}}else{indexBanner++;}}prevBut=false;constcurrentBanner=bannerList[indexBanner];indexBanner=indexBanner;$("#txt-cte-bnr").text(currentBanner.wording_button);$("#btn-cte-bnr").attr("href",currentBanner.type=='url'?currentBanner.external_link:currentBanner.permalink);}getBanner();DownloadandwatchyourforiteTVshowsanytime!InstallAppsNowClose