Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +35 -35
templates/index.html
CHANGED
|
@@ -1,42 +1,42 @@
|
|
| 1 |
-
<!
|
| 2 |
<html lang="en">
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
<div id="shop">
|
| 23 |
-
{% for coin in coins %}
|
| 24 |
-
<div
|
| 25 |
-
class="shop-coin"
|
| 26 |
-
style="background-color: {{ coin.color }}"
|
| 27 |
-
onclick="buyCoin({{ loop.index0 }})"
|
| 28 |
-
>
|
| 29 |
<div>P: {{ "%.2f"|format(coin.winrate) }}</div>
|
| 30 |
<div>V: ${{ "%.2f"|format(coin.value) }}</div>
|
| 31 |
<div>C: ${{ "%.2f"|format(coin.price) }}</div>
|
| 32 |
</div>
|
| 33 |
-
{% endfor %}
|
| 34 |
</div>
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
</div>
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
</
|
| 42 |
-
|
|
|
|
|
|
|
|
|
| 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>Pennyflip</title>
|
| 7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div id="game-container">
|
| 11 |
+
<div id="info">
|
| 12 |
+
<h2>Pennyflip</h2>
|
| 13 |
+
Balance: $<span id="balance">0.00</span> | Flips left: <span id="flips-left">1000</span>
|
| 14 |
+
</div>
|
| 15 |
+
|
| 16 |
+
<div id="coin" style="background-color: {{ coins[0].color }}"></div>
|
| 17 |
+
|
| 18 |
+
<div id="shop">
|
| 19 |
+
{% for coin in coins %}
|
| 20 |
+
<div class="shop-item" style="background-color: {{ coin.color }}" onclick="buyCoin({{ loop.index0 }})">
|
| 21 |
+
<div class="shop-coin">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
<div>P: {{ "%.2f"|format(coin.winrate) }}</div>
|
| 23 |
<div>V: ${{ "%.2f"|format(coin.value) }}</div>
|
| 24 |
<div>C: ${{ "%.2f"|format(coin.price) }}</div>
|
| 25 |
</div>
|
|
|
|
| 26 |
</div>
|
| 27 |
+
{% endfor %}
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<button id="generate-coin">Generate New Coin</button>
|
| 31 |
+
|
| 32 |
+
<div id="loading-overlay">
|
| 33 |
+
<div class="loading-message">Generating coin...</div>
|
| 34 |
</div>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<script>
|
| 38 |
+
var coins = {{ coins|tojson|safe }};
|
| 39 |
+
</script>
|
| 40 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
| 41 |
+
</body>
|
| 42 |
+
</html>
|