generated from yandex-praktikum/posmotri_v_okno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
154 lines (146 loc) · 5.05 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
<!DOCTYPE html>
<html lang="ru">
<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>Посмотри в окно</title>
<link rel="stylesheet" href="./fonts/fonts.css" />
<link rel="stylesheet" href="./styles/style.css" />
<link rel="stylesheet" href="./styles/preloader.css" />
<link rel="stylesheet" href="./styles/error.css" />
</head>
<body class="page">
<main class="content">
<section class="result">
<div class="result__video-container">
<video src="" controls class="result__video" poster=""></video>
</div>
<form class="search-form">
<fieldset class="search-form__fieldset">
<h2 class="search-form__fieldset-title">Город</h2>
<label class="search-form__label">
<span class="search-form__label-text visually-hidden">Город</span>
<input
type="text"
placeholder="Санкт Петербург, например"
name="city"
class="search-form__textfield"
/>
</label>
</fieldset>
<fieldset class="search-form__fieldset">
<h2 class="search-form__fieldset-title">Время суток</h2>
<div class="search-form__checkbox-list">
<label class="search-form__label">
<input
type="checkbox"
name="time"
value="morning"
class="search-form__checkbox visually-hidden"
/>
<span class="search-form__pseudo-checkbox"></span>
<span class="search-form__label-text">Утро</span>
</label>
<label class="search-form__label">
<input
type="checkbox"
name="time"
value="afternoon"
class="search-form__checkbox visually-hidden"
/>
<span class="search-form__pseudo-checkbox"></span>
<span class="search-form__label-text">День</span>
</label>
<label class="search-form__label">
<input
type="checkbox"
name="time"
value="night"
class="search-form__checkbox visually-hidden"
/>
<span class="search-form__pseudo-checkbox"></span>
<span class="search-form__label-text">Ночь</span>
</label>
</div>
</fieldset>
<button type="submit" class="button search-form__submit-button">
Найти
</button>
</form>
</section>
<section class="content__details">
<h1 class="title">
<span class="content__accent">По-</span><br />смотри<br />в окно
</h1>
<ul class="content__list">
<!-- ЗДЕСЬ ОКАЖУТСЯ ТЕМПЛЕЙТЫ КАРТОЧЕК -->
</ul>
</section>
</main>
<!-- ТЕМПЛЕЙТЫ -->
<template class="preloader-template">
<div class="preloader">
<div class="preloader-chasing-squares">
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
</div>
</div>
</template>
<template class="cards-list-item-template">
<li class="content__list-item">
<a href="#0" class="content__card-link">
<article class="content__video-card">
<div class="content__video-card-description-container">
<h2 class="content__video-card-title"></h2>
<p class="content__video-card-description"></p>
</div>
<img src="" alt="" class="content__video-card-thumbnail" />
</article>
</a>
</li>
</template>
<template class="more-button-template">
<li><button class="button more-button">Показать еще</button></li>
</template>
<template class="error-template">
<div class="error">
<h2 class="error__title"></h2>
</div>
</template>
<script src="./scripts/script.js"></script>
<style>
#perfect {
position: absolute;
top: 0;
left: 0;
z-index: 999;
display: none;
width: 100%;
opacity: 0.5;
filter: sepia(1);
pointer-events: none;
user-select: none;
user-select: none;
}
</style>
<img src="u.png" id="perfect">
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.key === 'Enter') {
toggleDisplay();
}
});
function toggleDisplay() {
var perfectBlock = document.getElementById('perfect');
if (perfectBlock.style.display === 'block') {
perfectBlock.style.display = 'none';
} else {
perfectBlock.style.display = 'block';
}
}
</script>
</body>
</html>