var competitionId="1558", cntId="93", name="ISRAEL: Toto cup Ligat Leumit"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1411268\":{\"id\":\"1411268\",\"p1\":\"Hapoel Acre\",\"p2\":\"Ihud Bnei Shfaram\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1411271\":{\"id\":\"1411271\",\"p1\":\"Hapoel Afula\",\"p2\":\"Ironi Tiberias\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1411272\":{\"id\":\"1411272\",\"p1\":\"Hapoel Kfar Saba\",\"p2\":\"Hapoel Ramat Gan\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1411269\":{\"id\":\"1411269\",\"p1\":\"Hapoel Nof HaGalil\",\"p2\":\"Ironi Kiryat Shmona\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1411273\":{\"id\":\"1411273\",\"p1\":\"Hapoel Ramat HaSharon\",\"p2\":\"Kafr Qasim\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"2\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"0\"},\"g1411274\":{\"id\":\"1411274\",\"p1\":\"Hapoel Rishon LeZion\",\"p2\":\"Bnei Yehuda\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1411270\":{\"id\":\"1411270\",\"p1\":\"Hapoel Umm Al Fahm\",\"p2\":\"Maccabi Herzeliya\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1411275\":{\"id\":\"1411275\",\"p1\":\"Maccabi Kabilio Jaffa\",\"p2\":\"Hapoel Azor\",\"dt\":\"2023-08-10\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1403572\":{\"id\":\"1403572\",\"p1\":\"Bnei Yehuda\",\"p2\":\"Maccabi Kabilio Jaffa\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"4\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1403573\":{\"id\":\"1403573\",\"p1\":\"Hapoel Azor\",\"p2\":\"Hapoel Rishon LeZion\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1403571\":{\"id\":\"1403571\",\"p1\":\"Hapoel Ramat Gan\",\"p2\":\"Hapoel Ramat HaSharon\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1403567\":{\"id\":\"1403567\",\"p1\":\"Ihud Bnei Shfaram\",\"p2\":\"Hapoel Nof HaGalil\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"5\"},\"rP\":[\"0\",\"3\"],\"c\":0,\"wn\":\"2\"},\"g1403568\":{\"id\":\"1403568\",\"p1\":\"Ironi Kiryat Shmona\",\"p2\":\"Hapoel Acre\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1403570\":{\"id\":\"1403570\",\"p1\":\"Ironi Tiberias\",\"p2\":\"Hapoel Umm Al Fahm\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1403579\":{\"id\":\"1403579\",\"p1\":\"Kafr Qasim\",\"p2\":\"Hapoel Kfar Saba\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1403569\":{\"id\":\"1403569\",\"p1\":\"Maccabi Herzeliya\",\"p2\":\"Hapoel Afula\",\"dt\":\"2023-08-07\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"1\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1401764\":{\"id\":\"1401764\",\"p1\":\"Hapoel Acre\",\"p2\":\"Hapoel Nof HaGalil\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1401769\":{\"id\":\"1401769\",\"p1\":\"Hapoel Azor\",\"p2\":\"Bnei Yehuda\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1401768\":{\"id\":\"1401768\",\"p1\":\"Hapoel Kfar Saba\",\"p2\":\"Hapoel Ramat HaSharon\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"2\"},\"rP\":[\"1\",\"2\"],\"c\":0,\"wn\":\"0\"},\"g1401770\":{\"id\":\"1401770\",\"p1\":\"Hapoel Rishon LeZion\",\"p2\":\"Maccabi Kabilio Jaffa\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"3\"},\"rP\":[\"2\",\"2\"],\"c\":0,\"wn\":\"2\"},\"g1401766\":{\"id\":\"1401766\",\"p1\":\"Hapoel Umm Al Fahm\",\"p2\":\"Hapoel Afula\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"2\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1401763\":{\"id\":\"1401763\",\"p1\":\"Ironi Kiryat Shmona\",\"p2\":\"Ihud Bnei Shfaram\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1401765\":{\"id\":\"1401765\",\"p1\":\"Ironi Tiberias\",\"p2\":\"Maccabi Herzeliya\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1401767\":{\"id\":\"1401767\",\"p1\":\"Kafr Qasim\",\"p2\":\"Hapoel Ramat Gan\",\"dt\":\"2023-08-03\",\"tm\":\"18:30\",\"stT\":\"1727335320\",\"cm\":\"3207\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"3207\":{\"id\":\"3207\",\"nm\":\"Toto cup Ligat Leumit, Group Stage\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"},\"3289\":{\"id\":\"3289\",\"nm\":\"Toto cup Ligat Leumit, Playoffs\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{\"1401767\":[{\"e\":\"yc\",\"m\":\"56\",\"p\":\"\",\"c\":\"2\"}],\"1401770\":[{\"e\":\"goal\",\"m\":\"5\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"31\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"37\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"43\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"67\",\"p\":\"\",\"c\":\"2\"}]}},{\"games\":{},\"comps\":{\"3207\":{\"id\":\"3207\",\"nm\":\"Toto cup Ligat Leumit, Group Stage\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"},\"3289\":{\"id\":\"3289\",\"nm\":\"Toto cup Ligat Leumit, Playoffs\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a3207\":{\"id\":\"3207\",\"nm\":\"Toto cup Ligat Leumit, Group Stage\"}},\"tables\":{\"3207\":[{\"c\":\"Ironi Tiberias\",\"p\":\"6\",\"w\":\"5\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"10\",\"fa2\":\"2\",\"pnt\":\"16\"},{\"c\":\"Hapoel Acre\",\"p\":\"6\",\"w\":\"5\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"10\",\"fa2\":\"5\",\"pnt\":\"15\"},{\"c\":\"Hapoel Ramat HaSharon\",\"p\":\"6\",\"w\":\"3\",\"d\":\"2\",\"l\":\"1\",\"fa1\":\"8\",\"fa2\":\"6\",\"pnt\":\"11\"},{\"c\":\"Kafr Qasim\",\"p\":\"6\",\"w\":\"3\",\"d\":\"2\",\"l\":\"1\",\"fa1\":\"5\",\"fa2\":\"3\",\"pnt\":\"11\"},{\"c\":\"Maccabi Kabilio Jaffa\",\"p\":\"6\",\"w\":\"3\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"11\",\"fa2\":\"6\",\"pnt\":\"10\"},{\"c\":\"Hapoel Umm Al Fahm\",\"p\":\"6\",\"w\":\"2\",\"d\":\"2\",\"l\":\"2\",\"fa1\":\"7\",\"fa2\":\"8\",\"pnt\":\"8\"},{\"c\":\"Hapoel Ramat Gan\",\"p\":\"6\",\"w\":\"2\",\"d\":\"2\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"4\",\"pnt\":\"8\"},{\"c\":\"Hapoel Kfar Shalem\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"8\",\"fa2\":\"2\",\"pnt\":\"7\"},{\"c\":\"Bnei Sakhnin\",\"p\":\"3\",\"w\":\"2\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"7\",\"fa2\":\"2\",\"pnt\":\"7\"},{\"c\":\"Hapoel Rishon LeZion\",\"p\":\"5\",\"w\":\"2\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"8\",\"fa2\":\"8\",\"pnt\":\"6\"},{\"c\":\"Maccabi Herzeliya\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"6\",\"fa2\":\"4\",\"pnt\":\"6\"},{\"c\":\"Beitar Tel Aviv\",\"p\":\"2\",\"w\":\"2\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"5\",\"fa2\":\"1\",\"pnt\":\"6\"},{\"c\":\"Hapoel Azor\",\"p\":\"3\",\"w\":\"2\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"5\",\"fa2\":\"4\",\"pnt\":\"6\"},{\"c\":\"Hapoel Nof HaGalil\",\"p\":\"6\",\"w\":\"1\",\"d\":\"2\",\"l\":\"3\",\"fa1\":\"8\",\"fa2\":\"9\",\"pnt\":\"5\"},{\"c\":\"Hapoel Kfar Saba\",\"p\":\"6\",\"w\":\"1\",\"d\":\"2\",\"l\":\"3\",\"fa1\":\"4\",\"fa2\":\"7\",\"pnt\":\"5\"},{\"c\":\"Hapoel Afula\",\"p\":\"6\",\"w\":\"1\",\"d\":\"1\",\"l\":\"4\",\"fa1\":\"6\",\"fa2\":\"10\",\"pnt\":\"4\"},{\"c\":\"Hapoel Iksal\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"4\",\"fa2\":\"7\",\"pnt\":\"4\"},{\"c\":\"Maccabi Ahi Nazareth\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"4\",\"fa2\":\"3\",\"pnt\":\"4\"},{\"c\":\"Hapoel Ashkelon\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"1\",\"pnt\":\"4\"},{\"c\":\"Maccabi Bnei Raina\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"2\",\"pnt\":\"4\"},{\"c\":\"Ironi Kiryat Shmona\",\"p\":\"3\",\"w\":\"1\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"2\",\"fa2\":\"1\",\"pnt\":\"4\"},{\"c\":\"Bnei Yehuda\",\"p\":\"6\",\"w\":\"1\",\"d\":\"0\",\"l\":\"5\",\"fa1\":\"5\",\"fa2\":\"14\",\"pnt\":\"3\"},{\"c\":\"Hapoel Petah Tikva\",\"p\":\"2\",\"w\":\"1\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"3\",\"fa2\":\"3\",\"pnt\":\"3\"},{\"c\":\"Hapoel Katamon\",\"p\":\"3\",\"w\":\"1\",\"d\":\"0\",\"l\":\"2\",\"fa1\":\"3\",\"fa2\":\"5\",\"pnt\":\"3\"},{\"c\":\"Maccabi Petah Tikva\",\"p\":\"1\",\"w\":\"1\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"2\",\"fa2\":\"1\",\"pnt\":\"3\"},{\"c\":\"Hapoel Raanana\",\"p\":\"3\",\"w\":\"0\",\"d\":\"2\",\"l\":\"1\",\"fa1\":\"5\",\"fa2\":\"6\",\"pnt\":\"2\"},{\"c\":\"Beitar Jerusalem\",\"p\":\"1\",\"w\":\"0\",\"d\":\"1\",\"l\":\"0\",\"fa1\":\"2\",\"fa2\":\"2\",\"pnt\":\"1\"},{\"c\":\"Agudat Sport Ashdod\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"1\",\"fa2\":\"3\",\"pnt\":\"1\"},{\"c\":\"Hapoel Bnei Lod\",\"p\":\"3\",\"w\":\"0\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"0\",\"fa2\":\"4\",\"pnt\":\"1\"},{\"c\":\"Ihud Bnei Shfaram\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"2\",\"fa2\":\"9\",\"pnt\":\"0\"},{\"c\":\"Ashdod\",\"p\":\"3\",\"w\":\"0\",\"d\":\"0\",\"l\":\"3\",\"fa1\":\"0\",\"fa2\":\"7\",\"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: ["","