Compare commits
No commits in common. "e7a6cfb90ad82635234d306f37bb505645da912a" and "e0c065313e7b6ceebc2c0890ed34facd4ee10b8c" have entirely different histories.
e7a6cfb90a
...
e0c065313e
17
gameboard.js
17
gameboard.js
@ -1,17 +0,0 @@
|
||||
let time = 60;
|
||||
let timerElement = document.getElementById("timer");
|
||||
|
||||
let countdown = setInterval(() => {
|
||||
|
||||
time--;
|
||||
timerElement.textContent = time;
|
||||
|
||||
if (time <= 0) {
|
||||
clearInterval(countdown);
|
||||
timerElement.textContent = "0";
|
||||
|
||||
alert("Waktu Habis");
|
||||
}
|
||||
|
||||
}, 1000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user