Merge branch 'main' of https://git-eng.ukwms.ac.id/2526-web/Kelompok02-Memory-Card
This commit is contained in:
commit
0aad47501a
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user