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

+2 -1
View File
@@ -48,9 +48,10 @@
</div>
</div>
<script>
var mapId = '<?= $mapId ?>';
var mapBounds = <?= json_encode($bounds) ?>;
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>"></script>
<script src="static/js/mapguesser.js"></script>
<script src="static/js/game.js"></script>
</body>
</html>