Function test
This commit is contained in:
parent
1369d1cfbb
commit
20483d4c40
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,8 @@ document.getElementById('bustGhost').addEventListener('click', function() {
|
||||||
ghostGameRunning = false;
|
ghostGameRunning = false;
|
||||||
document.getElementById('bustGhost').style.display = 'none';
|
document.getElementById('bustGhost').style.display = 'none';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function jjm(){
|
||||||
timerHistory.push(time);
|
timerHistory.push(time);
|
||||||
const newTime = document.createElement('li');
|
const newTime = document.createElement('li');
|
||||||
newTime.textContent = `Time: ${time} ms`;
|
newTime.textContent = `Time: ${time} ms`;
|
||||||
|
@ -51,4 +53,4 @@ document.getElementById('timerButton').addEventListener('click', function() {
|
||||||
this.textContent = 'Start Timer';
|
this.textContent = 'Start Timer';
|
||||||
recordTime(elapsedTime);
|
recordTime(elapsedTime);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue