minor changes

This commit is contained in:
Akbar Rahman 2021-05-04 20:54:24 +01:00
parent fd08d84cc6
commit 78324fcef5
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ def main(args):
'region': country['region'], 'region': country['region'],
'subregion': country['subregion'], 'subregion': country['subregion'],
'languages': country['languages'] 'languages': country['languages']
} }
print('countries = ', end='') print('countries = ', end='')
print(json.dumps(r)) print(json.dumps(r))

View File

@ -108,7 +108,7 @@ function updateScreen(){
answerBHTML.getElementsByClassName("text")[0].innerHTML = state.options[1]; answerBHTML.getElementsByClassName("text")[0].innerHTML = state.options[1];
answerCHTML.getElementsByClassName("text")[0].innerHTML = state.options[2]; answerCHTML.getElementsByClassName("text")[0].innerHTML = state.options[2];
answerDHTML.getElementsByClassName("text")[0].innerHTML = state.options[3]; answerDHTML.getElementsByClassName("text")[0].innerHTML = state.options[3];
questionHTML.innerHTML = "what is the capital of <span id=\"questionCountry\">" + state.question + "</span>?"; questionHTML.innerHTML = `what is the capital of <span id="questionCountry">${state.question}</span>?`;
} }