-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
369 lines (319 loc) · 10.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!-- <html> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link rel="shortcut icon" href="favicon.png" type="image/png">
<meta name="color-scheme" content="dark">
<!-- <script>
window.location.replace("./legacy/"); // Temporarily Enabled
</script> -->
<style>
* {
box-sizing: border-box;
}
body {
/* background-color: #131313; */
color: white;
/* overflow-y: hidden; */
}
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: #14141b;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: rgb(51, 51, 51);
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
#regForm {
background-color: #1d1d1d;
margin: 100px auto;
font-family: Raleway;
padding: 40px;
width: 70%;
min-width: 300px;
border-radius: 10px;
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
transition: box-shadow 0.3s ease-in-out;
}
#regForm:hover {
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
h1 {
text-align: center;
}
input[type="text"] {
padding: 10px;
width: 100%;
font-size: 17px;
font-family: Raleway;
border: 1px solid #363636;
background-color: #161616;
color: white;
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
background-color: #ffdddd;
}
/* Hide all steps by default: */
.tab {
display: none;
}
button {
background-color: #bd4c30;
color: #ffffff;
border: none;
padding: 10px 20px;
font-size: 17px;
font-family: Raleway;
cursor: pointer;
border-radius: 10px;
outline: none;
}
button:hover {
opacity: 0.8;
}
#prevBtn {
background-color: #666666;
outline: none;
}
/* Make circles that indicate the steps of the form: */
.step {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbbbbb;
border: none;
border-radius: 50%;
display: inline-block;
opacity: 0.5;
}
.step.active {
opacity: 1;
}
/* Mark the steps that are finished and valid: */
.step.finish {
background-color: #4CAF50;
}
</style>
<body>
<form id="regForm" action="thankyou.html">
<h1>Register For Bijoya Lunch and (Zoom) Adda</h1>
<!-- One "tab" for each step in the form: -->
<div class="tab">
<!--<p></p> -->
<p> <br> Date: <span style="color: rgb(243, 154, 122);">Nov. 8, 2020, 2 pm</span> <br> <br>Venue: <span style="color: rgb(243, 154, 122) ;">Online</span> <br> <br> Please register here to participate in Utsav 2020 Bijoya Party. Sumptuous meal will be available for pick-up (between Noon-2 PM), followed by an "adda" on Zoom. Don't forget to dress up for the occasion, as per the recommended dress-code!
<br> <br> Note that this is open to current Utsav members and their immediate families only. Members can add guests at a nominal charge.
Membership details are available here: <a style="color: white; font-weight: bold; text-decoration: solid;" href="https://www.utsavsac.org/membership">https://www.utsavsac.org/membership</a> <br> <br> <b> Click Next To Continue.</b></p>
</div>
<div class="tab">
<zero-md src="covidrelease.md" id="md"> <template>
<!-- Wrap your own CSS styles inside a `<style>` tag -->
<style>
/* My own markdown styles */
h1 {
font-size: 34px;
color: white;
}
p {
color: white;
/* font-size: 14; */
}
/* My own highlight styles */
code {
background-color: #1b1d23;
color: #af6161;
}
h2 {
color: white;
}
h1 {
border-color: #555;
}
h2 {
border-color: #555;
}
hr {
background-color: #555;
}
blockquote {
border-color: #181a1f;
}
img {
background-color: transparent;
}
code,
tt {
background-color: #1b1d23;
color: #e83e8c;
}
.highlight pre,
pre {
background-color: #1b1d23;
padding: 10px;
border-radius: 10px;
}
pre code {
color: rgb(157, 165, 180);
}
table tr {
background-color: #222222;
border-color: #181a1f;
}
table :nth-child(2n) {
background-color: #090705;
border-color: #181a1f;
}
table td th {
border-color: #181a1f;
}
h3 {
color: white;
}
a {
color: rgb(202, 202, 202);
text-decoration: none;
}
a:hover {
color: white;
}
li {
color: white;
}
</style>
</template></zero-md>
<p><input placeholder="Full Legal Name..." oninput="this.className = ''" name="name" type="text" id="fullname"></p>
</div>
<div class="tab"><br><br>
Please enter the following details:
<p><input placeholder="Email" oninput="this.className = ''" name="Email" type="text" id="email"></p>
<p><input placeholder="Zip Code" oninput="this.className = ''" name="zipcode" type="text" id="zipcode"></p>
<p><input placeholder="Number of People in Your Family" oninput="this.className = ''" name="members" type="text" id="members"></p>
<br> Number of guests ($7 per person) <br>
<p><input placeholder="Guests ($7 pp)" oninput="this.className = ''" name="guests" type="text" id="guests" value="0"></p>
<br>
<p> Please select Menu Option: </p>
<input type="radio" id="nonveg" name="menu" value="nonveg" checked="checked">
<label for="nonveg">Non-veg</label><br>
<input type="radio" id="veg" name="menu" value="veg">
<label for="female">Veg</label><br> <br>
<!-- I am interested in (please check) <br><br>
<label class="container">Immediate family members (including yourself)
<input class="checkbox" type="checkbox" id="driveby_select" name="driveby">
<span class="checkmark"></span>
</label>
<br><br>
<label class="container">Additional guests ($7 per guest)
<input class="checkbox" type="checkbox" id="prasad_select" name="prasad">
<span class="checkmark"></span>
</label>
<br><br>
<label class="container">Bhog Pickup
<input class="checkbox" type="checkbox" id="bhog_select" name="bhog">
<span class="checkmark"></span>
</label> -->
<!-- <p><input placeholder="" oninput="this.className = ''" name="nn"></p>
<p><input placeholder="yyyy" oninput="this.className = ''" name="yyyy"></p> -->
</div>
<div style="overflow:auto;">
<div style="float:right;">
<button type="button" id="prevBtn" onclick="nextPrev(-1)">Previous</button>
<button type="button" id="nextBtn" onclick="nextPrev(1)">Next</button>
</div>
</div>
<!-- Circles which indicates the steps of the form: -->
<div style="text-align:center;margin-top:40px;">
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
<!-- <span class="step"></span> -->
</div>
</form>
<script src="js/app.js"></script>
<script>
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
function showTab(n) {
// This function will display the specified tab of the form...
var x = document.getElementsByClassName("tab");
x[n].style.display = "block";
//... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById("prevBtn").style.display = "none";
} else {
document.getElementById("prevBtn").style.display = "inline";
}
if (n == (x.length - 1)) {
document.getElementById("nextBtn").innerHTML = "Submit";
document.getElementById("nextBtn").classList.add('submit');
} else {
document.getElementById("nextBtn").innerHTML = "Next";
document.getElementById("nextBtn").classList.remove('submit');
}
//... and run a function that will display the correct step indicator:
fixStepIndicator(n)
}
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("tab");
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !validateForm()) return false;
// Hide the current tab:
x[currentTab].style.display = "none";
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form...
if (currentTab >= x.length) {
// ... the form gets submitted:
document.getElementById("regForm").submit();
return false;
}
// Otherwise, display the correct tab:
showTab(currentTab);
}
function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false
valid = false;
}
}
// If the valid status is true, mark the step as finished and valid:
if (valid) {
document.getElementsByClassName("step")[currentTab].className += " finish";
}
return valid; // return the valid status
}
function fixStepIndicator(n) {
// This function removes the "active" class of all steps...
var i, x = document.getElementsByClassName("step");
for (i = 0; i < x.length; i++) {
x[i].className = x[i].className.replace(" active", "");
}
//... and adds the "active" class on the current step:
x[n].className += " active";
}
</script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.21.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.21.1/firebase-analytics.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/[email protected]/webcomponents-loader.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
</body>
<!-- </html> -->