Remove loading indicator at the right time

This commit is contained in:
Lavender Perry 2021-07-18 18:42:32 -07:00
parent 9a39bf1bea
commit 61187f27e7
Signed by untrusted user: elle
GPG Key ID: EF8E44AF715C28A0
1 changed files with 10 additions and 10 deletions

20
main.js
View File

@ -38,22 +38,22 @@ fetch(datablase + "allTeams").then(function(response) {
results.style.display = "block"
// Get shadowed ready for display
display_teams(ttShadows, gameTeams, results_shadowed)
// Get FK results ready for display
display_teams(teamTotal, teams, fkresults)
display_teams(ttShadows, teams, fkresults_shadowed)
// Set the input function for & display the options form
options.oninput = optionsInputHandler
options.style.display = "block"
// Remove the loading indicator
progress.remove()
})
} else {
aerror()
}
})
// Get FK results ready for display
display_teams(teamTotal, teams, fkresults)
display_teams(ttShadows, teams, fkresults_shadowed)
})
// Set the input function for & display the options form
options.oninput = optionsInputHandler
options.style.display = "block"
progress.remove()
} else {
aerror()
}