mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-27 19:59:54 +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;
|
state.answer = countries[newQuestion].capital;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update HTML elements to reflect values of state
|
||||||
function updateScreen(){
|
function updateScreen(){
|
||||||
scoreHTML.innerHTML = state.score + "/" + state.maxScore;
|
scoreHTML.innerHTML = state.score + "/" + state.maxScore;
|
||||||
if (state.finishedGame) {
|
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";
|
answers.style.display = "none";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user