var competitionId="101", cntId="105", name="LATVIA: Virsliga"; var jsTxt="[{\"games\":{\"g1856458\":{\"id\":\"1856458\",\"p1\":\"Liepaja\",\"p2\":\"Grobina\",\"dt\":\"2026-04-28\",\"tm\":\"17:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856459\":{\"id\":\"1856459\",\"p1\":\"Rigas FS\",\"p2\":\"Riga\",\"dt\":\"2026-04-28\",\"tm\":\"19:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"games\":{\"g1856456\":{\"id\":\"1856456\",\"p1\":\"Daugava D\",\"p2\":\"Super Nova\",\"dt\":\"2026-04-27\",\"tm\":\"17:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1856457\":{\"id\":\"1856457\",\"p1\":\"Ogre\",\"p2\":\"FK Jelgava\",\"dt\":\"2026-04-27\",\"tm\":\"18:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1856455\":{\"id\":\"1856455\",\"p1\":\"Auda\",\"p2\":\"Tukums\",\"dt\":\"2026-04-26\",\"tm\":\"13:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1856454\":{\"id\":\"1856454\",\"p1\":\"Super Nova\",\"p2\":\"Liepaja\",\"dt\":\"2026-04-23\",\"tm\":\"17:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[\"0\",\"2\"],\"c\":0,\"wn\":\"2\"},\"g1856452\":{\"id\":\"1856452\",\"p1\":\"Grobina\",\"p2\":\"Rigas FS\",\"dt\":\"2026-04-22\",\"tm\":\"17:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1856453\":{\"id\":\"1856453\",\"p1\":\"Riga\",\"p2\":\"Ogre\",\"dt\":\"2026-04-22\",\"tm\":\"18:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1856450\":{\"id\":\"1856450\",\"p1\":\"Tukums\",\"p2\":\"Daugava D\",\"dt\":\"2026-04-21\",\"tm\":\"17:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856451\":{\"id\":\"1856451\",\"p1\":\"FK Jelgava\",\"p2\":\"Auda\",\"dt\":\"2026-04-21\",\"tm\":\"19:00\",\"stT\":\"1777360035\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"3\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"2\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{\"1856452\":{\"rc1\":\"1\",\"rc2\":\"\"}},\"ev\":{\"1856450\":[{\"e\":\"goal\",\"m\":\"47\",\"p\":\"Ede Oloko\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"60\",\"p\":\"Joel Yakubu\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"51\",\"p\":\"Martins Stals\",\"c\":\"1\"}],\"1856451\":[{\"e\":\"goal\",\"m\":\"15\",\"p\":\"Alans Kangars\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"26\",\"p\":\"Roberts Melkis\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"34\",\"p\":\"Josue Vergara\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"49\",\"p\":\"Josue Vergara\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"78\",\"p\":\"Hussaini Ibrahim\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"25\",\"p\":\"Oskars Rubenis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"Glebs Kacanovs\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"Arturs Janovskis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"57\",\"p\":\"Wally Fofana\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"73\",\"p\":\"Alans Kangars\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"Aleksandrs Butovskis\",\"c\":\"1\"}],\"1856452\":[{\"e\":\"goal\",\"m\":\"61\",\"p\":\"Darko Lemajic\",\"c\":\"2\"},{\"e\":\"2yc\",\"m\":\"83\",\"p\":\"Rolandas Baravykas\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"31\",\"p\":\"Krisjanis Rupeiks\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"61\",\"p\":\"Rolandas Baravykas\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"74\",\"p\":\"Glebs Kluskins\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"77\",\"p\":\"Maksims Sidorovs\",\"c\":\"1\"}],\"1856453\":[{\"e\":\"goal\",\"m\":\"16\",\"p\":\"Orlando Galo\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"42\",\"p\":\"Mohamed Badamosi\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"53\",\"p\":\"Ramires Reginaldo\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"87\",\"p\":\"Salah Oulad\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"21\",\"p\":\"Ramires Reginaldo\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"74\",\"p\":\"Haralds Silagailis\",\"c\":\"2\"}],\"1856454\":[{\"e\":\"goal\",\"m\":\"13\",\"p\":\"Danila Patijcuks\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"33\",\"p\":\"Rodolphe Ekou\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"47\",\"p\":\"Bamba\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"20\",\"p\":\"Eduards Emsis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"58\",\"p\":\"Danila Patijcuks\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"75\",\"p\":\"Andriy Korobenko\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"78\",\"p\":\"Ingars Pulis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"79\",\"p\":\"Jegors Cirulis\",\"c\":\"1\"}],\"1856455\":[{\"e\":\"goal\",\"m\":\"22\",\"p\":\"Eduards Daskevics\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"45\",\"p\":\"Ede Oloko\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"45\",\"p\":\"Hussaini Ibrahim\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"4\",\"p\":\"Kristers Volkovs\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"16\",\"p\":\"Deniss Melniks\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"39\",\"p\":\"Kaspars Anmanis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"43\",\"p\":\"Wally Fofana\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"Rudolfs Reingolcs\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"57\",\"p\":\"Oskars Rubenis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"81\",\"p\":\"Moussa Ouedraogo\",\"c\":\"1\"}],\"1856456\":[{\"e\":\"og\",\"m\":\"89\",\"p\":\"Janis Beks\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"78\",\"p\":\"Mikus Vasilevskis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"85\",\"p\":\"Raivis Skrebels\",\"c\":\"1\"}],\"1856457\":[{\"e\":\"goal\",\"m\":\"80\",\"p\":\"Filip Hasek\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"33\",\"p\":\"Kristers Cudars\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"Martins Lormanis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"50\",\"p\":\"Aleksandrs Butovskis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"77\",\"p\":\"Roberts Melkis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"81\",\"p\":\"Tymofiy Marusiy\",\"c\":\"1\"}]}},{\"games\":{\"g1856460\":{\"id\":\"1856460\",\"p1\":\"Tukums\",\"p2\":\"FK Jelgava\",\"dt\":\"2026-05-01\",\"tm\":\"15:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856461\":{\"id\":\"1856461\",\"p1\":\"Super Nova\",\"p2\":\"Auda\",\"dt\":\"2026-05-01\",\"tm\":\"17:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856462\":{\"id\":\"1856462\",\"p1\":\"Grobina\",\"p2\":\"Daugava D\",\"dt\":\"2026-05-02\",\"tm\":\"14:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856463\":{\"id\":\"1856463\",\"p1\":\"Ogre\",\"p2\":\"Rigas FS\",\"dt\":\"2026-05-02\",\"tm\":\"16:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856464\":{\"id\":\"1856464\",\"p1\":\"Riga\",\"p2\":\"Liepaja\",\"dt\":\"2026-05-03\",\"tm\":\"15:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856465\":{\"id\":\"1856465\",\"p1\":\"FK Jelgava\",\"p2\":\"Super Nova\",\"dt\":\"2026-05-06\",\"tm\":\"17:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856466\":{\"id\":\"1856466\",\"p1\":\"Tukums\",\"p2\":\"Ogre\",\"dt\":\"2026-05-07\",\"tm\":\"17:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856467\":{\"id\":\"1856467\",\"p1\":\"Auda\",\"p2\":\"Grobina\",\"dt\":\"2026-05-07\",\"tm\":\"19:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856468\":{\"id\":\"1856468\",\"p1\":\"Daugava D\",\"p2\":\"Riga\",\"dt\":\"2026-05-08\",\"tm\":\"16:30\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856469\":{\"id\":\"1856469\",\"p1\":\"Rigas FS\",\"p2\":\"Liepaja\",\"dt\":\"2026-05-08\",\"tm\":\"18:00\",\"stT\":\"1777360036\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a915\":{\"id\":\"915\",\"nm\":\"Virsliga\"}},\"tables\":{\"915\":[{\"c\":\"Rigas FS\",\"p\":\"8\",\"w\":\"7\",\"d\":\"0\",\"l\":\"1\",\"fa1\":\"13\",\"fa2\":\"3\",\"pnt\":\"21\"},{\"c\":\"Riga\",\"p\":\"8\",\"w\":\"6\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"29\",\"fa2\":\"9\",\"pnt\":\"19\"},{\"c\":\"Auda\",\"p\":\"9\",\"w\":\"6\",\"d\":\"1\",\"l\":\"2\",\"fa1\":\"16\",\"fa2\":\"11\",\"pnt\":\"19\"},{\"c\":\"Daugava D\",\"p\":\"9\",\"w\":\"4\",\"d\":\"1\",\"l\":\"4\",\"fa1\":\"12\",\"fa2\":\"14\",\"pnt\":\"13\"},{\"c\":\"Super Nova\",\"p\":\"9\",\"w\":\"4\",\"d\":\"1\",\"l\":\"4\",\"fa1\":\"10\",\"fa2\":\"13\",\"pnt\":\"13\"},{\"c\":\"Liepaja\",\"p\":\"8\",\"w\":\"3\",\"d\":\"2\",\"l\":\"3\",\"fa1\":\"9\",\"fa2\":\"10\",\"pnt\":\"11\"},{\"c\":\"FK Jelgava\",\"p\":\"9\",\"w\":\"2\",\"d\":\"2\",\"l\":\"5\",\"fa1\":\"7\",\"fa2\":\"17\",\"pnt\":\"8\"},{\"c\":\"Grobina\",\"p\":\"8\",\"w\":\"2\",\"d\":\"2\",\"l\":\"4\",\"fa1\":\"4\",\"fa2\":\"9\",\"pnt\":\"8\"},{\"c\":\"Tukums\",\"p\":\"9\",\"w\":\"0\",\"d\":\"5\",\"l\":\"4\",\"fa1\":\"12\",\"fa2\":\"16\",\"pnt\":\"5\"},{\"c\":\"Ogre\",\"p\":\"9\",\"w\":\"0\",\"d\":\"3\",\"l\":\"6\",\"fa1\":\"5\",\"fa2\":\"15\",\"pnt\":\"3\"}]}}]";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: ["","