57 lines
2.3 KiB
PHP
57 lines
2.3 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>MapGuesser</title>
|
|
<link href="static/css/mapguesser.css" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&family=Roboto+Mono:wght@300;500&display=swap" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div id="loading">
|
|
<img src="static/img/loading.svg">
|
|
</div>
|
|
<div id="roundInfo">
|
|
<p>Round: <span id="currentRound" class="mono bold"></span> | Score: <span id="currentScoreSum" class="mono bold"></span></p>
|
|
</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 top">
|
|
<button id="closeGuessButton" class="fullWidth gray">Close</button>
|
|
</div>
|
|
<div id="map"></div>
|
|
<div id="guessButtonContainer" class="buttonContainer bottom">
|
|
<button id="guessButton" class="fullWidth" disabled>Guess</button>
|
|
</div>
|
|
<div id="resultInfo">
|
|
<div id="distanceInfo">
|
|
<p>You were <span id="distance" class="bold"></span> close.</p>
|
|
<p class="bold">Game finished.</p>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<div>
|
|
<div id="scoreBarBase">
|
|
<div id="scoreBar"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="continueButtonContainer" class="buttonContainer bottom">
|
|
<button id="continueButton" class="fullWidth">Continue</button>
|
|
<button id="showSummaryButton" class="fullWidth">Show summary</button>
|
|
<button id="startNewGameButton" class="fullWidth">Start new game</button>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
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>
|
|
</body>
|
|
</html>
|