-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
263 lines (225 loc) · 13.1 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
251
252
253
254
255
256
257
258
259
260
261
262
263
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Keksobooking</title>
</head>
<body>
<header class="header">
<h1 class="visuallyhidden">Keksobooking. Кексы по соседству</h1>
</header>
<main>
<section class="map map--faded">
<div class="map__pins">
<div class="map__pinsoverlay"><h2>И снова Токио!</h2></div>
<button class="map__pin map__pin--main">
<img src="img/main-pin-image.png" width="40" height="44" draggable="false">
<svg viewBox="0 0 70 70">
<defs>
<path d="M35,35m-23,0a23,23 0 1,1 46,0a23,23 0 1,1 -46,0" id="tophalf" />
</defs>
<ellipse cx="35" cy="35" rx="35" ry="35" fill="rgba(255, 86, 53, 0.7)" />
<text><textPath xlink:href="#tophalf" startOffset="0">Поставь меня куда-нибудь</textPath></text>
</svg>
</button>
</div>
<div class="map__filters-container">
<form action="#" class="map__filters" autocomplete="off">
<select name="housing-type" id="housing-type" class="map__filter">
<option value="any" selected>Любой тип жилья</option>
<option value="flat">Квартира</option>
<option value="house">Дом</option>
<option value="bungalo">Сарай</option>
</select>
<select name="housing-price" id="housing-price" class="map__filter">
<option value="any" selected>Любая</option>
<option value="middle">10000 - 50000₽</option>
<option value="low">до 10000₽</option>
<option value="high">от 50000₽</option>
</select>
<select name="housing-rooms" id="housing-rooms" class="map__filter">
<option value="any" selected>Любое число комнат</option>
<option value="1">Одна комната</option>
<option value="2">Две комнаты</option>
<option value="3">Три комнаты</option>
</select>
<select name="housing-guests" id="housing-guests" class="map__filter">
<option value="any" selected>Любое число гостей</option>
<option value="1">Один гость</option>
<option value="2">Два гостя</option>
</select>
<fieldset id="housing-features" class="map__filter-set features">
<input type="checkbox" name="features" value="wifi" id="filter-wifi">
<label class="feature feature--wifi" for="filter-wifi">Wi-Fi</label>
<input type="checkbox" name="features" value="dishwasher" id="filter-dishwasher">
<label class="feature feature--dishwasher" for="filter-dishwasher">Посудомоечная машина</label>
<input type="checkbox" name="features" value="parking" id="filter-parking">
<label class="feature feature--parking" for="filter-parking">Парковка</label>
<input type="checkbox" name="features" value="washer" id="filter-washer">
<label class="feature feature--washer" for="filter-washer">Стиральная машина</label>
<input type="checkbox" name="features" value="elevator" id="filter-elevator">
<label class="feature feature--elevator" for="filter-elevator">Лифт</label>
<input type="checkbox" name="features" value="conditioner" id="filter-conditioner">
<label class="feature feature--conditioner" for="filter-conditioner">Кондиционер</label>
</fieldset>
</form>
</div>
</section>
<div class="notice">
<h2 class="notice__title">Ваше объявление</h2>
<form action="https://js.dump.academy/keksobooking" class="notice__form notice__form--disabled" method="post" enctype="multipart/form-data" autocomplete="off">
<fieldset class="notice__header" disabled>
<legend>Ваша фотография (для карты)</legend>
<div class="notice__photo">
<div class="upload">
<div class="notice__preview">
<img src="img/muffin.png" alt="Аватар пользователя" width="40" height="44">
</div>
<input type="file" id="avatar">
<label class="drop-zone" for="avatar">Загрузите или перетащите сюда фото</label>
<p class="notice__info">Заполните все обязательные поля, назначьте цену, загрузите фотографии. Придумайте интересное описание. Оно сделает объявление более живым и привлекательным. Получившееся объявление должно давать гостям полное представление о вашем жилье.</p>
</div>
</div>
</fieldset>
<fieldset class="form__element form__element--wide" disabled>
<label for="title">Заголовок объявления</label>
<input id="title" name="title" type="text" placeholder="Милая, уютная квартирка в центре Токио" minlength="30" maxlength="100" required>
</fieldset>
<fieldset class="form__element form__element--wide" disabled>
<label for="address">Адрес</label>
<input id="address" name="address" type="text" required readonly>
</fieldset>
<fieldset class="form__element" disabled>
<label for="type">Тип жилья</label>
<select id="type" name="type">
<option value="bungalo" selected>Лачуга</option>
<option value="flat">Квартира</option>
<option value="house">Дом</option>
<option value="palace">Дворец</option>
</select>
</fieldset>
<fieldset class="form__element" disabled>
<label for="price">Цена за ночь, руб.</label>
<input id="price" name="price" type="number" placeholder="0" value="1000" min="0" max="1000000" required>
</fieldset>
<fieldset class="form__element" disabled>
<label for="timein">Время заезда и выезда</label>
<select id="timein" name="timein">
<option value="12:00" selected>После 12</option>
<option value="13:00">После 13</option>
<option value="14:00">После 14</option>
</select>
<select id="timeout" name="timeout" title="Time to go out">
<option value="12:00" selected>Выезд до 12</option>
<option value="13:00">Выезд до 13</option>
<option value="14:00">Выезд до 14</option>
</select>
</fieldset>
<fieldset class="form__element" disabled>
<label for="room_number">Кол-во комнат</label>
<select id="room_number" name="rooms">
<option value="1" selected>1 комната</option>
<option value="2">2 комнаты</option>
<option value="3">3 комнаты</option>
<option value="100">100 комнат</option>
</select>
</fieldset>
<fieldset class="form__element" disabled>
<label for="capacity">Количество мест</label>
<select id="capacity" name="capacity">
<option value="3">для 3 гостей</option>
<option value="2">для 2 гостей</option>
<option value="1" selected>для 1 гостя</option>
<option value="0">не для гостей</option>
</select>
</fieldset>
<fieldset class="form__element features form__element--wide" disabled>
<legend>Удобства: Wi-Fi, кухня, парковка, стиралка, лифт, кондиционер</legend>
<input type="checkbox" name="features" value="wifi" id="feature-wifi">
<label class="feature feature--wifi" for="feature-wifi">Wi-Fi</label>
<input type="checkbox" name="features" value="dishwasher" id="feature-dishwasher">
<label class="feature feature--dishwasher" for="feature-dishwasher">Посудомоечная машина</label>
<input type="checkbox" name="features" value="parking" id="feature-parking">
<label class="feature feature--parking" for="feature-parking">Парковка</label>
<input type="checkbox" name="features" value="washer" id="feature-washer">
<label class="feature feature--washer" for="feature-washer">Стиральная машина</label>
<input type="checkbox" name="features" value="elevator" id="feature-elevator">
<label class="feature feature--elevator" for="feature-elevator">Лифт</label>
<input type="checkbox" name="features" value="conditioner" id="feature-conditioner">
<label class="feature feature--conditioner" for="feature-conditioner">Кондиционер</label>
</fieldset>
<fieldset class="form__element form__element--wide" disabled>
<label for="description">Описание (не обязательно)</label>
<textarea id="description" name="description" placeholder="Здесь расскажите о том, какое ваше жилье замечательное и вообще"></textarea>
</fieldset>
<fieldset class="form__element form__element--wide" disabled>
<label>Фотографии жилья</label>
<div class="form__photo-container">
<div class="upload">
<input type="file" id="images">
<label for="images" class="drop-zone">Загрузите или перетащите сюда фото</label>
</div>
</div>
</fieldset>
<fieldset class="form__element form__element--submit" disabled>
<button class="form__submit" type="submit">Опубликовать</button>
или <button class="form__reset" type="reset">очистить</button>
</fieldset>
</form>
</div>
</main>
<footer class="footer container">
<div class="center-wrapper">
<section class="footer-logo">
Сделано в <a tabindex="1" href="https://htmlacademy.ru" class="footer-logo-link"><img src="img/ha-logo.png" class="footer-logo-image" width="130" alt="HTML Academy"/>HTML Academy</a> © 2017
</section>
<nav class="footer-social">
<a href="https://twitter.com/htmlacademy_ru" class="footer-social-item footer-social-item-twitter" target="_blank" rel="nofollow">Twitter</a>
<a href="https://www.instagram.com/htmlacademy/" class="footer-social-item footer-social-item-instagram" target="_blank" rel="nofollow">Instagtam</a>
<a href="https://www.facebook.com/htmlacademy" class="footer-social-item footer-social-item-facebook" target="_blank" rel="nofollow">Facebook</a>
<a href="https://vk.com/htmlacademy" class="footer-social-item footer-social-item-vk" target="_blank" rel="nofollow">VK</a>
</nav>
</div>
</footer>
<template>
<article class="map__card popup">
<img src="img/avatars/user01.png" class="popup__avatar" width="70" height="70">
<button class="popup__close">Закрыть</button>
<h3>Уютное гнездышко для молодоженов</h3>
<p><small>102-0082 Tōkyō-to, Chiyoda-ku, Ichibanchō, 14−3</small></p>
<p class="popup__price">5200₽/ночь</p>
<h4>Квартира</h4>
<p>2 комнаты для 3 гостей</p>
<p>Заезд после 14:00, выезд до 10:00</p>
<ul class="popup__features">
<li class="feature feature--wifi"></li>
<li class="feature feature--dishwasher"></li>
<li class="feature feature--parking"></li>
<li class="feature feature--washer"></li>
<li class="feature feature--elevator"></li>
<li class="feature feature--conditioner"></li>
</ul>
<p>Великолепная квартира-студия в центре Токио. Подходит как туристам, так и бизнесменам. Квартира полностью укомплектована и недавно отремонтирована.</p>
<ul class="popup__pictures">
<li><img src=""></li>
</ul>
</article>
<button style="left: 200px; top: 400px;" class="map__pin"><img src="img/avatars/user07.png" width="40" height="40" draggable="false"></button>
</template>
<script src="js/util.js" type="text/javascript"></script>
<script src="js/ElementParameters.js" type="text/javascript"></script>
<script src="js/Draggable.js" type="text/javascript"></script>
<script src="js/backend.js" type="text/javascript"></script>
<script src="js/data.js" type="text/javascript"></script>
<script src="js/filter.js" type="text/javascript"></script>
<script src="js/debounce.js" type="text/javascript"></script>
<script src="js/map.js" type="text/javascript"></script>
<script src="js/card.js" type="text/javascript"></script>
<script src="js/show-card.js" type="text/javascript"></script>
<script src="js/synchronize-fields.js" type="text/javascript"></script>
<script src="js/form.js" type="text/javascript"></script>
<script src="js/pin-main.js" type="text/javascript"></script>
</body>
</html>