var competitionId="1475", cntId="30", name="BULGARIA: Vtora Liga"; var jsTxt="[{\"games\":{\"g1786241\":{\"id\":\"1786241\",\"p1\":\"Belasitsa\",\"p2\":\"Chernomorets Burgas\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786247\":{\"id\":\"1786247\",\"p1\":\"Dunav Ruse\",\"p2\":\"Hebar 1918\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786242\":{\"id\":\"1786242\",\"p1\":\"Lokomotiv G-O\",\"p2\":\"Sevlievo\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786248\":{\"id\":\"1786248\",\"p1\":\"Pirin\",\"p2\":\"Ludogorets-2\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786246\":{\"id\":\"1786246\",\"p1\":\"Spartak Pleven\",\"p2\":\"Sportist Svoge\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786243\":{\"id\":\"1786243\",\"p1\":\"Vihren Sandanski\",\"p2\":\"Etar\",\"dt\":\"2026-04-04\",\"tm\":\"16:00\",\"stT\":\"1775287521\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"3106\":{\"id\":\"3106\",\"nm\":\"Vtora Liga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"games\":{\"g1786245\":{\"id\":\"1786245\",\"p1\":\"Minior Pernik\",\"p2\":\"Yantra 2019\",\"dt\":\"2026-04-03\",\"tm\":\"16:00\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1786235\":{\"id\":\"1786235\",\"p1\":\"Chernomorets Burgas\",\"p2\":\"Dunav Ruse\",\"dt\":\"2026-03-29\",\"tm\":\"15:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"0\"},\"g1786233\":{\"id\":\"1786233\",\"p1\":\"Etar\",\"p2\":\"CSKA Sofia-2\",\"dt\":\"2026-03-29\",\"tm\":\"15:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1786234\":{\"id\":\"1786234\",\"p1\":\"Marek\",\"p2\":\"Spartak Pleven\",\"dt\":\"2026-03-29\",\"tm\":\"15:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786239\":{\"id\":\"1786239\",\"p1\":\"Sportist Svoge\",\"p2\":\"Lokomotiv G-O\",\"dt\":\"2026-03-29\",\"tm\":\"15:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1786232\":{\"id\":\"1786232\",\"p1\":\"Pirin\",\"p2\":\"Belasitsa\",\"dt\":\"2026-03-29\",\"tm\":\"17:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1786236\":{\"id\":\"1786236\",\"p1\":\"Fratria\",\"p2\":\"Minior Pernik\",\"dt\":\"2026-03-28\",\"tm\":\"14:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1786238\":{\"id\":\"1786238\",\"p1\":\"Hebar 1918\",\"p2\":\"Vihren Sandanski\",\"dt\":\"2026-03-28\",\"tm\":\"14:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1786240\":{\"id\":\"1786240\",\"p1\":\"Ludogorets-2\",\"p2\":\"Yantra 2019\",\"dt\":\"2026-03-28\",\"tm\":\"14:30\",\"stT\":\"1775287523\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"3\"},\"rP\":[\"1\",\"2\"],\"c\":0,\"wn\":\"2\"}},\"comps\":{\"3106\":{\"id\":\"3106\",\"nm\":\"Vtora Liga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{\"1786232\":{\"rc1\":\"\",\"rc2\":\"1\"},\"1786233\":{\"rc1\":\"0\",\"rc2\":\"1\"}},\"ev\":{\"1786232\":[{\"e\":\"goal\",\"m\":\"22\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"53\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"21\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"35\",\"p\":\"\",\"c\":\"1\"}],\"1786233\":[{\"e\":\"goal\",\"m\":\"19\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"27\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"44\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"51\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"rc\",\"m\":\"63\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"6\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"15\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"54\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"67\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"79\",\"p\":\"\",\"c\":\"2\"}],\"1786234\":[{\"e\":\"yc\",\"m\":\"30\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"51\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"64\",\"p\":\"\",\"c\":\"1\"}],\"1786235\":[{\"e\":\"goal\",\"m\":\"26\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"39\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"40\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"56\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"75\",\"p\":\"\",\"c\":\"2\"}],\"1786236\":[{\"e\":\"goal\",\"m\":\"31\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"68\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"55\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"65\",\"p\":\"\",\"c\":\"2\"}],\"1786238\":[{\"e\":\"goal\",\"m\":\"45\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"40\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"47\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"67\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"77\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"\",\"c\":\"1\"}],\"1786239\":[{\"e\":\"goal\",\"m\":\"88\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"31\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"81\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"89\",\"p\":\"\",\"c\":\"1\"}],\"1786240\":[{\"e\":\"goal\",\"m\":\"5\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"8\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"26\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"58\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"61\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"84\",\"p\":\"\",\"c\":\"2\"}],\"1786245\":[{\"e\":\"goal\",\"m\":\"63\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"21\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"27\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"51\",\"p\":\"\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"52\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"71\",\"p\":\"\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"71\",\"p\":\"\",\"c\":\"2\"}]}},{\"games\":{\"g1786244\":{\"id\":\"1786244\",\"p1\":\"CSKA Sofia-2\",\"p2\":\"Marek\",\"dt\":\"2026-04-05\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786256\":{\"id\":\"1786256\",\"p1\":\"Chernomorets Burgas\",\"p2\":\"Pirin\",\"dt\":\"2026-04-09\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786250\":{\"id\":\"1786250\",\"p1\":\"Sevlievo\",\"p2\":\"Spartak Pleven\",\"dt\":\"2026-04-09\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786253\":{\"id\":\"1786253\",\"p1\":\"Hebar 1918\",\"p2\":\"Belasitsa\",\"dt\":\"2026-04-09\",\"tm\":\"17:30\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786252\":{\"id\":\"1786252\",\"p1\":\"Fratria\",\"p2\":\"Lokomotiv G-O\",\"dt\":\"2026-04-09\",\"tm\":\"18:30\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786251\":{\"id\":\"1786251\",\"p1\":\"Ludogorets-2\",\"p2\":\"Minior Pernik\",\"dt\":\"2026-04-10\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786257\":{\"id\":\"1786257\",\"p1\":\"Marek\",\"p2\":\"Vihren Sandanski\",\"dt\":\"2026-04-10\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1786255\":{\"id\":\"1786255\",\"p1\":\"Sportist Svoge\",\"p2\":\"CSKA Sofia-2\",\"dt\":\"2026-04-10\",\"tm\":\"16:00\",\"stT\":\"1775287527\",\"cm\":\"3106\",\"sh\":0,\"rL\":\"\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"3106\":{\"id\":\"3106\",\"nm\":\"Vtora Liga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a3106\":{\"id\":\"3106\",\"nm\":\"Vtora Liga\"}},\"tables\":{\"3106\":[{\"c\":\"Dunav Ruse\",\"p\":\"24\",\"w\":\"18\",\"d\":\"5\",\"l\":\"1\",\"fa1\":\"45\",\"fa2\":\"9\",\"pnt\":\"59\"},{\"c\":\"Fratria\",\"p\":\"25\",\"w\":\"15\",\"d\":\"6\",\"l\":\"4\",\"fa1\":\"46\",\"fa2\":\"22\",\"pnt\":\"51\"},{\"c\":\"Yantra 2019\",\"p\":\"26\",\"w\":\"14\",\"d\":\"8\",\"l\":\"4\",\"fa1\":\"36\",\"fa2\":\"20\",\"pnt\":\"50\"},{\"c\":\"Vihren Sandanski\",\"p\":\"25\",\"w\":\"13\",\"d\":\"5\",\"l\":\"7\",\"fa1\":\"44\",\"fa2\":\"29\",\"pnt\":\"44\"},{\"c\":\"CSKA Sofia-2\",\"p\":\"24\",\"w\":\"11\",\"d\":\"6\",\"l\":\"7\",\"fa1\":\"41\",\"fa2\":\"26\",\"pnt\":\"39\"},{\"c\":\"Chernomorets Burgas\",\"p\":\"24\",\"w\":\"8\",\"d\":\"11\",\"l\":\"5\",\"fa1\":\"29\",\"fa2\":\"23\",\"pnt\":\"35\"},{\"c\":\"Pirin\",\"p\":\"24\",\"w\":\"8\",\"d\":\"8\",\"l\":\"8\",\"fa1\":\"30\",\"fa2\":\"28\",\"pnt\":\"32\"},{\"c\":\"Etar\",\"p\":\"24\",\"w\":\"8\",\"d\":\"8\",\"l\":\"8\",\"fa1\":\"28\",\"fa2\":\"34\",\"pnt\":\"32\"},{\"c\":\"Hebar 1918\",\"p\":\"23\",\"w\":\"9\",\"d\":\"4\",\"l\":\"10\",\"fa1\":\"31\",\"fa2\":\"37\",\"pnt\":\"31\"},{\"c\":\"Lokomotiv G-O\",\"p\":\"25\",\"w\":\"7\",\"d\":\"8\",\"l\":\"10\",\"fa1\":\"26\",\"fa2\":\"32\",\"pnt\":\"29\"},{\"c\":\"Ludogorets-2\",\"p\":\"25\",\"w\":\"7\",\"d\":\"6\",\"l\":\"12\",\"fa1\":\"29\",\"fa2\":\"37\",\"pnt\":\"27\"},{\"c\":\"Minior Pernik\",\"p\":\"26\",\"w\":\"6\",\"d\":\"9\",\"l\":\"11\",\"fa1\":\"25\",\"fa2\":\"33\",\"pnt\":\"27\"},{\"c\":\"Sevlievo\",\"p\":\"24\",\"w\":\"7\",\"d\":\"5\",\"l\":\"12\",\"fa1\":\"21\",\"fa2\":\"29\",\"pnt\":\"26\"},{\"c\":\"Spartak Pleven\",\"p\":\"25\",\"w\":\"6\",\"d\":\"6\",\"l\":\"13\",\"fa1\":\"26\",\"fa2\":\"37\",\"pnt\":\"24\"},{\"c\":\"Sportist Svoge\",\"p\":\"24\",\"w\":\"6\",\"d\":\"6\",\"l\":\"12\",\"fa1\":\"21\",\"fa2\":\"37\",\"pnt\":\"24\"},{\"c\":\"Marek\",\"p\":\"24\",\"w\":\"5\",\"d\":\"8\",\"l\":\"11\",\"fa1\":\"18\",\"fa2\":\"33\",\"pnt\":\"23\"},{\"c\":\"Belasitsa\",\"p\":\"24\",\"w\":\"2\",\"d\":\"7\",\"l\":\"15\",\"fa1\":\"14\",\"fa2\":\"44\",\"pnt\":\"13\"}]}}]";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: ["","