fixed #70
This commit is contained in:
parent
76ba246612
commit
ad13554843
|
@ -34,11 +34,9 @@ $(document).ready(function (){
|
||||||
|
|
||||||
const insertGame = (gridboxnum, gamestate, timestamp) => {
|
const insertGame = (gridboxnum, gamestate, timestamp) => {
|
||||||
var thisBox = grid.children[gridboxnum];
|
var thisBox = grid.children[gridboxnum];
|
||||||
|
thisBox.className = "game";
|
||||||
|
thisBox.timestamp = timestamp;
|
||||||
fetch("/static/game.html").then(x=>x.text()).then(gamehtml => {
|
fetch("/static/game.html").then(x=>x.text()).then(gamehtml => {
|
||||||
console.log(gamehtml)
|
|
||||||
console.log(thisBox)
|
|
||||||
thisBox.className = "game";
|
|
||||||
thisBox.timestamp = timestamp;
|
|
||||||
thisBox.innerHTML = gamehtml;
|
thisBox.innerHTML = gamehtml;
|
||||||
updateGame(thisBox, gamestate);
|
updateGame(thisBox, gamestate);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user