-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.txt
540 lines (492 loc) · 21.1 KB
/
index.txt
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<img src="halloween.png" class="first_photo">
<link href="https://fonts.googleapis.com/css2?family=Cookie&display=swap" rel="stylesheet">
<h1 class="the_name">Scary night</h1>
<h2 class="welcome">Welcome!</h2>
<button type="button" class="openbtn">Menu</button>
<div id="mySidebar" class="sidebar">
<img src="logo.gif" class="logo">
<a href="#" class="closebtn"onclick="closeNav()">✖</a>
<div class="breakfast">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<p class="b">Breakfast</p>
<img src="br.png" class="img_br">
</div>
<div class="lunch">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<p class="l">Lunch</p>
<img src="l.png" class="img_l">
</div>
<div class="desserts">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<p class="d">Desserts</p>
<img src="ds.png" class="img_ds">
</div>
<div class="drinks">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<p class="r">Drinks</p>
<img src="dr.png" class="img_dr">
</div>
</div>
<div id="main">
<button class="openbtn" onclick="openNav()">Menu</button>
</div>
<script>
function openNav(){
document.getElementById("mySidebar").style.width = "24%";
document.getElementById("main").style.marginLeft="250"
}
function closeNav(){
document.getElementById("mySidebar").style.width = "0px";
document.getElementById("main").style.marginLeft="50px"
}
</script>
</header>
<style>
/*!
* chiefSlider (https://itchief.ru/lessons/php/feedback-form-for-website)
* Copyright 2018 Alexander Maltsev
* Licensed under MIT (https://github.com/itchief/feedback-form/blob/master/LICENSE)
*/
/* ñòèëè äëÿ ýëåìåíòà body */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
height: 3000px;
}
/* ñòèëè îñíîâíîãî êîíòåéíåðà ñëàéäåðà */
.slider {
position: relative;
overflow: hidden;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
/* ñòèëè äëÿ îá¸ðòêè, â êîòîðîé çàêëþ÷åíû ñëàéäû */
.slider__wrapper {
position: relative;
overflow: hidden;
}
/* ñòèëè äëÿ êîíòåéíåðà ñëàéäîâ */
.slider__items {
display: flex;
transition: transform 0.6s ease;
}
/* ñòèëè äëÿ ñëàéäîâ */
.slider__item {
flex: 0 0 100%;
max-width: 100%;
}
/* ñòèëè äëÿ êíîïîê "âïåðåä" è "íàçàä" */
.slider__control {
position: absolute;
top: 50%;
display: none;
align-items: center;
justify-content: center;
width: 40px;
color: #fff;
text-align: center;
opacity: 0.5;
height: 50px;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
}
.slider__control_show {
display: flex;
}
.slider__control:hover,
.slider__control:focus {
color: #fff;
text-decoration: none;
outline: 0;
opacity: 0.9;
}
.slider__control_prev {
left: 0;
}
.slider__control_next {
right: 0;
}
.slider__control::before {
content: '';
display: inline-block;
width: 20px;
height: 20px;
background: transparent no-repeat center center;
background-size: 100% 100%;
}
.slider__control_prev::before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}
.slider__control_next::before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}
/* ñòèëè äëÿ èíäèêàòîðîâ */
.slider__indicators {
display: block;
position: center;
z-index: 15;
display: flex;
justify-content: center;
list-style: none;
}
.slider__indicators li {
box-sizing: content-box;
flex: 0 1 auto;
width: 30px;
height: 4px;
margin-right: 3px;
margin-left: 3px;
text-indent: -999px;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.5);
background-clip: padding-box;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
.slider__indicators li.active {
background-color: #fff;
}
.img-fluid {
/* display: inline-block;
height: auto;
max-width: 100%; */
display: block;
position: center;
z-index: 15;
display: flex;
justify-content: center;
list-style: none;
width: 100%;
height: 100%;
object-fit: cover;
}
</style>
</head>
<body>
<div class="slider">
<div class="slider__wrapper">
<div class="slider__items">
<div class="slider__item">
<img class="img-fluid" src="111111.jpg" alt="c1">
</div>
<div class="slider__item">
<img class="img-fluid" src="111111 êîïèÿ.jpg" alt="c2">
</div>
<div class="slider__item">
<img class="img-fluid" src="1111113 êîïèÿ.jpg" alt="c3">
</div>
<div class="slider__item">
<img class="img-fluid" src="1111121 êîïèÿ.jpg" alt="c4">
</div>
</div>
</div>
<a class="slider__control slider__control_prev" href="#" role="button"></a>
<a class="slider__control slider__control_next" href="#" role="button"></a>
</div>
<script>
'use strict';
var slideShow = (function () {
return function (selector, config) {
var
_slider = document.querySelector(selector), // îñíîâíûé ýëåìåíò áëîêà
_sliderContainer = _slider.querySelector('.slider__items'), // êîíòåéíåð äëÿ .slider-item
_sliderItems = _slider.querySelectorAll('.slider__item'), // êîëëåêöèÿ .slider-item
_sliderControls = _slider.querySelectorAll('.slider__control'), // ýëåìåíòû óïðàâëåíèÿ
_currentPosition = 0, // ïîçèöèÿ ëåâîãî àêòèâíîãî ýëåìåíòà
_transformValue = 0, // çíà÷åíèå òðàíôñîôðìàöèè .slider_wrapper
_transformStep = 100, // âåëè÷èíà øàãà (äëÿ òðàíñôîðìàöèè)
_itemsArray = [], // ìàññèâ ýëåìåíòîâ
_timerId,
_indicatorItems,
_indicatorIndex = 0,
_indicatorIndexMax = _sliderItems.length - 1,
_stepTouch = 50,
_config = {
isAutoplay: false, // àâòîìàòè÷åñêàÿ ñìåíà ñëàéäîâ
directionAutoplay: 'next', // íàïðàâëåíèå ñìåíû ñëàéäîâ
delayAutoplay: 5000, // èíòåðâàë ìåæäó àâòîìàòè÷åñêîé ñìåíîé ñëàéäîâ
isPauseOnHover: true // óñòàíàâëèâàòü ëè ïàóçó ïðè ïîäíåñåíèè êóðñîðà ê ñëàéäåðó
};
// íàñòðîéêà êîíôèãóðàöèè ñëàéäåðà â çàâèñèìîñòè îò ïîëó÷åííûõ êëþ÷åé
for (var key in config) {
if (key in _config) {
_config[key] = config[key];
}
}
// íàïîëíåíèå ìàññèâà _itemsArray
for (var i = 0, length = _sliderItems.length; i < length; i++) {
_itemsArray.push({ item: _sliderItems[i], position: i, transform: 0 });
}
// ïåðåìåííàÿ position ñîäåðæèò ìåòîäû ñ ïîìîùüþ êîòîðîé ìîæíî ïîëó÷èòü ìèíèìàëüíûé è ìàêñèìàëüíûé èíäåêñ ýëåìåíòà, à òàêæå ñîîòâåòñòâóþùåìó ýòîìó èíäåêñó ïîçèöèþ
var position = {
getItemIndex: function (mode) {
var index = 0;
for (var i = 0, length = _itemsArray.length; i < length; i++) {
if ((_itemsArray[i].position < _itemsArray[index].position && mode === 'min') || (_itemsArray[i].position > _itemsArray[index].position && mode === 'max')) {
index = i;
}
}
return index;
},
getItemPosition: function (mode) {
return _itemsArray[position.getItemIndex(mode)].position;
}
};
// ôóíêöèÿ, âûïîëíÿþùàÿ ñìåíó ñëàéäà â óêàçàííîì íàïðàâëåíèè
var _move = function (direction) {
var nextItem, currentIndicator = _indicatorIndex;;
if (direction === 'next') {
_currentPosition++;
if (_currentPosition > position.getItemPosition('max')) {
nextItem = position.getItemIndex('min');
_itemsArray[nextItem].position = position.getItemPosition('max') + 1;
_itemsArray[nextItem].transform += _itemsArray.length * 100;
_itemsArray[nextItem].item.style.transform = 'translateX(' + _itemsArray[nextItem].transform + '%)';
}
_transformValue -= _transformStep;
_indicatorIndex = _indicatorIndex + 1;
if (_indicatorIndex > _indicatorIndexMax) {
_indicatorIndex = 0;
}
} else {
_currentPosition--;
if (_currentPosition < position.getItemPosition('min')) {
nextItem = position.getItemIndex('max');
_itemsArray[nextItem].position = position.getItemPosition('min') - 1;
_itemsArray[nextItem].transform -= _itemsArray.length * 100;
_itemsArray[nextItem].item.style.transform = 'translateX(' + _itemsArray[nextItem].transform + '%)';
}
_transformValue += _transformStep;
_indicatorIndex = _indicatorIndex - 1;
if (_indicatorIndex < 0) {
_indicatorIndex = _indicatorIndexMax;
}
}
_sliderContainer.style.transform = 'translateX(' + _transformValue + '%)';
_indicatorItems[currentIndicator].classList.remove('active');
_indicatorItems[_indicatorIndex].classList.add('active');
};
// ôóíêöèÿ, îñóùåñòâëÿþùàÿ ïåðåõîä ê ñëàéäó ïî åãî ïîðÿäêîâîìó íîìåðó
var _moveTo = function (index) {
var i = 0, direction = (index > _indicatorIndex) ? 'next' : 'prev';
while (index !== _indicatorIndex && i <= _indicatorIndexMax) {
_move(direction);
i++;
}
};
// ôóíêöèÿ äëÿ çàïóñêà àâòîìàòè÷åñêîé ñìåíû ñëàéäîâ ÷åðåç ïðîìåæóòêè âðåìåíè
var _startAutoplay = function () {
if (!_config.isAutoplay) {
return;
}
_stopAutoplay();
_timerId = setInterval(function () {
_move(_config.directionAutoplay);
}, _config.delayAutoplay);
};
// ôóíêöèÿ, îòêëþ÷àþùàÿ àâòîìàòè÷åñêóþ ñìåíó ñëàéäîâ
var _stopAutoplay = function () {
clearInterval(_timerId);
};
// ôóíêöèÿ, äîáàâëÿþùàÿ èíäèêàòîðû ê ñëàéäåðó
var _addIndicators = function () {
var indicatorsContainer = document.createElement('ol');
indicatorsContainer.classList.add('slider__indicators');
for (var i = 0, length = _sliderItems.length; i < length; i++) {
var sliderIndicatorsItem = document.createElement('li');
if (i === 0) {
sliderIndicatorsItem.classList.add('active');
}
sliderIndicatorsItem.setAttribute("data-slide-to", i);
indicatorsContainer.appendChild(sliderIndicatorsItem);
}
_slider.appendChild(indicatorsContainer);
_indicatorItems = _slider.querySelectorAll('.slider__indicators > li')
};
var _isTouchDevice = function () {
return !!('ontouchstart' in window || navigator.maxTouchPoints);
};
// ôóíêöèÿ, îñóùåñòâëÿþùàÿ óñòàíîâêó îáðàáîò÷èêîâ äëÿ ñîáûòèé
var _setUpListeners = function () {
var _startX = 0;
if (_isTouchDevice()) {
_slider.addEventListener('touchstart', function (e) {
_startX = e.changedTouches[0].clientX;
_startAutoplay();
});
_slider.addEventListener('touchend', function (e) {
var
_endX = e.changedTouches[0].clientX,
_deltaX = _endX - _startX;
if (_deltaX > _stepTouch) {
_move('prev');
} else if (_deltaX < -_stepTouch) {
_move('next');
}
_startAutoplay();
});
} else {
for (var i = 0, length = _sliderControls.length; i < length; i++) {
_sliderControls[i].classList.add('slider__control_show');
}
}
_slider.addEventListener('click', function (e) {
if (e.target.classList.contains('slider__control')) {
e.preventDefault();
_move(e.target.classList.contains('slider__control_next') ? 'next' : 'prev');
_startAutoplay();
} else if (e.target.getAttribute('data-slide-to')) {
e.preventDefault();
_moveTo(parseInt(e.target.getAttribute('data-slide-to')));
_startAutoplay();
}
});
document.addEventListener('visibilitychange', function () {
if (document.visibilityState === "hidden") {
_stopAutoplay();
} else {
_startAutoplay();
}
}, false);
if (_config.isPauseOnHover && _config.isAutoplay) {
_slider.addEventListener('mouseenter', function () {
_stopAutoplay();
});
_slider.addEventListener('mouseleave', function () {
_startAutoplay();
});
}
};
// äîáàâëÿåì èíäèêàòîðû ê ñëàéäåðó
_addIndicators();
// óñòàíîâëèâàåì îáðàáîò÷èêè äëÿ ñîáûòèé
_setUpListeners();
// çàïóñêàåì àâòîìàòè÷åñêóþ ñìåíó ñëàéäîâ, åñëè óñòàíîâëåí ñîîòâåòñòâóþùèé êëþ÷
_startAutoplay();
return {
// ìåòîä ñëàéäåðà äëÿ ïåðåõîäà ê ñëåäóþùåìó ñëàéäó
next: function () {
_move('next');
},
// ìåòîä ñëàéäåðà äëÿ ïåðåõîäà ê ïðåäûäóùåìó ñëàéäó
left: function () {
_move('prev');
},
// ìåòîä îòêëþ÷àþùèé àâòîìàòè÷åñêóþ ñìåíó ñëàéäîâ
stop: function () {
_config.isAutoplay = false;
_stopAutoplay();
},
// ìåòîä çàïóñêàþùèé àâòîìàòè÷åñêóþ ñìåíó ñëàéäîâ
cycle: function () {
_config.isAutoplay = true;
_startAutoplay();
}
}
}
}());
slideShow('.slider', {
isAutoplay: true
});
</script>
<div class="grid-container">
<img src = "pumpkin.jpg" class="pumpkin">
<h3 class="first_title">Halloween traditions</h3>
<p class="first_text">Modern Halloween has nothing to do with evil spirits. This is a fun and funny holiday - a great excuse to throw a costume party and decorate the gray everyday life. And adherence to traditions will only add magic to the holiday.</p>
<a href='https://www.history.com/topics/halloween/history-of-halloween' class="button">Learn more</a>
<img src = "table.jpg" class="table">
<img src = "table_2.jpg" class="table_2">
<span class="dot"></span>
<svg height="120" width="120" class="circle">
<circle cx="60" cy="60" r="50" stroke="rgb(219, 219, 219)" stroke-width="20" fill="none" />
</svg>
<div class="party"></div>
<h2 class="second_title">We'll make your party</h2>
<span style='font-size:60px;' class="check_mark">✓</span>
<h3 class="third_title">Your party will be terribly interesting!</h3>
<!-- <p class="second_text"></p> -->
<span style='font-size:60px;' class="check_mark2">✓</span>
<h3 class="fourth_title">An unforgettable experience</h3>
<!-- <p class="third_text"></p> -->
<span style='font-size:60px;' class="check_mark3">✓</span>
<h3 class="fifth_title">A wide range of dishes and cocktails.</h3>
<!-- <p class="fourth_text"></p> -->
<span style='font-size:60px;' class="check_mark4">✓</span>
<h3 class="sixth_title">Cool discos</h3>
<!-- <p class="fifth_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p> -->
<span style='font-size:60px;' class="check_mark5">✓</span>
<h3 class="seventh_title">Ñonstant quests</h3>
<!-- <p class="sixth_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p> -->
<span style='font-size:60px;' class="check_mark6">✓</span>
<h3 class="eighth_title">Open 24/7</h3>
<!-- <p class="seventh_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p> -->
</div>
<div class="grid-container_2">
<div class="about_us"></div>
<div class="yellow_block"></div>
<img src="party.jpg" class="img_party">
<img src="people.jpg" class="img_people">
<h1 class="text">About us</h1>
<h1 class="f_title">Discos every day</h1>
<p class="m_text">If you want to spend your Halloween in winter, spring or summer this is not a problem! We have Halloween every day!</p>
<p class="s_text">Come in a Halloween costume and break the dance floor. Ñompete for the best look and get prizes!</p>
<a href='https://www.spirithalloween.com/' class="btn2">Learn more</a>
<h1 class="s_title">Our menu is terribly delicious</h1>
<p class="t_text">Choose and taste
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
</p>
<a href='https://www.allrecipes.com/recipes/189/holidays-and-events/halloween/' class="btn3">Learn more</a>
<img src="snack.jpg" class="snack">
<img src="candy_mix.jpg" class="mix">
<span class="dot_2"></span>
<svg height="120" width="120" class="circle_2">
<circle cx="60" cy="60" r="40" stroke="rgb(219, 219, 219)" stroke-width="20" fill="none" />
</svg>
</div>
<div class="grid-container_3">
<div class="light_grey_block"></div>
<div class="yellow_block_2"></div>
<img src="sweets.jpg" class="sweets">
<h1 class="t_title">What is Halloween?</h1>
<p class="f_text">Halloween is a popular American holiday for children and adults. It is celebrated on October 31st every year. Children dress up in costumes and go after dark house to house, knock on the door and say trick or treat! People then give the children "treats" like candy. Costumes can be scary.</p>
<a href='https://en.wikipedia.org/wiki/Halloween' class="btn4">Read more</a>
<div class="dark_grey_block"></div>
<img src="sweets_2.jpg" class="sweets_2">
<div class="dark_grey_block_2"></div>
<h1 class="e_title">How to celebrate it?</h1>
<p class="e_text">Many Americans celebrate the traditions of Halloween by dressing in costumes and telling tales of witches and ghosts. Pumpkins are carved into glowering jack-o'-lanterns. Children parade from house to house, knocking on doors and calling out "Trick or treat!" hoping to have their bags filled with candy.</p>
<img src="pasta.jpg" class="pasta">
<img src="scary_pumpkin.jpg" class="scary_pumpkin">
<div class="white_block"></div>
<h1 class="n_title">Halloween mood</h1>
<p class="n_text">Light some candles, brew that pumpkin spice coffee or tea, bundle up in comfy clothes and get in the mood. Wear black or witch inspired outfits, or even walk around your house wearing cat ears. I used to work at a costume store, and it was the only job where I could wear my costume 30 days before Halloween and it was so much fun! I got to play with fake blood, vampire teeth, and check out new costumes before they hit the stores yet which definitely help me get in the mood for Halloween. So dont be afraid to dress up a bit before the big day! </p>
<a href='https://www.thewonderforest.com/8-ways-get-spooky-mood-halloween/' class="btn5">Read more</a>
</div>
<footer>
<div class="container">
<div class="form_group">
<form action="/action_page.php">
<input type="text" id="fname" name="firstname" placeholder="Enter your name...">
<hr>
<input type="text" id="lname" name="lastname" placeholder="Enter your e-mail adress...">
<hr>
<textarea id="subject" name="subject" placeholder="Enter your message..." style="height:200px"></textarea>
<button type="button" class="btn6">Submit</button>
</form>
<div class="form_info">
<h1>Contact us</h1>
</div>
</div>
</div>
</footer>
</body>
</html>