2020-05-17 19:29:06 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2020-05-21 01:58:47 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-05-17 19:29:06 +02:00
|
|
|
<title>MapGuesser</title>
|
2020-05-19 16:18:12 +02:00
|
|
|
<link href="static/css/mapguesser.css" rel="stylesheet">
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap" rel="stylesheet">
|
2020-05-17 19:29:06 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-05-20 15:54:09 +02:00
|
|
|
<div id="loading">
|
|
|
|
<img src="static/img/loading.gif">
|
|
|
|
</div>
|
2020-05-17 19:29:06 +02:00
|
|
|
<div id="panorama"></div>
|
2020-05-21 01:58:47 +02:00
|
|
|
<div id="showGuessButtonContainer">
|
|
|
|
<button id="showGuessButton" class="block">Show guess map</button>
|
|
|
|
</div>
|
2020-05-17 19:29:06 +02:00
|
|
|
<div id="guess">
|
2020-05-21 01:58:47 +02:00
|
|
|
<div id="closeGuessButtonContainer" class="buttonContainer top">
|
|
|
|
<button id="closeGuessButton" class="block gray">Close</button>
|
|
|
|
</div>
|
2020-05-22 23:23:54 +02:00
|
|
|
<div id="map"></div>
|
2020-05-22 23:22:11 +02:00
|
|
|
<div id="guessButtonContainer" class="buttonContainer bottom">
|
2020-05-21 01:58:47 +02:00
|
|
|
<button id="guessButton" class="block" disabled>Guess</button>
|
2020-05-17 19:29:06 +02:00
|
|
|
</div>
|
2020-05-19 16:18:12 +02:00
|
|
|
<div id="resultInfo">
|
2020-05-21 23:43:17 +02:00
|
|
|
<div id="distanceInfo">
|
2020-05-20 01:05:46 +02:00
|
|
|
<p>You were <span id="distance" class="bold"></span> close.</p>
|
2020-05-21 23:43:17 +02:00
|
|
|
<p class="bold">Game finished.</p>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
2020-05-21 23:43:17 +02:00
|
|
|
<div id="scoreInfo">
|
2020-05-20 01:05:46 +02:00
|
|
|
<p>You earned <span id="score" class="bold"></span> points.</p>
|
2020-05-21 23:43:17 +02:00
|
|
|
<p>You got <span id="scoreSum" class="bold"></span> points in total.</p>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2020-05-22 23:22:11 +02:00
|
|
|
<div id="scoreBarBase">
|
|
|
|
<div id="scoreBar"></div>
|
|
|
|
</div>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button id="continueButton">Continue</button>
|
2020-05-21 23:43:17 +02:00
|
|
|
<button id="showSummaryButton">Show summary</button>
|
|
|
|
<button id="startNewGameButton">Start new game</button>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
2020-05-19 16:18:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-17 19:29:06 +02:00
|
|
|
<script>
|
2020-05-20 01:05:46 +02:00
|
|
|
var mapArea = <?= $bounds->calculateApproximateArea() ?>;
|
2020-05-17 19:29:06 +02:00
|
|
|
var guessMapBounds = <?= $bounds->toJson() ?>;
|
|
|
|
</script>
|
2020-05-20 03:19:53 +02:00
|
|
|
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>"></script>
|
2020-05-20 01:54:14 +02:00
|
|
|
<script src="static/js/mapguesser.js"></script>
|
2020-05-17 19:29:06 +02:00
|
|
|
</body>
|
2020-05-17 22:28:34 +02:00
|
|
|
</html>
|