mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-23 17:59:55 +00:00
clicking region in start screen runs init
This commit is contained in:
parent
bac7417bb7
commit
60f5c8dac0
@ -123,9 +123,11 @@ function setSelectorMatches(value){
|
|||||||
|
|
||||||
function displaySelectorMatches(){
|
function displaySelectorMatches(){
|
||||||
selectorResultsHTML.innerHTML = selectorMatches
|
selectorResultsHTML.innerHTML = selectorMatches
|
||||||
|
.concat(ALL_REGIONS)
|
||||||
.map(region => {
|
.map(region => {
|
||||||
return `<div class="selector_result" onclick="setSelectorValue('${region}')"> ${region} </div>`
|
return `<div class="selector_result" onclick="setSelectorValue('${region}');init()"> ${region} </div>`
|
||||||
})
|
})
|
||||||
|
.sort()
|
||||||
.join('');
|
.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user