Update templates/index.html
Browse files- templates/index.html +13 -29
templates/index.html
CHANGED
@@ -8,41 +8,25 @@
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<div id="stats">
|
11 |
-
<
|
12 |
-
<
|
13 |
</div>
|
14 |
-
|
15 |
<div id="game-area">
|
16 |
-
<div id="coin"
|
17 |
</div>
|
18 |
-
|
19 |
<div id="shop"></div>
|
20 |
|
21 |
-
<div id="game-over">
|
22 |
<h2>Game Over</h2>
|
23 |
-
<p>Your final
|
24 |
-
<
|
25 |
-
<
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
<table>
|
31 |
-
<thead>
|
32 |
-
<tr>
|
33 |
-
<th>Rank</th>
|
34 |
-
<th>Initials</th>
|
35 |
-
<th>Score</th>
|
36 |
-
</tr>
|
37 |
-
</thead>
|
38 |
-
<tbody id="leaderboard-body"></tbody>
|
39 |
-
</table>
|
40 |
-
</div>
|
41 |
</div>
|
42 |
-
|
43 |
-
<script>
|
44 |
-
var coins = {{ coins|tojson|safe }};
|
45 |
-
</script>
|
46 |
-
<script src="{{ url_for('static', filename='js/game.js') }}"></script>
|
47 |
</body>
|
48 |
</html>
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<div id="stats">
|
11 |
+
<div>Balance: <span id="balance">$10.00</span></div>
|
12 |
+
<div>Flips left: <span id="flips-left">1000</span></div>
|
13 |
</div>
|
|
|
14 |
<div id="game-area">
|
15 |
+
<div id="coin">Flip</div>
|
16 |
</div>
|
|
|
17 |
<div id="shop"></div>
|
18 |
|
19 |
+
<div id="game-over" style="display: none;">
|
20 |
<h2>Game Over</h2>
|
21 |
+
<p>Your final balance: $<span id="final-balance"></span></p>
|
22 |
+
<div id="leaderboard"></div>
|
23 |
+
<form id="initials-form">
|
24 |
+
<input type="text" id="initials-input" maxlength="3" placeholder="Enter your initials">
|
25 |
+
<button type="submit" id="submit-score">Submit Score</button>
|
26 |
+
</form>
|
27 |
+
<button id="play-again">Play Again</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</div>
|
29 |
+
|
30 |
+
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
|
|
|
|
|
|
|
31 |
</body>
|
32 |
</html>
|