Compare commits
No commits in common. "28cd8535f83645bd4000fe418899402a144183d3" and "a5b12ece17fcce8528ab1ce8213be176bf23db2d" have entirely different histories.
28cd8535f8
...
a5b12ece17
@ -1,7 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: linear-gradient(135deg, #8a2be2 0%, #cc2b89 50%, #d524e5 100%);
|
background: linear-gradient(135deg, #8a2be2 0%, #cc2b89 50%, #ff8a3d 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