-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (50 loc) · 1.84 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
<!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">
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- favicon -->
<link rel="shortcut icon" href="assests/favicon/favicon.png" type="image/x-icon">
<!-- styles -->
<link rel="stylesheet" href="assests/css/styles.css">
<title>Blackjack</title>
</head>
<body>
<!-- title -->
<header class="title" id="title">Blackjack</header>
<!-- buttons -->
<div class="row mt-2">
<div class="col text-center" id="divButton">
<button class="btn btn-success" id="btnNew">New game</button>
<button class="btn btn-warning" disabled="disabled" id="btnRequest">Request card</button>
<button class="btn btn-danger" disabled="disabled" id="btnStop">Stop</button>
</div>
</div>
<!-- player -->
<div class="row container mt-5">
<div class="col">
<h1>Player - <small>0</small></h1>
<div id="card-player" class="divCard"></div>
</div>
</div>
<!-- computer -->
<div class="row container mt-5">
<div class="col">
<h1>Computer - <small>0</small></h1>
<div id="card-computer" class="divCard"></div>
</div>
</div>
<script src="assests/js/underscore.js"></script>
<script src="assests/js/game.js"></script>
<script>
console.log(myModule);
document.querySelector('#btnNew').addEventListener('click', () => {
myModule.newGame();
});
</script>
</body>
</html>