-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (105 loc) · 4.49 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
105
<!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">
<title>Casino</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style/main.css">
</head>
<body>
<div class="wrapper">
<!-- header -->
<header class="header">
<div class="header-rules">
<h3 class="header-rules-title">
Правила
</h3>
<ul class="header-rules-list">
<li>
<a href="#" class="header-rules-close"></a>
</li>
<li class="header-rules-list-item">
Игрок делает ставку и бросает две кости, подсчитывает сумму набранных очков.
</li>
<li class="header-rules-list-item">
Если сумма <strong>7</strong> или <strong>11</strong>, то он выиграл двойную ставку.
</li>
<li class="header-rules-list-item">
Если сумма <strong>2</strong>, <strong>8</strong> или <strong>12</strong>, то он проиграл ставку.
</li>
<li class="header-rules-list-item">
Если выпала другая сумма - это пойнт.
</li>
<li class="header-rules-list-item">
Когда выпал пойнт, игрок бросает кости до тех пор, пока не выпадет <strong>7</strong> - это означает проигрыш или пока не выпадет пойнт - игрок выиграл.
</li>
</ul>
</div>
<h1 class="header-title">
Казино
</h1>
</header>
<!-- section for betting -->
<section id="bet-form">
<h2 class="section-title">
Ваш баланс: <strong id="balance"></strong>
</h2>
<form>
<div>
<input type="number" placeholder="Сделать ставку" id="bet">
</div>
<p id="input-error"></p>
<div>
<button type="button" class="button bet">Бросить кубики</button>
</div>
</form>
</section>
<!-- section for result -->
<section id="bet-result">
<h2 class="section-title">
Ваш баланс: <strong id="balance-result"></strong>
</h2>
<p class="section-description">
На кубиках: <strong id="dice-first-result"></strong>,
<strong id="dice-second-result"></strong>
</p>
<p id="result-text">
<strong></strong>
</p>
<form>
<button type="button" class="button button-result">Попробывать еще</button>
</form>
</section>
<!-- section for point -->
<section id="bet-point">
<h2 class="section-title">
Ставка: <strong id="bet-amound"></strong>
</h2>
<p class="section-description">
На кубиках: <strong id="dice-first-point"></strong>,
<strong id="dice-second-point"></strong>
</p>
<p class="section-description">
Твое очко - <strong id="point"></strong>
</p>
<p class="section-description point-txt">
Продолжай бросать
</p>
<form>
<button type="button" class="button point">Бросить еще раз</button>
</form>
</section>
<!-- footer -->
<footer class="footer">
<div class="footer__item">
<img src="img/dice.png" alt="dice" class="footer__img">
</div>
</footer>
</div>
<script src="dist/main.js"></script>
</body>
</html>