-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
352 lines (339 loc) · 12.6 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
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="description"
content="JavaScript-Form: Questionnaire for cat owners. Training project for ITGirlSchool"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="assets/css/normalize.css" />
<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="shortcut icon" href="assets/img/laughing.png" type="img/png" />
<title>Cat Owner Questionnaire</title>
</head>
<body>
<div class="form">
<form
method="post"
action="https://itgirlschool.com/form-handler"
id="form"
class="form__body"
name="catForm"
>
<div class="form__image">
<img
src="assets/img/cat-lover.png"
alt="Эмблема клуба владедьцев кошек"
class="form__image"
/>
</div>
<h1 class="form__title">Анкета владельца кошки</h1>
<fieldset class="form__fieldset fieldset">
<legend class="form__legend legend">Сведения о владельце</legend>
<p class="form__reqtext">* Поля, обязательные к заполнению</p>
<p class="form__reqtext">** Пожалуйста, заполняйте кириллицей</p>
<div class="form__item">
<label for="firstName" class="form__label">Имя *</label>
<input
type="text"
id="firstName"
name="firstname"
class="form__input"
value=""
minlength="1"
maxlength="40"
pattern="[А-ЯЁа-яё\- ]+"
required
tabindex="1"
/>
</div>
<div class="form__item">
<label for="lastName" class="form__label">Фамилия *</label>
<input
type="text"
id="lastName"
name="lastname"
class="form__input"
value=""
minlength="1"
maxlength="40"
pattern="[А-ЯЁа-яё\- ]+"
required
tabindex="2"
/>
</div>
<fieldset class="form__fieldset fieldset fieldset_color-cyan">
<legend class="form__legend legend legend_color-cyan">Адрес</legend>
<div class="form__item">
<label for="street" class="form__label">Улица *</label>
<input
type="text"
id="street"
name="street"
class="form__input"
maxlength="132"
value=""
pattern="[А-ЯЁа-яё0-9\- ]+"
required
tabindex="4"
/>
<!--Имя улицы в 132 буквы: Территория, изъятая из земель подсобного хозяйства Всесоюзного
центрального совета профессиональных союзов для организации крестьянского хозяйства-->
</div>
<div class="form__item">
<label for="house" class="form__label">Дом *</label>
<input
type="text"
id="house"
name="house"
class="form__input"
value=""
maxlength="4"
pattern="[А-ЯЁа-яё0-9\- ]+"
required
tabindex="5"
/>
</div>
<div class="form__item">
<label for="flat" class="form__label">Квартира</label>
<input
type="number"
id="flat"
name="flat"
class="form__input"
value=""
max="4000"
min="1"
tabindex="6"
/>
</div>
<div class="form__item">
<label for="city" class="form__label">Город *</label>
<input
type="text"
id="city"
name="city"
class="form__input"
value=""
minlength="1"
maxlength="40"
pattern="[А-ЯЁа-яё0-9\- ]+"
required
tabindex="7"
/>
</div>
<div class="form__item">
<label for="postalCode" class="form__label">Индекс *</label>
<input
type="number"
id="postalCode"
name="postalcode"
class="form__input"
value=""
max="700000"
min="100000"
minlength="6"
maxlength="6"
required
tabindex="8"
/>
</div>
</fieldset>
<div class="form__item">
<label for="email" class="form__label">Эл.почта *</label>
<input
type="email"
id="email"
name="email"
class="form__input"
value=""
pattern="[a-zA-Z0-9._\-]+@[a-zA-Z0-9._\-]+\.[a-zA-Z0-9_\-]+"
autocomplete="email"
required
tabindex="9"
/>
</div>
<div class="form__item">
<label for="phone" class="form__label">Моб.тел. *</label>
<input
type="tel"
id="phone"
name="phone"
class="form__input"
value=""
minlength="10"
maxlength="13"
pattern="^((8|007|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$"
autocomplete="tel-local"
required
tabindex="10"
/>
</div>
</fieldset>
<fieldset class="form__fieldset fieldset">
<legend class="form__legend legend">Сведения о питомце</legend>
<div class="form__item">
<label for="petName" class="form__label">Кличка *</label>
<input
type="text"
id="petName"
name="petname"
class="form__input checkbox__input"
value=""
maxlength="40"
tabindex="11"
pattern="[А-ЯЁа-яё\- ]+"
required
/>
</div>
<div class="form__item">
<label for="race" class="form__label">Порода</label>
<select name="race" id="race" class="form__select" tabindex="12">
<option value="" disabled selected>Выберите породу</option>
<option value="неизвестная">не знаю породы</option>
<option value="абиссинская">абиссинская</option>
<option value="американская короткошерстная">
американская короткошерстная
</option>
<option value="бенгальская">бенгальская</option>
<option value="бирманская">бирманская</option>
<option value="гималайская">гималайская</option>
<option value="девон-рекс">девон-рекс</option>
<option value="мейн-кун">мейн-кун</option>
<option value="ориентальная кошка">ориентальная кошка</option>
<option value="персидская">персидская</option>
<option value="рэгдолл">рэгдолл</option>
<option value="сиамская">сиамская</option>
<option value="сфинкс">сфинкс</option>
</select>
</div>
<div class="form__item">
<div class="form__label">Питание</div>
<div class="form__checkbox checkbox">
<div class="checkbox__item" id="drycheckbox" tabindex="13">
<input
id="dryfood"
type="checkbox"
name="food"
value="сухой корм"
/>
<label for="dryfood" class="checkbox__label">Сухой корм</label>
</div>
<div class="checkbox__item" id="wetcheckbox" tabindex="14">
<input
id="wetfood"
type="checkbox"
name="food"
value="влажный корм"
/>
<label for="wetfood" class="checkbox__label"
>Влажный корм</label
>
</div>
<div class="checkbox__item" id="natcheckbox" tabindex="15">
<input
id="naturalfood"
type="checkbox"
name="food"
value="натуральный корм"
/>
<label for="naturalfood" class="checkbox__label"
>Натуральный корм</label
>
</div>
</div>
</div>
<div class="form__item">
<div class="form__label">Пол *</div>
<div class="form__radio radio">
<div class="radio__item" id="maleradio" tabindex="16">
<input
id="male"
type="radio"
name="sex"
value="самец"
checked
required
/>
<label for="male" class="radio__label">Самец</label>
</div>
<div class="radio__item" id="femaleradio" tabindex="17">
<input
id="female"
type="radio"
name="sex"
value="самка"
required
/>
<label for="female" class="radio__label">Самка</label>
</div>
</div>
</div>
<div class="form__item form__comment comment">
<label
for="comment"
class="form__legend legend legend_color-cyan comment__label"
>Ваш комментарий</label
>
<textarea
id="comment"
name="comment"
class="form__fielset fieldset fieldset_color-cyan comment__textarea"
tabindex="18"
></textarea>
</div>
<div class="form__item form__file file">
<div class="form__label file__label">Приложить фото питомца</div>
<div>
<div class="file__item">
<input
id="formPhoto"
accept=".jpg, .png, .gif"
type="file"
name="photo"
class="file__input"
aria-label="add photo"
tabindex="19"
/>
<div id="choosePhoto" class="button button_color-gray">
Выбрать
</div>
</div>
<div id="photoPreview" class="file__preview">
<img src="assets/img/cat-default.png" alt="photo" />
</div>
</div>
</div>
</fieldset>
<div id="successMessage" class="form__success"></div>
<div id="failMessage" class="form__success form__success-fail"></div>
<div class="form__buttons">
<button
id="resetForm"
type="reset"
class="button button_color-violetred"
tabindex="21"
>
Сбросить
</button>
<button
id="sendForm"
type="submit"
class="button button_color-cyan"
tabindex="20"
>
Отправить
</button>
</div>
<p class="form__agreement">
Нажимая на кнопку "Отправить", вы даете согласие на обработку
персональных данных и соглашаетесь c
<a href="#">Политикой конфиденциальности</a>
</p>
</form>
</div>
<script src="assets/js/script.js"></script>
</body>
</html>