MAPG-6 add score element to game HTML

This commit is contained in:
Bence Pőcze 2020-05-20 01:05:46 +02:00
parent e15421af8b
commit 916995161f

View File

@ -17,11 +17,22 @@
<div id="result"> <div id="result">
<div id="resultMap"></div> <div id="resultMap"></div>
<div id="resultInfo"> <div id="resultInfo">
<p>You were <span id="distance" class="bold"></span> close.</p> <div>
<button id="continueButton">Continue</button> <p>You were <span id="distance" class="bold"></span> close.</p>
</div>
<div>
<p>You earned <span id="score" class="bold"></span> points.</p>
</div>
<div>
<div id="scoreBarBase"><div id="scoreBar"></div></div>
</div>
<div>
<button id="continueButton">Continue</button>
</div>
</div> </div>
</div> </div>
<script> <script>
var mapArea = <?= $bounds->calculateApproximateArea() ?>;
var guessMapBounds = <?= $bounds->toJson() ?>; var guessMapBounds = <?= $bounds->toJson() ?>;
</script> </script>
<script src="static/js/mapguesser.js" async defer></script> <script src="static/js/mapguesser.js" async defer></script>