-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (50 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="./images/favicon.jpg" type="favicon">
<title>Black-Jack</title>
</head>
<body>
<h1 style="text-align:center">Welcome to BlackJack!!</h1>
<div class="game-space">
<div class="player">
<div class="player-space">
<div class="player-content">
<h2>Your Cards:</h2>
</div>
<div class="player_hand_points">
<h2 id="player_hand"></h2>
</div>
<div class="player-points">
<h2 id="player_hand_value"></h2>
</div>
</div>
<div class="player_card">
</div>
</div>
<div class="table">
<div class="table-content">
<h2>Table Cards:</h2>
</div>
<div class="table_hand_points">
<h2 id="table_hand"></h2>
</div>
<div class="table-points">
<h2 id="table_hand_value"></h2>
</div>
</div>
</div>
<div class="btns">
<button id="btn-start" onclick="startGame()">Start Game</button>
<button id="btn-hit" onclick="hitCard()">Hit card</button>
<button id="btn-stand" onclick="stand()">Stand</button>
<button id="btn-reset" onclick="resetGame()">Reset</button>
</div>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="index.js"></script>
</body>
</html>