-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
270 lines (266 loc) · 7.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form</title>
<link rel="stylesheet" href="./style.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
</head>
<body>
<h1 id="title">Survey Form</h1>
<p id="description">Survey form for knowing favourite foods</p>
<div class="row">
<div class="col-12 col-lg-6">
<form id="survey-form" class="survey-form">
<legend>Favourite food</legend>
<div class="form-row row">
<div class="form-group col-md-5 col-lg-4">
<label id="name-label" for="first-name">First name</label>
<input
type="text"
name="firstname"
class="form-control"
id="first-name"
placeholder="First name"
required
/>
</div>
<div class="form-group col-md-5 col-lg-4">
<label for="last-name">Last name</label>
<input
type="text"
name="lastname"
id="last-name"
class="form-control"
placeholder="Last name"
required
/>
</div>
</div>
<div class="form-group col-md-5 col-lg-4">
<label id="email-label" for="last-name">Email</label>
<input
type="email"
name="email"
id="email"
class="form-control"
placeholder="[email protected]"
required
/>
</div>
<div class="form-group col-md-5 col-lg-4">
<label for="last-name">Contact</label>
<input
type="number"
name="contact"
id="contact"
class="form-control"
placeholder=""
required
/>
</div>
<div class="form-group col-12 col-lg-10">
<label for="form-address">Address</label>
<input
type="text"
name="address"
class="form-control"
id="form-address"
placeholder="1234 Main St"
required
/>
</div>
<div class="form-group col-6 col-sm-4 col-md-2 ">
<label for="form-pincode">Pincode</label>
<input
type="number"
name="pincode"
class="form-control"
id="form-pincode"
placeholder="600001"
/>
</div>
<div class="form-row my-3">
<label>Gender</label>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="gender"
id="gender"
value="male"
required
/>
<label class="form-check-label" for="male"> Male </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="gender"
id="gender"
value="female"
/>
<label class="form-check-label" for="female"> Female </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="gender"
id="gender"
value="other"
/>
<label class="form-check-label" for="other"> Other </label>
</div>
</div>
<div class="form-group col-8 col-sm-6 col-lg-4 ">
<select name="country" id="country" class="form-select col-3" required="">
<option value="">Select Country</option>
<option value="India">India</option>
</select>
<select name="state" id="state" class="form-select my-3" required="">
<option value="">Select State</option>
<option value="Tamilnadu">Tamilnadu</option>
<option value="Kerala">Kerala</option>
</select>
</div>
<div class="form-group">
<label class="fw-bold">Favourite Food(Select atleast two)</label >
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value="Chicken Biriyani"
id="chickenBiriyani"
name="food"
/>
<label class="form-check-label" for="chickenBiriyani">
Chicken Biriyani
</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value="Mutton Biriyani"
id="muttonbiriyani"
name="food"
/>
<label class="form-check-label" for="muttonbiriyani">
Mutton Biriyani
</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value="Veg Biriyani"
id="vegbiriyani"
name="food"
/>
<label class="form-check-label" for="vegbiriyani">
Veg Biriyani
</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value="Chicken tikka"
id="chickentikka"
name="food"
/>
<label class="form-check-label" for="chickentikka">
Chicken tikka
</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value="Curd Rice"
id="curdrice"
name="food"
/>
<label class="form-check-label" for="curdrice">
Curd Rice
</label>
</div>
</div>
<div class="form-floating form-group mt-4">
<textarea
name="comments"
class="form-control"
placeholder="Leave a comment here"
id="comments"
style="height: 100px;"
></textarea>
<label for="comments">Leave a commment...</label>
</div>
<br />
<button id="submit" class="btn btn-primary">Submit</button>
</form>
</div>
<div class="col-12 col-lg-6">
<h2 class="mt-5">Result</h2>
<table class="mt-1 w-100" >
<tr >
<th>First name:</th>
<td id="firstname"></td>
</tr>
<tr>
<th>Last name:</th>
<td id="lastname"></td>
</tr>
<tr>
<th>Address:</th>
<td id="address"></td>
</tr>
<tr>
<th>Pincode:</th>
<td id="pincode"></td>
</tr>
<tr>
<th>Gender:</th>
<td id="gender1"></td>
</tr>
<tr>
<th>Food:</th>
<td id="food"></td>
</tr>
<tr>
<th>State:</th>
<td id="state1"></td>
</tr>
<tr>
<th>Country:</th>
<td id="country1"></td>
</tr>
<tr>
<th>Comment:</th>
<td id="comment"></td>
</tr>
</table>
</div>
</div>
<script src="./script.js"></script>
<script src="https://app.zenclass.in/sheets/v1/js/zen/suite/bundle.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"
></script>
</body>
</html>