From 8aec14698731e52e497a5c93815031c293dac883 Mon Sep 17 00:00:00 2001 From: Mateo Date: Thu, 6 Feb 2025 23:18:32 -0300 Subject: [PATCH] v1.2.1 Mejoras y arreglos --- ...CUDOS_150x200 SAN MIGUEL.png => Monte.png} | Bin Partidos/Escudos/{Zarate-.png => Zarate.png} | Bin caba.html | 6 ++--- provincia.html | 4 +-- style.css | 2 ++ utils/game.js | 23 +++++++++++------- 6 files changed, 21 insertions(+), 14 deletions(-) rename Partidos/Escudos/{ESCUDOS_150x200 SAN MIGUEL.png => Monte.png} (100%) rename Partidos/Escudos/{Zarate-.png => Zarate.png} (100%) diff --git a/Partidos/Escudos/ESCUDOS_150x200 SAN MIGUEL.png b/Partidos/Escudos/Monte.png similarity index 100% rename from Partidos/Escudos/ESCUDOS_150x200 SAN MIGUEL.png rename to Partidos/Escudos/Monte.png diff --git a/Partidos/Escudos/Zarate-.png b/Partidos/Escudos/Zarate.png similarity index 100% rename from Partidos/Escudos/Zarate-.png rename to Partidos/Escudos/Zarate.png diff --git a/caba.html b/caba.html index e453f41..81b5ddc 100644 --- a/caba.html +++ b/caba.html @@ -25,7 +25,7 @@
- 0/135 + 0/49 0% 00:00 Haz clic en Area @@ -36,7 +36,7 @@
- + @@ -88,7 +88,7 @@ -
- 0/135 + 0/136 0% 00:00 Haz clic en Area @@ -36,7 +36,7 @@
- + { const fill = window.getComputedStyle(path).fill.toLowerCase(); - if (fill === "rgb(243, 243, 243)" || fill === "white" || - fill === "rgb(226, 178, 45)" || fill === "yellow" || - fill === "rgb(191, 65, 64)" || fill === "red") { - solved++; + if (fill === "rgb(243, 243, 243)" || fill === "rgb(226, 178, 45)") { + solvedCorrect++; + } + if (fill === "rgb(191, 65, 64)") { + solvedIncorrect++; } }); - return solved; + + return solvedCorrect + solvedIncorrect; } // Función para actualizar el contador y el porcentaje en la interfaz @@ -61,7 +66,7 @@ function updateObjectiveDisplay() { objectiveSpan.textContent = `${solvedCount}/${totalObjectives}`; } if (percentageSpan) { - const percent = Math.floor((solvedCount / totalObjectives) * 100); + const percent = Math.floor((solvedCorrect / totalObjectives) * 100); percentageSpan.textContent = `${percent}%`; } }