Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +27 -28
templates/index.html
CHANGED
|
@@ -9,6 +9,7 @@
|
|
| 9 |
<body>
|
| 10 |
<div id="game-container">
|
| 11 |
<h1>Pennyflip</h1>
|
|
|
|
| 12 |
<div id="info">
|
| 13 |
Balance: $<span id="balance">0.00</span> | Flips left: <span id="flips-left">1000</span>
|
| 14 |
</div>
|
|
@@ -27,8 +28,8 @@
|
|
| 27 |
Cost: ${{ "%.2f"|format(coin.price) }}<br>
|
| 28 |
Value: ${{ "%.2f"|format(coin.value) }}<br>
|
| 29 |
Win rate: {{ "%.2f"|format(coin.winrate) }}<br>
|
| 30 |
-
{% if coin.
|
| 31 |
-
|
| 32 |
{% endif %}
|
| 33 |
</div>
|
| 34 |
</div>
|
|
@@ -40,37 +41,35 @@
|
|
| 40 |
<div id="leaderboard">
|
| 41 |
<h2>Leaderboard</h2>
|
| 42 |
<table>
|
| 43 |
-
<
|
| 44 |
-
<
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
{
|
| 52 |
-
<
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
<td>${{ "%.2f"|format(entry.score) }}</td>
|
| 56 |
-
</tr>
|
| 57 |
-
{% endfor %}
|
| 58 |
-
</tbody>
|
| 59 |
</table>
|
| 60 |
</div>
|
|
|
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
</div>
|
| 70 |
</div>
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
|
|
|
| 74 |
</div>
|
| 75 |
</div>
|
| 76 |
|
|
|
|
| 9 |
<body>
|
| 10 |
<div id="game-container">
|
| 11 |
<h1>Pennyflip</h1>
|
| 12 |
+
|
| 13 |
<div id="info">
|
| 14 |
Balance: $<span id="balance">0.00</span> | Flips left: <span id="flips-left">1000</span>
|
| 15 |
</div>
|
|
|
|
| 28 |
Cost: ${{ "%.2f"|format(coin.price) }}<br>
|
| 29 |
Value: ${{ "%.2f"|format(coin.value) }}<br>
|
| 30 |
Win rate: {{ "%.2f"|format(coin.winrate) }}<br>
|
| 31 |
+
{% if coin.bonus != 'none' %}
|
| 32 |
+
Bonus: {{ coin.bonus }}
|
| 33 |
{% endif %}
|
| 34 |
</div>
|
| 35 |
</div>
|
|
|
|
| 41 |
<div id="leaderboard">
|
| 42 |
<h2>Leaderboard</h2>
|
| 43 |
<table>
|
| 44 |
+
<tr>
|
| 45 |
+
<th>Rank</th>
|
| 46 |
+
<th>Initials</th>
|
| 47 |
+
<th>Score</th>
|
| 48 |
+
</tr>
|
| 49 |
+
{% for entry in leaderboard %}
|
| 50 |
+
<tr>
|
| 51 |
+
<td>{{ loop.index }}</td>
|
| 52 |
+
<td>{{ entry.initials }}</td>
|
| 53 |
+
<td>${{ "%.2f"|format(entry.score) }}</td>
|
| 54 |
+
</tr>
|
| 55 |
+
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</table>
|
| 57 |
</div>
|
| 58 |
+
</div>
|
| 59 |
|
| 60 |
+
<div id="game-over" class="modal">
|
| 61 |
+
<div class="modal-content">
|
| 62 |
+
<h2>Game Over</h2>
|
| 63 |
+
<p>Your final score: $<span id="final-score"></span></p>
|
| 64 |
+
<input type="text" id="initials" maxlength="3" placeholder="AAA">
|
| 65 |
+
<button id="submit-score">Submit Score</button>
|
| 66 |
+
<button id="play-again">Play Again</button>
|
|
|
|
| 67 |
</div>
|
| 68 |
+
</div>
|
| 69 |
|
| 70 |
+
<div id="loading-overlay">
|
| 71 |
+
<div class="loading-message">
|
| 72 |
+
Generating coin...
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
|