diff --git a/gameboard.css b/gameboard.css index f358365..70aa784 100644 --- a/gameboard.css +++ b/gameboard.css @@ -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; diff --git a/gameboard.js b/gameboard.js index 6a87902..1fb60aa 100644 --- a/gameboard.js +++ b/gameboard.js @@ -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();