var competitionId="2596", cntId="2003", name="ASIA: SAFF Championship"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1362307\":{\"id\":\"1362307\",\"p1\":\"Kuwait\",\"p2\":\"India\",\"dt\":\"2023-07-04\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"7800\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"0\"},\"g1361108\":{\"id\":\"1361108\",\"p1\":\"Kuwait\",\"p2\":\"Bangladesh\",\"dt\":\"2023-07-01\",\"tm\":\"11:30\",\"stT\":\"1688540511\",\"cm\":\"7800\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"AET\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[\"0\",\"0\",\"1\",\"0\"],\"c\":0,\"wn\":\"1\"},\"g1361109\":{\"id\":\"1361109\",\"p1\":\"Lebanon\",\"p2\":\"India\",\"dt\":\"2023-07-01\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"7800\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"Pen\",\"r1\":\"0\",\"r2\":\"0\"},\"rP\":[\"0\",\"0\",\"0\",\"0\",\"4\",\"2\"],\"c\":0,\"wn\":\"0\"},\"g1358581\":{\"id\":\"1358581\",\"p1\":\"Lebanon\",\"p2\":\"Maldives\",\"dt\":\"2023-06-28\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1358582\":{\"id\":\"1358582\",\"p1\":\"Bhutan\",\"p2\":\"Bangladesh\",\"dt\":\"2023-06-28\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"3\"},\"rP\":[\"1\",\"3\"],\"c\":0,\"wn\":\"2\"},\"g1358518\":{\"id\":\"1358518\",\"p1\":\"Nepal\",\"p2\":\"Pakistan\",\"dt\":\"2023-06-27\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1358519\":{\"id\":\"1358519\",\"p1\":\"India\",\"p2\":\"Kuwait\",\"dt\":\"2023-06-27\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1358431\":{\"id\":\"1358431\",\"p1\":\"Bangladesh\",\"p2\":\"Maldives\",\"dt\":\"2023-06-25\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1358432\":{\"id\":\"1358432\",\"p1\":\"Bhutan\",\"p2\":\"Lebanon\",\"dt\":\"2023-06-25\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"4\"},\"rP\":[\"0\",\"4\"],\"c\":0,\"wn\":\"2\"},\"g1358322\":{\"id\":\"1358322\",\"p1\":\"Pakistan\",\"p2\":\"Kuwait\",\"dt\":\"2023-06-24\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"4\"},\"rP\":[\"0\",\"3\"],\"c\":0,\"wn\":\"2\"},\"g1358323\":{\"id\":\"1358323\",\"p1\":\"Nepal\",\"p2\":\"India\",\"dt\":\"2023-06-24\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"2\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1358131\":{\"id\":\"1358131\",\"p1\":\"Lebanon\",\"p2\":\"Bangladesh\",\"dt\":\"2023-06-22\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1358132\":{\"id\":\"1358132\",\"p1\":\"Maldives\",\"p2\":\"Bhutan\",\"dt\":\"2023-06-22\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1358071\":{\"id\":\"1358071\",\"p1\":\"Kuwait\",\"p2\":\"Nepal\",\"dt\":\"2023-06-21\",\"tm\":\"12:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1358072\":{\"id\":\"1358072\",\"p1\":\"India\",\"p2\":\"Pakistan\",\"dt\":\"2023-06-21\",\"tm\":\"16:00\",\"stT\":\"1688540511\",\"cm\":\"6035\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"}},\"comps\":{\"6035\":{\"id\":\"6035\",\"nm\":\"SAFF Championship\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"7800\":{\"id\":\"7800\",\"nm\":\"SAFF Championship, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{\"1358132\":{\"rc1\":\"1\",\"rc2\":\"\"},\"1358519\":{\"rc1\":\"1\",\"rc2\":\"1\"}},\"ev\":{\"1358071\":[{\"e\":\"goal\",\"m\":\"23\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"41\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"65\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"68\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"52\",\"p\":\"\",\"c\":\"2\"}],\"1358072\":[{\"e\":\"goal\",\"m\":\"10\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"16\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"74\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"81\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"30\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"\",\"c\":\"2\"}],\"1358131\":[{\"e\":\"goal\",\"m\":\"79\",\"p\":\"Hassan Maatouk\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"90\",\"p\":\"Khalil Bader\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"67\",\"p\":\"Ali Ttnesh\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"71\",\"p\":\"Bishwanath Ghosh\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"85\",\"p\":\"Rakib Hossain\",\"c\":\"2\"}],\"1358132\":[{\"e\":\"pen\",\"m\":\"6\",\"p\":\"Hamzath Mohamed\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"90\",\"p\":\"Hassan Naiz\",\"c\":\"1\"},{\"e\":\"2yc\",\"m\":\"90\",\"p\":\"Hassan Raif Ahmed\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"58\",\"p\":\"Kinley Wangchuk\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"67\",\"p\":\"Hussain Nihaan\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"78\",\"p\":\"Mohamed Irufaan\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"Hassan Raif Ahmed\",\"c\":\"1\"}],\"1358322\":[{\"e\":\"goal\",\"m\":\"10\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"17\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"45\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"69\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"52\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"58\",\"p\":\"\",\"c\":\"2\"}],\"1358431\":[{\"e\":\"goal\",\"m\":\"17\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"42\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"67\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"90\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"26\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"69\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"83\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"2\"}],\"1358432\":[{\"e\":\"goal\",\"m\":\"11\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"23\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"35\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"43\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"79\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"57\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"62\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"70\",\"p\":\"\",\"c\":\"1\"}],\"1358518\":[{\"e\":\"goal\",\"m\":\"80\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"12\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"29\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"74\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"87\",\"p\":\"\",\"c\":\"1\"}],\"1358519\":[{\"e\":\"goal\",\"m\":\"45\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"90\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"rc\",\"m\":\"90\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"90\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"14\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"66\",\"p\":\"\",\"c\":\"2\"}],\"1358581\":[{\"e\":\"goal\",\"m\":\"23\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"55\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"\",\"c\":\"2\"}],\"1358582\":[{\"e\":\"goal\",\"m\":\"12\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"21\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"30\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"36\",\"p\":\"\",\"c\":\"2\"}],\"1361108\":[{\"e\":\"goal\",\"m\":\"105\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"104\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"114\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"119\",\"p\":\"\",\"c\":\"1\"}]}},{\"games\":{},\"comps\":{\"6035\":{\"id\":\"6035\",\"nm\":\"SAFF Championship\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"7800\":{\"id\":\"7800\",\"nm\":\"SAFF Championship, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a6035\":{\"id\":\"6035\",\"nm\":\"SAFF Championship\"}},\"tables\":{\"6035\":[{\"c\":\"Lebanon\",\"p\":\"3\",\"w\":\"3\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"7\",\"fa2\":\"1\",\"pnt\":\"9\"},{\"c\":\"Kuwait\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"8\",\"fa2\":\"2\",\"pnt\":\"7\"},{\"c\":\"India\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"7\",\"fa2\":\"1\",\"pnt\":\"7\"},{\"c\":\"Bangladesh\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"6\",\"fa2\":\"4\",\"pnt\":\"6\"},{\"c\":\"Maldives\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"4\",\"pnt\":\"3\"},{\"c\":\"Nepal\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"2\",\"fa2\":\"5\",\"pnt\":\"3\"},{\"c\":\"Bhutan\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"2\",\"fa2\":\"9\",\"pnt\":\"0\"},{\"c\":\"Pakistan\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"0\",\"fa2\":\"9\",\"pnt\":\"0\"}]}}]";var cmpActiveItem; var modal = document.getElementById('myModal'); var span = document.getElementsByClassName("close")[0]; var corrH = [0,1,2,2,1,1,1,1,1,1,2,2,2]; //gumarvuma sport-in u eji karucvacqna voroshvum makeMatch-um var gameId=gameIdM="", tableId=""; //ete xaxa sxmvac, xaxi id-n; gameIdM-n id-n demic g, ogtagorcvuma makeMatch-um var initTmpObj=["",""]; //[0] goal-i u [1] tabliceq-i tvyalnery qasheluc heto lcnuma sra mej document.addEventListener('click', this.documentClick,false); function documentClick(e){ //document-i vra vortex sxmum en sa ashxatuma if(e.target.classList[1]==="rL"){ //sxmec hashvi vra initTmpObj[0]=""; var ev = document.getElementById("matchInfo"); if(ev) ev.remove(); if(e.target.parentNode.parentElement.id!==gameId){ gameId=e.target.parentNode.parentElement.id; gameIdM="g"+gameId; makeDetails["Goal"](gameId, 0); } else gameId=gameIdM=0; } else if(e.target.className==="fa fa-youtube-play" || e.target.className==="vGoal"){// sxmec video if(e.target.className==="vGoal"){ var mId=e.target.parentNode.parentNode.parentNode.parentElement.id; var goalId=e.target.id.replace("v",""); } else{ var mId=e.target.parentNode.parentNode.parentNode.parentNode.parentElement.id; var goalId=e.target.parentNode.id.replace("v",""); } modal.style.display = "block"; // document.getElementsByClassName("StandingsTeamRow")[0].innerHTML="
"; //modal.getElementsByClassName("title")[0].innerHTML=initObj.ev[mId][goalId].t; if(initObj.ev[mId][goalId].v.includes("mp4") && !initObj.ev[mId][goalId].v.includes("embed.html")) modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; else modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; modal.getElementsByClassName("modal-content")[0].style.height="50vh"; modal.style.paddingTop="100px"; if(window.innerWidth < 500) modal.getElementsByClassName("modal-content")[0].style.width="100%"; } } // When the user clicks on (x), close the modal span.onclick = function() { modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; if(window.innerWidth < 500) modal.getElementsByClassName("modal-content")[0].style.width="90%"; modal.style.display = "none"; modal.getElementsByClassName("icon")[0].style.backgroundImage=""; tableId=0; } var makeMatch = { sport1: function(Match,cnt,brief=0){ var str, rowT="";; var strRC1=strRC2=strN=""; var goalFl={ row: [""," red"], html: ["","