2020-06-01 20:39:23 +02:00
|
|
|
<?php $cssFiles = ['/static/css/game.css']; ?>
|
2020-05-31 20:45:57 +02:00
|
|
|
<?php require ROOT . '/views/templates/main_header.php'; ?>
|
2020-05-31 00:21:29 +02:00
|
|
|
<div class="header small">
|
|
|
|
<div class="grid">
|
|
|
|
<h1>
|
2020-05-31 20:45:57 +02:00
|
|
|
<a href="/maps" title="Back to playable maps">
|
2020-06-01 20:39:23 +02:00
|
|
|
<img class="inline" src="/static/img/icon.svg">
|
2020-05-31 00:21:29 +02:00
|
|
|
<span>MapGuesser</span>
|
|
|
|
</a>
|
|
|
|
</h1>
|
2020-06-06 01:11:45 +02:00
|
|
|
<p>
|
|
|
|
<span id="mapName" class="bold"><?= $mapName ?></span><!--
|
|
|
|
--><span>Round <span id="currentRound" class="bold"></span></span><!--
|
|
|
|
--><span>Score <span id="currentScoreSum" class="bold"></span></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>
|
2020-05-31 20:45:57 +02:00
|
|
|
<script src="/static/js/game.js"></script>
|
|
|
|
<?php require ROOT . '/views/templates/main_footer.php'; ?>
|