Add 1 files
Browse files- index.html +11 -11
index.html
CHANGED
|
@@ -386,7 +386,7 @@
|
|
| 386 |
Level: <span id="memoryGameLevel">1</span>/10
|
| 387 |
</div>
|
| 388 |
<div class="bg-purple-100 px-3 py-1 rounded-full">
|
| 389 |
-
Attempts: <span id="memoryAttempts">
|
| 390 |
</div>
|
| 391 |
<button onclick="closeGame('memory')" class="text-gray-500 hover:text-gray-700">
|
| 392 |
<i class="fas fa-times"></i>
|
|
@@ -421,7 +421,7 @@
|
|
| 421 |
Level: <span id="sequenceGameLevel">1</span>/10
|
| 422 |
</div>
|
| 423 |
<div class="bg-green-100 px-3 py-1 rounded-full">
|
| 424 |
-
Attempts: <span id="sequenceAttempts">
|
| 425 |
</div>
|
| 426 |
<button onclick="closeGame('sequence')" class="text-gray-500 hover:text-gray-700">
|
| 427 |
<i class="fas fa-times"></i>
|
|
@@ -465,7 +465,7 @@
|
|
| 465 |
Level: <span id="differenceGameLevel">1</span>/10
|
| 466 |
</div>
|
| 467 |
<div class="bg-yellow-100 px-3 py-1 rounded-full">
|
| 468 |
-
Attempts: <span id="differenceAttempts">
|
| 469 |
</div>
|
| 470 |
<button onclick="closeGame('difference')" class="text-gray-500 hover:text-gray-700">
|
| 471 |
<i class="fas fa-times"></i>
|
|
@@ -501,7 +501,7 @@
|
|
| 501 |
</div>
|
| 502 |
|
| 503 |
<!-- Word Finder Puzzle Game Modal -->
|
| 504 |
-
<div id="wordfinderModal" class="
|
| 505 |
<div class="bg-white rounded-xl p-6 w-full max-w-4xl max-h-screen overflow-y-auto">
|
| 506 |
<div class="flex justify-between items-center mb-6">
|
| 507 |
<h2 class="text-2xl font-bold text-indigo-700">Word Finder Puzzle</h2>
|
|
@@ -510,7 +510,7 @@
|
|
| 510 |
Level: <span id="wordfinderGameLevel">1</span>/10
|
| 511 |
</div>
|
| 512 |
<div class="bg-indigo-100 px-3 py-1 rounded-full">
|
| 513 |
-
Attempts: <span id="wordfinderAttempts">
|
| 514 |
</div>
|
| 515 |
<button onclick="closeGame('wordfinder')" class="text-gray-500 hover:text-gray-700">
|
| 516 |
<i class="fas fa-times"></i>
|
|
@@ -599,10 +599,10 @@
|
|
| 599 |
wordfinder: { level: 1, score: 0, locked: false }
|
| 600 |
},
|
| 601 |
attempts: {
|
| 602 |
-
memory:
|
| 603 |
-
sequence:
|
| 604 |
-
difference:
|
| 605 |
-
wordfinder:
|
| 606 |
}
|
| 607 |
};
|
| 608 |
|
|
@@ -705,8 +705,8 @@
|
|
| 705 |
function startGame(gameType) {
|
| 706 |
gameState.currentGame = gameType;
|
| 707 |
|
| 708 |
-
// Reset attempts for this game
|
| 709 |
-
gameState.attempts[gameType] =
|
| 710 |
|
| 711 |
// Show the appropriate modal
|
| 712 |
document.getElementById(`${gameType}Modal`).classList.remove('hidden');
|
|
|
|
| 386 |
Level: <span id="memoryGameLevel">1</span>/10
|
| 387 |
</div>
|
| 388 |
<div class="bg-purple-100 px-3 py-1 rounded-full">
|
| 389 |
+
Attempts: <span id="memoryAttempts">10</span>
|
| 390 |
</div>
|
| 391 |
<button onclick="closeGame('memory')" class="text-gray-500 hover:text-gray-700">
|
| 392 |
<i class="fas fa-times"></i>
|
|
|
|
| 421 |
Level: <span id="sequenceGameLevel">1</span>/10
|
| 422 |
</div>
|
| 423 |
<div class="bg-green-100 px-3 py-1 rounded-full">
|
| 424 |
+
Attempts: <span id="sequenceAttempts">10</span>
|
| 425 |
</div>
|
| 426 |
<button onclick="closeGame('sequence')" class="text-gray-500 hover:text-gray-700">
|
| 427 |
<i class="fas fa-times"></i>
|
|
|
|
| 465 |
Level: <span id="differenceGameLevel">1</span>/10
|
| 466 |
</div>
|
| 467 |
<div class="bg-yellow-100 px-3 py-1 rounded-full">
|
| 468 |
+
Attempts: <span id="differenceAttempts">10</span>
|
| 469 |
</div>
|
| 470 |
<button onclick="closeGame('difference')" class="text-gray-500 hover:text-gray-700">
|
| 471 |
<i class="fas fa-times"></i>
|
|
|
|
| 501 |
</div>
|
| 502 |
|
| 503 |
<!-- Word Finder Puzzle Game Modal -->
|
| 504 |
+
<div id="wordfinderModal" class="flex inset-0 bg-black bg-opacity-50 items-center justify-center hidden z-50 fixed">
|
| 505 |
<div class="bg-white rounded-xl p-6 w-full max-w-4xl max-h-screen overflow-y-auto">
|
| 506 |
<div class="flex justify-between items-center mb-6">
|
| 507 |
<h2 class="text-2xl font-bold text-indigo-700">Word Finder Puzzle</h2>
|
|
|
|
| 510 |
Level: <span id="wordfinderGameLevel">1</span>/10
|
| 511 |
</div>
|
| 512 |
<div class="bg-indigo-100 px-3 py-1 rounded-full">
|
| 513 |
+
Attempts: <span id="wordfinderAttempts">10</span>
|
| 514 |
</div>
|
| 515 |
<button onclick="closeGame('wordfinder')" class="text-gray-500 hover:text-gray-700">
|
| 516 |
<i class="fas fa-times"></i>
|
|
|
|
| 599 |
wordfinder: { level: 1, score: 0, locked: false }
|
| 600 |
},
|
| 601 |
attempts: {
|
| 602 |
+
memory: 10,
|
| 603 |
+
sequence: 10,
|
| 604 |
+
difference: 10,
|
| 605 |
+
wordfinder: 10
|
| 606 |
}
|
| 607 |
};
|
| 608 |
|
|
|
|
| 705 |
function startGame(gameType) {
|
| 706 |
gameState.currentGame = gameType;
|
| 707 |
|
| 708 |
+
// Reset attempts for this game to 10
|
| 709 |
+
gameState.attempts[gameType] = 10;
|
| 710 |
|
| 711 |
// Show the appropriate modal
|
| 712 |
document.getElementById(`${gameType}Modal`).classList.remove('hidden');
|