show loading screen
This commit is contained in:
@ -511,9 +511,13 @@ function newGame() {
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loading').addClass('active');
|
||||
|
||||
fetch('/play').then(res => res.json()).then(function(states) {
|
||||
playing = true;
|
||||
|
||||
$('#loading').removeClass('active');
|
||||
|
||||
var i = 0;
|
||||
setTimeout(function p() {
|
||||
if (!playing) return;
|
||||
|
Reference in New Issue
Block a user