2020-05-31 00:21:29 +02:00
|
|
|
<?php require 'templates/main_header.php'; ?>
|
|
|
|
<div class="header small">
|
|
|
|
<div class="grid">
|
|
|
|
<h1>
|
|
|
|
<a href="maps" title="Back to playable maps">
|
|
|
|
<?php require 'templates/icon.php'; ?>
|
|
|
|
<span>MapGuesser</span>
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
<p id="roundInfo">Round: <span id="currentRound" class="mono bold"></span> | Score: <span id="currentScoreSum" class="mono bold"></span></p>
|
2020-05-20 15:54:09 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
</div>
|
|
|
|
<div id="cover"></div>
|
|
|
|
<div id="panorama"></div>
|
|
|
|
<div id="showGuessButtonContainer">
|
|
|
|
<button id="showGuessButton" class="fullWidth">Show guess map</button>
|
|
|
|
</div>
|
|
|
|
<div id="guess">
|
|
|
|
<div id="closeGuessButtonContainer" class="buttonContainer marginBottom">
|
|
|
|
<button id="closeGuessButton" class="fullWidth gray">Close</button>
|
2020-05-30 20:13:00 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div id="map"></div>
|
|
|
|
<div id="guessButtonContainer" class="buttonContainer marginTop">
|
|
|
|
<button id="guessButton" class="fullWidth" disabled>Guess</button>
|
2020-05-21 01:58:47 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div id="resultInfo">
|
|
|
|
<div id="distanceInfo">
|
|
|
|
<p>You were <span id="distance" class="bold"></span> close.</p>
|
|
|
|
<p class="bold">Game finished.</p>
|
2020-05-21 01:58:47 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div id="scoreInfo">
|
|
|
|
<p>You earned <span id="score" class="bold"></span> points.</p>
|
|
|
|
<p>You got <span id="scoreSum" class="bold"></span> points in total.</p>
|
2020-05-17 19:29:06 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div>
|
|
|
|
<div id="scoreBarBase">
|
|
|
|
<div id="scoreBar"></div>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
2020-05-23 02:07:50 +02:00
|
|
|
</div>
|
2020-05-19 16:18:12 +02:00
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div id="continueButtonContainer" class="buttonContainer marginTop">
|
|
|
|
<button id="continueButton" class="fullWidth">Continue</button>
|
|
|
|
<button id="showSummaryButton" class="fullWidth">Show summary</button>
|
|
|
|
<button id="startNewGameButton" class="fullWidth">Play this map again</button>
|
|
|
|
</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/game.js"></script>
|
|
|
|
<?php require 'templates/main_footer.php'; ?>
|