Sergidev commited on
Commit
c64c7e8
·
verified ·
1 Parent(s): 236b846

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +13 -29
templates/index.html CHANGED
@@ -8,41 +8,25 @@
8
  </head>
9
  <body>
10
  <div id="stats">
11
- <span>Balance: $<span id="balance">10.00</span></span>
12
- <span>Flips left: <span id="flips">1000</span></span>
13
  </div>
14
-
15
  <div id="game-area">
16
- <div id="coin" onclick="flipCoin()"></div>
17
  </div>
18
-
19
  <div id="shop"></div>
20
 
21
- <div id="game-over">
22
  <h2>Game Over</h2>
23
- <p>Your final score: $<span id="final-score"></span></p>
24
- <input type="text" id="initials" placeholder="Enter your initials" maxlength="3">
25
- <button onclick="submitScore()">Submit Score</button>
26
- <button onclick="playAgain()">Play Again</button>
27
-
28
- <div id="leaderboard">
29
- <h3>Leaderboard</h3>
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>