MCPcopy Create free account
hub / github.com/codemistic/Web-Development / gameOver

Function gameOver

typing-game/script.js:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53//game over
54function gameOver() {
55 endgameEl.innerHTML = `
56 <h1>Time ran out</h1>
57 <p>Your final score is ${score}</p>
58 <button onclick="location.reload()">Restart</button>
59 `;
60 endgameEl.style.display = "flex";
61}
62//event
63text.addEventListener("input", (e) => {
64 const insetedText = e.target.value;

Callers 1

updateTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected