Create templates/index.html
Browse files- templates/index.html +48 -0
templates/index.html
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>1kcoins</title>
|
| 7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
| 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>
|