var competitionId="101", cntId="105", name="LATVIA: Virsliga"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1856497\":{\"id\":\"1856497\",\"p1\":\"Ogre\",\"p2\":\"Riga\",\"dt\":\"2026-06-13\",\"tm\":\"13:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"4\"},\"rP\":[\"0\",\"2\"],\"c\":0,\"wn\":\"2\"},\"g1856498\":{\"id\":\"1856498\",\"p1\":\"Grobina\",\"p2\":\"Rigas FS\",\"dt\":\"2026-06-13\",\"tm\":\"15:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"3\"},\"rP\":[\"0\",\"2\"],\"c\":0,\"wn\":\"2\"},\"g1856499\":{\"id\":\"1856499\",\"p1\":\"Auda\",\"p2\":\"FK Jelgava\",\"dt\":\"2026-06-13\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"0\"},\"g1856495\":{\"id\":\"1856495\",\"p1\":\"Tukums\",\"p2\":\"Daugava D\",\"dt\":\"2026-06-12\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856496\":{\"id\":\"1856496\",\"p1\":\"Liepaja\",\"p2\":\"Super Nova\",\"dt\":\"2026-06-12\",\"tm\":\"18:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"1\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{\"1856495\":{\"rc1\":\"1\",\"rc2\":\"\"}},\"ev\":{\"1856495\":[{\"e\":\"goal\",\"m\":\"75\",\"p\":\"Rudolfs Melkis\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"88\",\"p\":\"Rostand Ndjiki\",\"c\":\"2\"},{\"e\":\"2yc\",\"m\":\"46\",\"p\":\"Kristers Volkovs\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"25\",\"p\":\"Kristers Volkovs\",\"c\":\"1\"}],\"1856496\":[{\"e\":\"goal\",\"m\":\"28\",\"p\":\"Valerijs Lizunovs\",\"c\":\"2\"},{\"e\":\"pen\",\"m\":\"37\",\"p\":\"Djibril Gueye\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"45\",\"p\":\"Danila Patijcuks\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"42\",\"p\":\"Kyvon Leidsman\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"60\",\"p\":\"Ilja Korotkovs\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"72\",\"p\":\"Jegors Cirulis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"80\",\"p\":\"Eduards Emsis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"87\",\"p\":\"Facu\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"Marcis Oss\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"Marvin Martins\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"Davis Oss\",\"c\":\"1\"}],\"1856497\":[{\"e\":\"pen\",\"m\":\"17\",\"p\":\"Mohamed Badamosi\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"32\",\"p\":\"Raivis Jurkovskis\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"48\",\"p\":\"Maksims Tonisevs\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"57\",\"p\":\"Emils Evelons\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"65\",\"p\":\"Salah Oulad\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"14\",\"p\":\"Felipe Machado\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"60\",\"p\":\"Matviy Marusiy\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"70\",\"p\":\"Raki Aouani\",\"c\":\"2\"}],\"1856498\":[{\"e\":\"goal\",\"m\":\"21\",\"p\":\"Modou Saidy\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"31\",\"p\":\"Martins Kigurs\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"80\",\"p\":\"Roberts Veips\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"82\",\"p\":\"Artjoms Puzirevskis\",\"c\":\"1\"},{\"e\":\"m.pen\",\"m\":\"50\",\"p\":\"Rolandas Baravykas\",\"c\":\"1\"}],\"1856499\":[{\"e\":\"goal\",\"m\":\"45\",\"p\":\"Alans Kangars\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"59\",\"p\":\"Eduards Daskevics\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"15\",\"p\":\"Kader Kone\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"Tomas Rataj\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"60\",\"p\":\"Rihards Becers\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"65\",\"p\":\"Glebs Zaleiko\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"76\",\"p\":\"Josue Vergara\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"Barthelemy Diedhiou\",\"c\":\"1\"}]}},{\"games\":{\"g1856500\":{\"id\":\"1856500\",\"p1\":\"Daugava D\",\"p2\":\"Super Nova\",\"dt\":\"2026-06-16\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856501\":{\"id\":\"1856501\",\"p1\":\"Grobina\",\"p2\":\"Liepaja\",\"dt\":\"2026-06-16\",\"tm\":\"18:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856503\":{\"id\":\"1856503\",\"p1\":\"FK Jelgava\",\"p2\":\"Ogre\",\"dt\":\"2026-06-17\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856502\":{\"id\":\"1856502\",\"p1\":\"Tukums\",\"p2\":\"Auda\",\"dt\":\"2026-06-17\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856504\":{\"id\":\"1856504\",\"p1\":\"Riga\",\"p2\":\"Rigas FS\",\"dt\":\"2026-06-17\",\"tm\":\"18:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856505\":{\"id\":\"1856505\",\"p1\":\"Daugava D\",\"p2\":\"Grobina\",\"dt\":\"2026-06-20\",\"tm\":\"15:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856507\":{\"id\":\"1856507\",\"p1\":\"Super Nova\",\"p2\":\"Auda\",\"dt\":\"2026-06-21\",\"tm\":\"13:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856506\":{\"id\":\"1856506\",\"p1\":\"FK Jelgava\",\"p2\":\"Tukums\",\"dt\":\"2026-06-21\",\"tm\":\"15:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856508\":{\"id\":\"1856508\",\"p1\":\"Riga\",\"p2\":\"Liepaja\",\"dt\":\"2026-06-21\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856509\":{\"id\":\"1856509\",\"p1\":\"Rigas FS\",\"p2\":\"Ogre\",\"dt\":\"2026-06-22\",\"tm\":\"17:00\",\"stT\":\"1781506974\",\"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\":\"17\",\"w\":\"15\",\"d\":\"1\",\"l\":\"1\",\"fa1\":\"41\",\"fa2\":\"12\",\"pnt\":\"46\"},{\"c\":\"Riga\",\"p\":\"17\",\"w\":\"13\",\"d\":\"3\",\"l\":\"1\",\"fa1\":\"54\",\"fa2\":\"18\",\"pnt\":\"42\"},{\"c\":\"Auda\",\"p\":\"17\",\"w\":\"11\",\"d\":\"2\",\"l\":\"4\",\"fa1\":\"33\",\"fa2\":\"21\",\"pnt\":\"35\"},{\"c\":\"Liepaja\",\"p\":\"17\",\"w\":\"7\",\"d\":\"4\",\"l\":\"6\",\"fa1\":\"23\",\"fa2\":\"24\",\"pnt\":\"25\"},{\"c\":\"Super Nova\",\"p\":\"17\",\"w\":\"6\",\"d\":\"2\",\"l\":\"9\",\"fa1\":\"19\",\"fa2\":\"25\",\"pnt\":\"20\"},{\"c\":\"Daugava D\",\"p\":\"17\",\"w\":\"5\",\"d\":\"4\",\"l\":\"8\",\"fa1\":\"20\",\"fa2\":\"25\",\"pnt\":\"19\"},{\"c\":\"FK Jelgava\",\"p\":\"17\",\"w\":\"3\",\"d\":\"7\",\"l\":\"7\",\"fa1\":\"13\",\"fa2\":\"31\",\"pnt\":\"16\"},{\"c\":\"Tukums\",\"p\":\"17\",\"w\":\"2\",\"d\":\"8\",\"l\":\"7\",\"fa1\":\"30\",\"fa2\":\"31\",\"pnt\":\"14\"},{\"c\":\"Grobina\",\"p\":\"17\",\"w\":\"2\",\"d\":\"7\",\"l\":\"8\",\"fa1\":\"11\",\"fa2\":\"29\",\"pnt\":\"13\"},{\"c\":\"Ogre\",\"p\":\"17\",\"w\":\"0\",\"d\":\"4\",\"l\":\"13\",\"fa1\":\"14\",\"fa2\":\"42\",\"pnt\":\"4\"}]}}]";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: ["","