generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (64 loc) · 3.37 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
<!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">
<meta name="description" content="A Dice Game | fun & easy game for kids and adults">
<meta name="keywords" content="rolling dice, game, fun, for everyone">
<link rel="apple-touch-icon" sizes="180x180" href="./favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon_io/favicon-16x16.png">
<link rel="site.manifest" href="favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.6.0/sandstone/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<title>Roll the dice!</title>
</head>
<body>
<div class="heading">
<h1>Roll the dice <i class="fa-solid fa-dice"></i></h1>
</div>
<div class="playground">
<h2>Choose Target Number:</h2>
<div class="controller">
<button aria-label="Choice6" data-choice="6" class="btn btn-targ" id="control-6">6</button>
<button aria-label="Choice7" data-choice="7" class="btn btn-targ" id="control-7">7</button>
<button aria-label="Choice8" data-choice="8" class="btn btn-targ" id="control-8">8</button>
<button aria-label="Choice9" data-choice="9" class="btn btn-targ" id="control-9">9</button>
<p class="control-number">Targeted number: You choose the number <span id="targ-Nr">0</span> !</p>
</div>
<div class="img-mess-btn-container">
<div class="dice-wrapper" id="dice-wrapper">
<img id="die1" src="assets/images/dice1.png" alt="Dice image number one">
<img id="die2" src="assets/images/dice1.png" alt="Dice image number one">
</div>
<div class="message">
<p><span class="win-lose-message" id="message">Let's play!</span></p>
</div>
<div>
<button data-type="submit" class="btn" disabled id="roll">Roll the dice!</button>
</div>
</div>
<div class="result-area">
<p class="round-result">Result: You thrown <span id="round-result">0</span></p>
<p class="chance">Rolling chances: <span id="chances">5</span><span>of 5</span></p>
</div>
<div>
<button data-type="reset" class="btn btn-reset">Reset the game!</button>
</div>
</div>
<div class="footer">
<h2>Game instruction <i class="fa-solid fa-dice"></i></h2>
<ol class="instructions">
<li>First step is to choose the target number.</li>
<li>Second step is to roll the dice. You have 5 throws in total.</li>
<li>If the targeted number is thrown you win.</li>
<li>And if the targeted number is not rolled in 5 throws it's a game over.</li>
<li>By pressing the Reset button you can reset the game to zero and play again!</li>
</ol>
</div>
<script src="https://kit.fontawesome.com/58d92d93b9.js" crossorigin="anonymous"></script>
<script src="./assets/js/script.js"></script>
</body>
</html>