Compare commits

..

2 Commits

2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
body {
margin: 0;
padding: 0;
background: linear-gradient(135deg, #8a2be2 0%, #cc2b89 50%, #ff8a3d 100%);
background: linear-gradient(135deg, #8a2be2 0%, #cc2b89 50%, #d524e5 100%);
background-attachment: fixed;
background-size: cover;
font-family: "Poppins", sans-serif;

View File

@ -87,7 +87,7 @@ function flipCard(card, img) {
}
}
// ======= START GAME =========
function startGame() {
const board = document.getElementById("game-board");
board.innerHTML = "";
@ -109,7 +109,7 @@ function startGame() {
board.appendChild(card);
});
// reset timer, score, moves
time = 60;
timerElement.textContent = time;
timerStarted = false;
@ -119,5 +119,5 @@ function startGame() {
scoreElement.textContent = score;
}
// ======= MULAI GAME =========
startGame();