var competitionId="1098", cntId="2007", name="NORTH AND CENTRAL AMERICA: Gold cup"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1690251\":{\"id\":\"1690251\",\"p1\":\"Martinique\",\"p2\":\"Suriname\",\"dt\":\"2025-03-26\",\"tm\":\"00:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1690252\":{\"id\":\"1690252\",\"p1\":\"Trinidad and Tobago\",\"p2\":\"Cuba\",\"dt\":\"2025-03-26\",\"tm\":\"00:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1690253\":{\"id\":\"1690253\",\"p1\":\"Jamaica\",\"p2\":\"St.Vincent and the G...\",\"dt\":\"2025-03-26\",\"tm\":\"01:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1690254\":{\"id\":\"1690254\",\"p1\":\"Guatemala\",\"p2\":\"Guyana\",\"dt\":\"2025-03-26\",\"tm\":\"01:30\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1690255\":{\"id\":\"1690255\",\"p1\":\"Nicaragua\",\"p2\":\"Guadalope\",\"dt\":\"2025-03-26\",\"tm\":\"01:30\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1690256\":{\"id\":\"1690256\",\"p1\":\"Costa Rica\",\"p2\":\"Belize\",\"dt\":\"2025-03-26\",\"tm\":\"02:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"6\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1690257\":{\"id\":\"1690257\",\"p1\":\"Honduras\",\"p2\":\"Bermuda\",\"dt\":\"2025-03-26\",\"tm\":\"03:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1688693\":{\"id\":\"1688693\",\"p1\":\"Bermuda\",\"p2\":\"Honduras\",\"dt\":\"2025-03-22\",\"tm\":\"00:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"5\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1688694\":{\"id\":\"1688694\",\"p1\":\"St.Vincent and the G...\",\"p2\":\"Jamaica\",\"dt\":\"2025-03-22\",\"tm\":\"00:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1688695\":{\"id\":\"1688695\",\"p1\":\"Guadalope\",\"p2\":\"Nicaragua\",\"dt\":\"2025-03-22\",\"tm\":\"01:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1688696\":{\"id\":\"1688696\",\"p1\":\"Guyana\",\"p2\":\"Guatemala\",\"dt\":\"2025-03-22\",\"tm\":\"02:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"2\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1688697\":{\"id\":\"1688697\",\"p1\":\"Belize\",\"p2\":\"Costa Rica\",\"dt\":\"2025-03-22\",\"tm\":\"03:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"7\"},\"rP\":[\"0\",\"3\"],\"c\":0,\"wn\":\"2\"},\"g1688691\":{\"id\":\"1688691\",\"p1\":\"Cuba\",\"p2\":\"Trinidad and Tobago\",\"dt\":\"2025-03-21\",\"tm\":\"21:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1688692\":{\"id\":\"1688692\",\"p1\":\"Suriname\",\"p2\":\"Martinique\",\"dt\":\"2025-03-21\",\"tm\":\"23:00\",\"stT\":\"1751871787\",\"cm\":\"5885\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"}},\"comps\":{\"905\":{\"id\":\"905\",\"nm\":\"Gold cup, Group Stage\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"909\":{\"id\":\"909\",\"nm\":\"Gold cup, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"5885\":{\"id\":\"5885\",\"nm\":\"Gold Cup, Qualification\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{\"1688695\":{\"rc1\":\"1\",\"rc2\":\"\"},\"1690252\":{\"rc1\":\"0\",\"rc2\":\"1\"},\"1690254\":{\"rc1\":\"0\",\"rc2\":\"1\"}},\"ev\":{\"1688691\":[{\"e\":\"goal\",\"m\":\"6\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"20\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"53\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"22\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"49\",\"p\":\"\",\"c\":\"2\"}],\"1688692\":[{\"e\":\"goal\",\"m\":\"52\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"44\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"55\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"58\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"74\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"80\",\"p\":\"\",\"c\":\"1\"}],\"1688695\":[{\"e\":\"goal\",\"m\":\"17\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"48\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"60\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"70\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"\",\"c\":\"2\"}],\"1688697\":[{\"e\":\"goal\",\"m\":\"7\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"36\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"38\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"66\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"70\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"81\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"88\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"\",\"c\":\"2\"}],\"1690251\":[{\"e\":\"goal\",\"m\":\"80\",\"p\":\"\",\"c\":\"2\"}],\"1690252\":[{\"e\":\"goal\",\"m\":\"22\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"37\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"51\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"84\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"3\",\"p\":\"\",\"c\":\"2\"}],\"1690253\":[{\"e\":\"goal\",\"m\":\"27\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"11\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"39\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"54\",\"p\":\"\",\"c\":\"1\"}],\"1690254\":[{\"e\":\"goal\",\"m\":\"11\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"76\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"84\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"52\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"57\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"66\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"72\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"80\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"80\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"2\"}],\"1690255\":[{\"e\":\"goal\",\"m\":\"64\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"54\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"75\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"83\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"85\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"1\"}],\"1690256\":[{\"e\":\"goal\",\"m\":\"1\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"6\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"8\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"36\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"48\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"66\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"69\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"21\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"22\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"48\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"67\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"68\",\"p\":\"\",\"c\":\"1\"}],\"1690257\":[{\"e\":\"goal\",\"m\":\"54\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"57\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"36\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"2\"}]}},{\"games\":{},\"comps\":{\"905\":{\"id\":\"905\",\"nm\":\"Gold cup, Group Stage\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"909\":{\"id\":\"909\",\"nm\":\"Gold cup, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"5885\":{\"id\":\"5885\",\"nm\":\"Gold Cup, Qualification\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a906\":{\"id\":\"906\",\"nm\":\"Group B\"},\"a907\":{\"id\":\"907\",\"nm\":\"Group C\"},\"a4601\":{\"id\":\"4601\",\"nm\":\"Group D\"},\"a905\":{\"id\":\"905\",\"nm\":\"Gold cup, Group Stage\"}},\"tables\":{\"906\":[{\"c\":\"USA\",\"p\":\"3\",\"w\":\"3\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"8\",\"fa2\":\"1\",\"pnt\":\"9\"},{\"c\":\"Canada\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"8\",\"fa2\":\"3\",\"pnt\":\"6\"},{\"c\":\"Haiti\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"6\",\"pnt\":\"3\"},{\"c\":\"Martinique\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"3\",\"fa2\":\"12\",\"pnt\":\"0\"}],\"907\":[{\"c\":\"Costa Rica\",\"p\":\"3\",\"w\":\"3\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"6\",\"fa2\":\"2\",\"pnt\":\"9\"},{\"c\":\"Jamaica\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"4\",\"fa2\":\"2\",\"pnt\":\"6\"},{\"c\":\"Suriname\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"5\",\"pnt\":\"3\"},{\"c\":\"Guadalope\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"3\",\"fa2\":\"7\",\"pnt\":\"0\"}],\"4601\":[{\"c\":\"Qatar\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"9\",\"fa2\":\"3\",\"pnt\":\"7\"},{\"c\":\"Honduras\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"7\",\"fa2\":\"4\",\"pnt\":\"6\"},{\"c\":\"Panama\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"8\",\"fa2\":\"7\",\"pnt\":\"4\"},{\"c\":\"Grenada\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"1\",\"fa2\":\"11\",\"pnt\":\"0\"}],\"905\":[{\"c\":\"Panama\",\"p\":\"3\",\"w\":\"3\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"10\",\"fa2\":\"3\",\"pnt\":\"9\"},{\"c\":\"USA\",\"p\":\"3\",\"w\":\"3\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"8\",\"fa2\":\"1\",\"pnt\":\"9\"},{\"c\":\"Canada\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"9\",\"fa2\":\"1\",\"pnt\":\"7\"},{\"c\":\"Costa Rica\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"6\",\"fa2\":\"4\",\"pnt\":\"7\"},{\"c\":\"Mexico\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"5\",\"fa2\":\"2\",\"pnt\":\"7\"},{\"c\":\"Honduras\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"4\",\"fa2\":\"7\",\"pnt\":\"6\"},{\"c\":\"Guatemala\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"4\",\"fa2\":\"3\",\"pnt\":\"6\"},{\"c\":\"Saudi Arabia\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"2\",\"pnt\":\"4\"},{\"c\":\"Jamaica\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"6\",\"pnt\":\"3\"},{\"c\":\"Trinidad and Tobago\",\"p\":\"3\",\"w\":\"0\",\"d\":\"2\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"7\",\"pnt\":\"2\"},{\"c\":\"Curacao\",\"p\":\"3\",\"w\":\"0\",\"d\":\"2\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"3\",\"pnt\":\"2\"},{\"c\":\"Suriname\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"6\",\"pnt\":\"1\"},{\"c\":\"Dominican Republic\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"5\",\"pnt\":\"1\"},{\"c\":\"Haiti\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"2\",\"fa2\":\"4\",\"pnt\":\"1\"},{\"c\":\"El Salvador\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"0\",\"fa2\":\"4\",\"pnt\":\"1\"},{\"c\":\"Guadalope\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"5\",\"fa2\":\"10\",\"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: ["","