Compare commits
2 Commits
a5b12ece17
...
28cd8535f8
| Author | SHA1 | Date | |
|---|---|---|---|
| 28cd8535f8 | |||
| 0aad47501a |
@ -1,7 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 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-attachment: fixed;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
font-family: "Poppins", sans-serif;
|
font-family: "Poppins", sans-serif;
|
||||||
|
|||||||
@ -87,7 +87,7 @@ function flipCard(card, img) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======= START GAME =========
|
|
||||||
function startGame() {
|
function startGame() {
|
||||||
const board = document.getElementById("game-board");
|
const board = document.getElementById("game-board");
|
||||||
board.innerHTML = "";
|
board.innerHTML = "";
|
||||||
@ -109,7 +109,7 @@ function startGame() {
|
|||||||
board.appendChild(card);
|
board.appendChild(card);
|
||||||
});
|
});
|
||||||
|
|
||||||
// reset timer, score, moves
|
|
||||||
time = 60;
|
time = 60;
|
||||||
timerElement.textContent = time;
|
timerElement.textContent = time;
|
||||||
timerStarted = false;
|
timerStarted = false;
|
||||||
@ -119,5 +119,5 @@ function startGame() {
|
|||||||
scoreElement.textContent = score;
|
scoreElement.textContent = score;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======= MULAI GAME =========
|
|
||||||
startGame();
|
startGame();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user