-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (107 loc) · 5.42 KB
/
Copy pathindex.html
File metadata and controls
108 lines (107 loc) · 5.42 KB
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
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Simple BlackJack Game">
<meta name="keywords" content="Game, Javascript, BlackJack">
<meta name="author" content="Damien B.">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">
<title>SimpleBJ Game</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<!--Heading-->
<div class="heading" id="heading">
<!--New game loading message box-->
<div id="LoadingGame"></div>
<!--Title of the Game-->
<span><img src="assets/images/blackjack.png" alt="icone black jack" class="BlackJackIcone"></span>
<span>Let's Play SimpleBJ Game!!!</span>
<span><img src="assets/images/blackjack.png" alt="icone black jack" class="BlackJackIcone"></span>
</div>
<!--Game Area-->
<div class="game-area">
<div class="player1">
<div class="TitlePlayer1">
You : <span id="WinsPlayer1">0</span>
</div>
<!--Player 1 Cards-->
<div class="card" id="card1-player1"></div>
<div class="card" id="card2-player1"></div>
<div class="card" id="card3-player1"></div>
<!--Player Button Area-->
<div class="buttonBox">
<div class="HelpAndSoundBox">
<!--Sound Off/On buttons-->
<div class="ButtonSound" id="SoundBoxOn">
<i class="fa-solid fa-volume-high" role="button" aria-label="Sound On Button"></i>
</div>
<div class="ButtonSound" id="SoundBoxOff">
<i class="fa-solid fa-volume-off" role="button" aria-label="Sound Off Button"></i>
</div>
</div>
<!--Help button with a Window with Rules of the Game Loaded when first visit-->
<div id="help" class="HelpBox">
<i class="fas fa-question-circle fa-beat" style="--fa-animation-duration: 3s;" role="button"
aria-label="About the game and instructions" onclick="document.getElementById('HelpBoxtext').style.visibility='visible';"></i>
<div class="HelpBoxtext" id="HelpBoxtext">
<h1>About the Game</h1>
<i class="fa-solid fa-xmark fa-4x" role="button" aria-label="Closing Button"
id="ButtonCloseHelpBubble" onclick="document.getElementById('HelpBoxtext').style.visibility='hidden';"></i>
<p> SimpleBJ is a Black Jack simple version Game</p>
<h2>How to play :</h2><br>
<p> Both You and computer start the game with 2 Cards.</p>
<p> Following Cards has a value of the number showing on the Card :</p>
<div class="DisplayCard" id="AllNormalCard"></div><br>
<p> Following Cards has a value of 10 Points :</p>
<div class="DisplayCard" id="AllFaceCard"></div><br>
<p> If You have a better scoring than the computer, you can continue with
only 2 cards pushing the button "I Am Good" Or display a third Card by pushing
the button "New Card". </p>
<p> The Goal? Obtain a higher score than the computer with 2 or 3 Cards without exceeding the score of 21.<p>
</div>
</div>
<!--2 buttons for the game-->
<div class="buttonGame"><button data-type="new-card" id="new-card">New Card</button></div>
<div class="buttonGame"><button data-type="i-am-good" id="i-am-good">I Am Good</button></div>
</div>
</div>
<!--Middle Part : Scoring Player 1-->
<div class="scoring">
<!--Scoring Player 1-->
<div class="score-box" id="score-box1">
<div class="scorePlayer1" id="scorePlayer1"></div>
</div>
<!--Middle Part : Image space to show result of the game, Win, loose or Draw-->
<div class="vs-box" id="vs-box"></div>
<!--Scoring Player 2-->
<div class="score-box" id="score-box2">
<div class="scorePlayer2" id="scorePlayer2"></div>
</div>
</div>
<!--Player 2 Cards-->
<div class="player2">
<div class="card" id="card1-player2"></div>
<div class="card" id="card2-player2"></div>
<div class="card" id="card3-player2"></div>
<div class="TitlePlayer2">
Computer : <span id="WinsPlayer2">0</span>
</div>
</div>
</div>
<!--Footer-->
<footer id="copyright-footer">
<!-- Copyright information -->
<p id="copyright-text">
Copyright © 2022 BlackJack
</p>
</footer>
<!--A rotative Icon big size to prevent landscape positionning for small devices only-->
<div id="rotate-screen"><i class="fa-solid fa-rotate fa-beat fa-4x" style="--fa-beat-scale: 2.0;"></i></div>
<!--Script for small Items on the page-->
<script src="https://kit.fontawesome.com/d33bc14455.js" crossorigin="anonymous"></script>
<!--JavaScript code for the Game-->
<script src="assets/js/script.js"></script>
</body>
</html>