-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (102 loc) · 5.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🃏 Black Jack Game</title>
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">-->
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> -->
<script src="https://kit.fontawesome.com/8c71f66ca7.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="static/css/bootstrap.css">
<script src="static/js/bootstrap.js"></script>
<script src="static/js/setDefaultTheme.js"></script>
<link rel="stylesheet" href="static/css/style.css">
</head>
<body>
<div class="wrapper">
<header>
<nav class="navbar sticky-top">
<div class="container-fluid">
<button class="btn btn-dark" id="toggle-theme-button"><i class="fa-solid fa-sun" id="toggle-theme-button-icon"></i></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">🏠 Home</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<br>
<div class="container">
<h2>🃏 Black Jack Game</h2>
<h1 id="blackjack_message">BLACKJACK !!</h1>
<br>
<!-- <h4>Winner: <span id="winner"></span></h4> -->
<!-- <h5>Game phase: <span id="game_phase"></span></h5><br> -->
<div class="container" id="game_cards">
<div id="dealer">
<div class="card mb-3 bg-success" style="max-width: 18rem;">
<div class="card-header" id="dealer_card_header">
<h5>Dealer: <span id="dealer_balance"></span> $</h5>
</div>
<div class="card-body">
<p class="card-text" id="dealer_hand"></p>
<p class="card-text" id="dealer_hand_value"></p>
</div>
</div>
</div>
<div id="player">
<div class="card bg-success mb-3" style="max-width: 18rem;">
<div class="card-header" id="player_card_header">
<h5>Player: <span id="player_balance"></span> $</h5>
</div>
<div class="card-body">
<p class="card-text" id="player_hand"></p>
<p class="card-text" id="player_hand_value"></p>
</div>
</div>
</div>
</div>
<div class="container" id="bet_control">
<h3>💸 Bets</h3>
<p>Current bet: <span id="current_bet">10</span></p>
<div class="input-group mb-3">
<input type="text" class="form-control" id="new_bet" placeholder="New bet..." aria-label="New bet..." aria-describedby="button-addon2">
<button class="btn btn-primary" type="button" id="change_bet">Change Bet</button>
</div>
<br>
</div>
<div class="container" id="game_actions">
<button type="button" class="btn btn-primary" id="deal_button">Deal</button>
<button type="button" class="btn btn-primary" id="hit_button">Hit</button>
<button type="button" class="btn btn-primary" id="double_button">Double</button>
<button type="button" class="btn btn-primary" id="split_button">Split</button>
<button type="button" class="btn btn-primary" id="stand_button">Stand</button>
<button type="button" class="btn btn-warning" id="reset_button">Reset Balances</button>
<!-- <button type="button" class="btn btn-danger" id="quit_button">Quit</button> -->
</div>
<div class="container">
<br><br>
<h3></h3>
<h3>🎢 Balance History</h3>
<canvas id="balance_chart"></canvas>
<br><br>
<h3>📜 Game History</h3>
<ol id="history">
</ol>
</div>
</div>
<br>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
<script src="static/js/app.js"></script>
<script src="static/js/theme.js"></script>
<footer>
<div class="footer">
<a href="https://github.com/pfra17" target="_blank"><i class="fa-4x fa-brands fa-github"></i></a>
</div>
</footer>
</div>
</body>
</html>