-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
250 lines (219 loc) · 10.4 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<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>Sheeeeeeeesh</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="header center">
<nav class="navbar navbar-expand-lg navbar-light">
<img src="иконки/таблеткибф.png" class="w2" alt="...">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse menu_desctop" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#main">ГЛАВНАЯ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#exercises">РАЗМИНКИ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#achive">АЧИВКИ</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="settings center" id="main">
<div class="top_image">
<h2 class="heading">ГЛАВНАЯ</h2>
</div>
<p class="text top_text-margin">На этом сайте содержатся методические рекомендации по следующим упражнениям: разминка для глаз, упражнения Кегеля, группа упражнений на шейные позвонки и т.д.</p>
</section>
<section class="info center" id="exercises">
<h2 class="heading">РАЗМИНКА</h2>
<p class="text info_text">Каждое упражнение нужно выполнять по 40 секунд</p>
<br id="all1"/><table class="demotable">
<thead>
<tr>
<td colspan="2"><a href="#close"><img src="иконки/да/глазк.png" class="w" alt="..."></a>
<a href="#all1" id="elem"><img src="иконки/да/закрглазк.png" class="w" alt="..."></a><br>
<p class="text info_text">Нажмите на глаз</p>
<script>
function getCookie(name){
let matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
function setCookie(name, value, options = {}) {
options = {
path: '/',
// при необходимости добавьте другие значения по умолчанию
...options
};
if (options.expires instanceof Date) {
options.expires = options.expires.toUTCString();
}
let updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value);
for (let optionKey in options) {
updatedCookie += "; " + optionKey;
let optionValue = options[optionKey];
if (optionValue !== true) {
updatedCookie += "=" + optionValue;
}
}
document.cookie = updatedCookie;
}
function deleteCookie(name) {
setCookie(name, "", {
'max-age': -1
})}
let clicks = getCookie('click')
let achievki = getCookie('achieves')
if(clicks == undefined){
setCookie('click', 0)
clicks = 0
}
if(achievki == undefined){
setCookie('achieves', 0)
achievki = 0
}
elem.onclick = function() {
if (clicks == 2){
alert('Ты заработал новое достижение');
setCookie('click', 0)
clicks = 0;
setCookie('achieves', achievki+1);
achievki=achievki+1;
alert('Теперь их - '+achievki);
if (achievki == 1){
var showPicture = document.getElementById("lll");
showPicture.style.visibility = 'hidden'; }
if (achievki == 1){
var showPicture = document.getElementById("ppp");
showPicture.style.visibility = 'visible';}
if (achievki == 2){
var showPicture = document.getElementById("llll");
showPicture.style.visibility = 'hidden'; }
if (achievki == 2){
var showPicture = document.getElementById("pppp");
showPicture.style.visibility = 'visible';}
if (achievki == 3){
var showPicture = document.getElementById("lllll");
showPicture.style.visibility = 'hidden';}
if (achievki == 3){
var showPicture = document.getElementById("ppppp");
showPicture.style.visibility = 'visible';}
if (achievki == 3){
var showPicture = document.getElementById("llllll");
showPicture.style.visibility = 'hidden';}
if (achievki == 3){
var showPicture = document.getElementById("pppppp");
showPicture.style.visibility = 'visible';}
}
else {setCookie('click', clicks+1);
clicks=clicks+1;
}
};
</script>
<script>
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('lll')[0];
showPicture.style.visibility = 'hidden';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('ppp')[0];
showPicture.style.visibility = 'visible';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('llll')[0];
showPicture.style.visibility = 'hidden';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('pppp')[0];
showPicture.style.visibility = 'visible';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('lllll')[0];
showPicture.style.visibility = 'hidden';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('ppppp')[0];
showPicture.style.visibility = 'visible';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('llllll')[0];
showPicture.style.visibility = 'hidden';
}
function showPic(){
var showPicture = this.
parentElement.parentElement.getElementsById('pppppp')[0];
showPicture.style.visibility = 'visible';
}
</script>
<tfoot>
<tbody>
<tr>
<th width="50%"><img src="иконки/да/стрелак.png" class="w3" alt="...">Упражнение 1
<th width="100%"><img src="иконки/да/стрелак.png" class="w1" alt="...">Упражнение 2
<tr>
<th><img src="иконки/да/стрелак.png" class="w4" alt="...">Упражнение 3
<th><img src="иконки/да/стрелак.png" class="w5" alt="...">Упражнение 4
<tr>
<th><img src="иконки/да/стрелкруг1к.png" class="w6" alt="...">Упражнение 5
<th><img src="иконки/да/стрелкруг1к.png" class="w7" alt="...">Упражнение 6
<tr>
<th><img src="иконки/да/стрелкруг2к.png" class="w6" alt="...">Упражнение 7
<th><img src="иконки/да/стрелкруг2к.png" class="w7" alt="...">Упражнение 8
</table>
<section class="settings center" id="achive">
<div class="top_image">
<h2 class="heading">ВАШИ ДОСТИЖЕНИЯ</h2>
</div>
</section>
<table class="demotable">
<tbody>
<br>
<tr>
<div class="parent">
<th width="33%"><img src="иконки/закркубокк.png" class="w9" alt="..." id="llllll">
<th width="33%"><p class="text top_text-margin" id="p">Получить все достижения</p>
<th width="33%"><img src="иконки/откркубокк.png" class="w8" alt="..." id="pppppp">
</div>
<tr>
<th><img src="иконки/закрачивкак.png" class="w9" alt="..." id="lll">
<th><p class="text top_text-margin">№1 Пройти разминку для глаз 3 раз</p>
<th><img src="иконки/открачивкак.png" class="w8" alt="..." id="ppp">
<tr>
<th><img src="иконки/закрачивкак.png" class="w9" alt="..." id="llll">
<th><p class="text top_text-margin">№2 Пройти разминку для глаз 6 раз</p>
<th><img src="иконки/открачивкак.png" class="w8" alt="..." id="pppp">
<tr>
<th><img src="иконки/закрачивкак.png" class="w9" alt="..." id="lllll">
<th><p class="text top_text-margin">№3 Пройти разминку для глаз 9 раз</p>
<th><img src="иконки/открачивкак.png" class="w8" alt="..." id="ppppp">
</table>
</section>
<footer class="footer">
Мы, команда Venu Vici Hackericy,<br> создали сайт с информацией о полезных для здоровья упражнений.
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</html>