mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-23 17:59:55 +00:00
change finish screen message
This commit is contained in:
parent
dcbcf39b97
commit
bac7417bb7
@ -83,10 +83,11 @@ function updateState() {
|
||||
state.answer = countries[newQuestion].capital;
|
||||
}
|
||||
|
||||
// update HTML elements to reflect values of state
|
||||
function updateScreen(){
|
||||
scoreHTML.innerHTML = state.score + "/" + state.maxScore;
|
||||
if (state.finishedGame) {
|
||||
questionHTML.innerHTML = "you finishedeededede!!! tap here or press space to restart";
|
||||
questionHTML.innerHTML = "woooooooo!! tap here or press enter to restart";
|
||||
answers.style.display = "none";
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user