trang mạng:vải-ban. CommentNội dung
window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','G-7K62MZYNR4');vargigyaLocale='en';vargigyaOrigin='web';varurl_en_1='/aclelite_fantasy';varurl_en_2='/aclelite_matchpredictor';varurl_en_3='/acltwo_matchpredictor';varurl_en_4='/aq_matchpredictor';varurl_ar_1='/aclelite_fantasy_ar';varurl_ar_2='/aclelite_matchpredictor_ar';varurl_ar_3='/acltwo_matchpredictor_ar';varurl_ar_4='/aq_matchpredictor_ar';if(/(Mac)/i.test(nigator.platform)){gigyaOrigin+="-mac";}elseif(/(iPhone|iPad)/i.test(nigator.platform)){gigyaOrigin+="-ios";}elseif(/Win/i.test(nigator.platform)){gigyaOrigin+="-win";}else{gigyaOrigin+="-other";}vargigyaScreen=function(screenSet,startScreen,showBlockerInfo,options){if(window.location.href.match(/[\.\/]?fantasy[\.\/]?/)!==null){gigyaOrigin+='-fantasy';}elseif(window.location.href.match(/[\.\/]?predictor[\.\/]?/)!==null){gigyaOrigin+='-predictor';}else{gigyaOrigin.replace('-predictor','');gigyaOrigin.replace('-fantasy','');}fetch(window.app.config.globalProperties.apiUrl+'/v2/country').then(function(response){returnresponse.json();}).then(function(data){if(data.country==='CN'){if(showBlockerInfo){gigya.accounts.showScreenSet({screenSet:'afc-loginregistration',startScreen:'blocked',lang:gigyaLocale,authFlow:'popup',redirectURL:null});}return;}gigya.accounts.showScreenSet({screenSet:screenSet,startScreen:startScreen,lang:gigyaLocale,authFlow:'popup',redirectURL:null,...options});});};vargigyaLoginScreen=function(){returngigyaScreen('afc-loginregistration','gigya-login-screen',true,{onAfterScreenLoad:function(e){if(e.currentScreen==='gigya-register-screen'){fillCompetitionsDropDown();fillClubsDropDown();fillTeamsDropDown();}}});};functionfillTeamsDropDown(){varcurrentFTeams=JSON.parse(localStore.getItem('gigyaProfile'))?.data?.fourite_teams;fetch(window.app.config.globalProperties.apiUrl+'/sportdb-connector/api/v1/fourite/teams?locale='+gigyaLocale).then(function(response){returnresponse.json();}).then(function(data){leti=0;letelem=null;while(elem=document.getElementsByName('data.fourite_teams['+i+'].code')[0]){letcurrentFTeamCode=currentFTeams&¤tFTeams[i]&¤tFTeams[i].code;i++;if(elem.getAttribute('data-filled')){continue;}while(elem.options.length>0){elem.options.remove(0);}elem.options.add(newOption('------',null,true,false));letteams=newMap();data.data?.forEach(team=>{letteamCode=team.contestantName+'_'+team.gender;letteamName=team.contestantName;if(team.contestantName!==team.country||team.gender==='W'){teamName+=''+(team.gendevải-ban. Commentr==='W'?'Women':'Men');}teams.set(teamCode,teamName);});for(let[teamCode,teamName]ofteams){letisSelected=currentFTeamCode===teamCode;elem.options.add(newOption(teamName,teamCode,isSelected,isSelected));}elem.setAttribute('data-filled','1');}});}functionfillClubsDropDown(){varcurrentFClubs=JSON.parse(localStore.getItem('gigyaProfile'))?.data?.fourite_clubs;fetch(window.app.config.globalProperties.apiUrl+'/api/sportsData/getTeamsByCountry?locale='+gigyaLocale).then(function(response){returnresponse.json();}).then(function(data){leti=0;letelem=null;while(elem=document.getElementsByName('data.fourite_clubs['+i+'].code')[0]){letcurrentFClubCode=currentFClubs&¤tFClubs[i]&¤tFClubs[i].code;i++;if(elem.getAttribute('data-filled')){continue;}while(elem.options.length>0){elem.options.remove(0);}elem.options.add(newOption('------',null,true,false));data.forEach(team=>{letisSelected=currentFClubCode===team.code+'_'+team.country;elem.options.add(newOption(team.name.toUpperCase()+'('+team.country+')',team.code+'_'+team.country,isSelected,isSelected));});elem.setAttribute('data-filled','1');}});}functionfillCompetitionsDropDown(){varcurrentFComps=JSON.parse(localStore.getItem('gigyaProfile'))?.data?.fourite_competitions;fetch(window.app.config.globalProperties.apiUrl+'/api/sportsData/getCompetitions').then(function(response){returnresponse.json();}).then(function(data){leti=0;letelem=null;while(elem=document.getElementsByName('data.fourite_competitions['+i+'].code')[0]){letcurrentFCompCode=currentFComps&¤tFComps[i]&¤tFComps[i].code;i++;if(elem.getAttribute('data-filled')){continue;}while(elem.options.length>0){elem.options.remove(0);}elem.options.add(newOption('------',null,true,false));data.forEach(team=>{if(!team.national){return;}letisSelected=currentFCompCode===team.id;letteamName=team.locales[gigyaLocale]||team.display;elem.options.add(newOption(teamName,team.id,isSelected,isSelected));});elem.setAttribute('data-filled','1');}});}functiongigyaShow(className){document.querySelectorAll('.'+className).forEach(function(e){e.style.display='flex';});}functiongigyaHide(className){document.querySelectorAll('.'+className).forEach(function(e){e.style.display='none';});}varobserver=null;varuserData=JSON.parse(localStore.getItem('gigyaProfile'));vargigyaProfileScreen=function(){gigya.accounts.showScreenSet({screenSet:'afc-profile',startScreen:'gigya-update-profile-screen',lang:gigyaLocale,authFlow:'popup',redirectURL:null,onAfterScreenLoad:function(e){if(e.currentScreen==='gigya-update-profile-screen'){fillCompetitionsDropDown();fillClubsDropDown();fillTeamsDropDown();observer=newMutationObserver(function(mutations){mutations.forEach(mutation=>{if(mutation.addedNodes.length&&mutation.addedNodes[0].nodeName==='DIV'&&mutation.addedNodes[0].className==='gigya-array-template'){fillCompetitionsDropDown();fillClubsDropDown();fillTeamsDropDown();}});});observer.observe(document.getElementById('gigya-profile-form'),{childList:true,subtree:true});}},onAfterSubmit:function(e){if(e.form==='gigya-profile-form'&&e.data){localStore.setItem('gigyaProfile',JSON.stringify({uid:userData.uid,data:e.data||userData.data,profile:e.profile||userData.profile,subscriptions:e.subscriptions||userData.subscriptions}));}elseif(e.data){}},});};vargigyaLogout=function(){gigya.accounts.logout();localStore.removeItem('gigyaProfile');gigyaHide('gigya_profile');gigyaShow('gigya_login');};functiongigyaDelete(){console.log('deletingaccount...');letuserData=JSON.parse(localStore.getItem('gigyaProfile'));gigyaLogout();fetch(window.app.config.globalProperties.apiUrl+'/v1/sap/delete?uid='+userData.uid).then(function(response){console.log(response);document.location.href=document.location.href;});}asyncfunctiongigyaPrepare(){if(window.location.href.match(/\/[a-z]{2}\//)){gigyaLocale=window.location.href.match(/\/[a-z]{2}\//)[0].substr(1,2);}else{gigyaLocale='en';}awaitgigya.hasSession().then(function(res){if(!res){localStore.removeItem('gigyaProfile');userData=null;gigyaHide('gigya_profile');gigyaShow('gigya_login');}else{gigyaHide('gigya_login');gigyaShow('gigya_profile');}});}//IMPORTANT:window.__gigyaConfpropertymustbedefinedBEFOREgigya.jsisincluded//eslint-disable-next-lineno-underscore-danglewindow.__gigyaConf={autoLogin:true,sessionExpiration:-2,onGigyaServiceReady:function(){console.log('globalonGigyaServiceReady');elem=document.createElement('script');elem.setAttribute('src','cdn.gigya-ext.com/screenset-validation.min.js');elem.setAttribute('type','text/jascript');elem.setAttribute('defer',true);document.body.appendChild(elem);gigyaPrepare();gigya.accounts.addEventHandlers({onLogin:function(r){gigyaHide('gigya_login');gigyaShow('gigya_profile');gigya.accounts.getAccountInfo({include:'subscriptions',callback:function(accountInfoRet){localStore.setItem('gigyaProfile',JSON.stringify({uid:r.UID,data:r.data,profile:r.profile,subscriptions:accountInfoRet.subscriptions}));userData=JSON.parse(localStore.getItem('gigyaProfile'));}});},onLogout:function(r){},});constpopupName='afc_popup2_timestamp';constpopupInterval=72;//hoursconstlastPopupTimestamp=localStore.getItem(popupName);constuserTimestamp=newDate().getTime();consttimeDiffInMs=(userTimestamp-lastPopupTimestamp);consttimeDiffInHours=timeDiffInMs/(1000*60*60);letshowPopupForLoggedInUsers=true;if(userData?.uid&&userData?.subscriptions?.afc?.email?.isSubscribed&&userData?.subscriptions?.afc?.partners?.email?.isSubscribed){showPopupForLoggedInUsers=false;}if(userData?.uid&&userData?.data?.do_not_shovải-ban. Commentw_popup){showPopupForLoggedInUsers=false;}showPopupForLoggedInUsers=true;//fixedforime-sliderinsteadofnewsletterpopupif(window.app.config.globalProperties.enableCrmPopup==='true'&&(lastPopupTimestamp===null||timeDiffInHours>popupInterval)&&!window.location.href.match(/\/webview\//)&&showPopvải-ban. CommentupForLoggedInUsers){console.info('popupfired');vargigyaLocale=window.location.href.match(/\/[a-z]{2}\//)[0].substr(1,2);if(window.app.config.globalProperties.nodeEnv!=='production'){url_en_1='/en/club/afc_champions_leue_elite/fantasy.html';url_en_2='/en/club/afc_champions_leue_elite/predictor.html';url_en_3='/en/club/afc_champions_leue_two/predictor.html';url_en_4='/en/national/asian_qualifiers/predictor.html';url_ar_1='/ar/club/afc_champions_leue_elite/fantasy.html';url_ar_2='/ar/club/afc_champions_leue_elite/predictor.html';url_ar_3='/ar/club/afc_champions_leue_two/predictor.html';url_ar_4='/ar/national/asian_qualifiers/predictor.html';}nextSlide();/*if(window.app.config.globalProperties.nodeEnv==='production'){//eslint-disable-next-lineno-undefgigyaScreen('AFC-LiteRegistrationProd','gigya-subscribe-with-email-screen-prod',false,{lang:gigyaLocale});}else{//eslint-disable-next-lineno-undefgigyaScreen('AFC-LiteRegistrationNonProd','gigya-subscribe-with-email-screen-non-prod',false,{lang:gigyaLocale});}*/document.getElementById('carousel_popup').style.display='block';localStore.setItem(popupName,newDate().getTime());}},validation:{//formDatacontainsallinformationuserhasentered//eventTypeiseither"change"or"submit"//callbackisoptional,youcanuseitforasynchronousvalidationorjustusereturn//Validateeachscreenseparately//eslint-disable-next-lineno-unused-vars//PRODFinalScreenSets'gigya-subscribe-with-email-screen-prod':(formData,eventType,callback)=>{consterrors={};//Makecheckboxmandatoryif(!formData['subscriptions.afc.email.isSubscribed']){//Checkboxesdon'theerrormesses.errors['subscriptions.afc.email.isSubscribed']=true;}//YoucanreturnerrorsORusecallbackforvalidationviaAJAX.//returnerrors;eventType.addEventListener('change',callback(errors),false);},//PROD(DEV/STG)ScreenSets'gigya-subscribe-with-email-fixed-screen-prod':(formData,eventType,callback)=>{consterrors={};//Makecheckboxmandatoryif(!formData['subscriptions.afc.email.isSubscribed']){//Checkboxesdon'theerrormesses.errors['subscriptions.afc.email.isSubscribed']=true;}//YoucanreturnerrorsORusecallbackforvalidationviaAJAX.//returnerrors;eventType.addEventListener('change',callback(errors),false);},//NON-PROD(DEV/STG)ScreenSets'gigya-subscribe-with-email-fixed-screen-non-prod':(formData,eventType,callback)=>{consterrors={};//Makecheckboxmandatoryif(!formData['subscriptions.afc.email.isSubscribed']){//Checkboxesdon'theerrormesses.errors['subscriptions.afc.email.isSubscribed']=true;}//YoucanreturnerrorsORusecallbackforvalidationviaAJAX.//returnerrors;eventType.addEventListener('change',callback(errors),false);},},};vargigyaLoader=setInterval(function(){if(!window.app||!window.app.config){return;}clearInterval(gigyaLoader);varelem=document.createElement('script');elem.setAttribute('src','cdns.eu1.gigya.com/js/gigya.js?apikey='+window.app.config.globalProperties.gigyaApiKey);elem.setAttribute('type','text/jascript');elem.setAttribute('defer',true);document.body.appendChild(elem);},200);#carousel_popup{position:fixed;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,0.7);transition:opacity500ms;z-index:;display:none;}#carousel_popup:target{visibility:visible;opacity:1;}#carousel_container{margin:70pxauto;position:relative;width:418px;height:523px;flex-shrink:0;border-radius:12px;border:5pxsolid#FFF;background:lightgray50%/coverno-repeat;box-shadow:0px4px10px0pxrgba(0,0,0,0.30);}@mediaonlyscreenand(max-width:480px){#carousel_popup{padding-left:16px;padding-right:16px;}#carousel_container{width:100%;}}#carousel_wrapper{width:50%;margin-left:auto;margin-right:auto;text-align:center;}#carousel_n_bullets{width:66px;height:10px;flex-shrink:0;top:447px;position:relative;}.carousel_n_item{width:30px;height:30px;flex-shrink:0;top:448px;position:relative;opacity:0.8;filter:drop-shadow(0px4px4pxrgba(0,0,0,0.25));}svg.carousel_n_itemg:hover{opacity:1;}varactiveSlide=0;functionnextSlide(){if(event!==undefined){event.stopPropation();}activeSlide++;if(activeSlide>4){activeSlide=1;}varbgUrl='/img/carousel_'+activeSlide+'_'+gigyaLocale+'.png';document.getElementById('carousel_container').style.background='url("'+bgUrl+'")lightgray50%/coverno-repeat';document.querySelectorAll('#carousel_n_bulletscircle').forEach(elem=>{elem.setAttribute('fill','#BEB8C8');elem.setAttribute('fill-opacity','0.8');});document.querySelectorAll('#carousel_n_bulletscircle.item'+activeSlide).forEach(elem=>{elem.setAttribute('fill','white');elem.setAttribute('fill-opacity','1');});}functionprevSlide(){if(event!==undefined){event.stopPropation();}activeSlide--;if(activeSlide{elem.setAttribute('fill','#BEB8C8');elem.setAttribute('fill-opacity','0.8');});document.querySelectorAll('#carousel_n_bulletscircle.item'+activeSlide).forEach(elem=>{elem.setAttribute('fill','white');elem.setAttribute('fill-opacity','1');});}functioncarouselClick(){leturl='url_'+gigyaLocale+'_'+activeSlide;document.location.href=window[url];}