MAPG-73 pass mapId to GameController and PositionController

adapt JS to send mapId
make separate JS for the game
This commit is contained in:
bence committed 2020-05-30 15:33:28 +02:00
1 parent 1ca023e612
commit 92c35a2087
6 files changed
+38 -51

No files matched your search

@@ -51,7 +51,7 @@
Core.startNewRound();
};
xhr.open('GET', 'position.json', true);
xhr.open('GET', 'position.json?map=' + mapId, true);
xhr.send();
},
@@ -127,7 +127,7 @@
Core.resetGame();
};
xhr.open('GET', 'game.json', true);
xhr.open('GET', 'game.json?map=' + mapId, true);
xhr.send();
},
@@ -200,7 +200,7 @@
Core.panoId = this.response.panoId;
};
xhr.open('POST', 'position.json', true);
xhr.open('POST', 'position.json?map=' + mapId, true);
xhr.send(data);
},