-
Notifications
You must be signed in to change notification settings - Fork 396
/
signup.html
701 lines (661 loc) · 22.2 KB
/
signup.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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<!DOCTYPE html>
<link rel="shortcut icon" href="./Images/Logo/Title.jpeg" type="image/x-icon" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="./static/style.css" rel="stylesheet" type="text/css" />
<html>
<head>
<title>Sign Up</title>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap"
rel="stylesheet"
/>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<!------------------------Scroll to top button------------------------------------------------>
<style>
#scrollToTopButton {
position: fixed;
bottom: 40px;
right: 25px;
font-size: 25px;
z-index: 99;
width: 50px;
height: 50px;
background-color: red;
color: black;
border: none;
cursor: pointer;
outline: none;
padding: 6px;
border-radius: 50%;
box-shadow: 0 6px 10px 0px gray;
}
#scrollToTopButton:hover,
i:hover {
background-color: white;
color: red;
}
h1 {
margin: auto;
width: max-content;
color: white;
}
span {
display: inline-block;
padding: 5px;
}
.img-logo {
height: 94px;
margin-left: 45px;
}
.seperator {
height: 12px;
display: block;
}
.main {
padding: 70px;
width: 300px;
height: auto;
border: 1.5px grey solid;
border-radius: 5px;
margin: -4.5px auto;
}
label {
font-weight: bold;
color: white;
font-size: 1.25em;
}
input {
width: 280px;
border: none;
border-radius: 5px;
padding: 8px;
outline: none;
}
input[type="submit"] {
width: 260px;
background-color: red;
font-weight: bold;
}
input[type="submit"]:hover {
cursor: pointer;
border: 2px gray solid;
background-color: red;
transform: scale(0.95);
}
body {
margin: 0;
padding: 0;
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
url("Images/background3.png") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.brand {
margin-bottom: 13px;
color: red;
padding-top: 15px;
}
#errormessage {
display: flex;
justify-content: center;
border-radius: 12px;
}
p {
display: inline-flex;
font-size: 1em;
align-items: center;
background: rgb(220, 53, 69);
padding: 0.5em;
color: white;
font-family: sans-serif;
}
p svg {
width: 2em;
height: 2em;
margin-right: 0.5em;
fill: lightgreen;
}
.login {
margin: 0 auto;
width: 400px;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 5px;
padding: 30px 70px 143px 70px;
margin-bottom: 12px;
}
.login h1 {
color: white;
padding-bottom: 10px;
}
.bottom {
background-color: rgba(0, 0, 0, 0.35);
color: #bdc7c9;
}
.bottom-width {
max-width: 1000px;
padding: 8px 30px;
}
.bottom-flex {
display: flex;
flex-wrap: wrap;
padding: 15px 0 0 0;
justify-content: center;
}
.bottom-flex li a {
font-size: 15px;
}
.bottom-flex li {
list-style: none;
margin: 0px 10px;
}
.list-bottom {
/* width: 25%; */
margin-top: 10px;
}
.link-bottom {
text-decoration: none;
color: #bdc7c9;
font-size: 0.8rem;
}
.link-bottom:hover {
text-decoration: underline;
}
.remember-flex {
display: flex;
justify-content: space-between;
margin-top: 10px;
font-size: 0.8rem;
}
.color_text {
color: #bdc7c9;
}
.color_link {
color: #bdc7c9;
}
.signup-link {
color: white;
text-decoration: none;
}
.signup-link:hover {
text-decoration: underline;
}
.face_icon {
color: #3b5998;
margin-right: 6px;
font-size: 20px;
}
.log_face {
text-decoration: none;
margin-left: 10px;
font-size: 0.8rem;
}
.login-face {
margin: 50px 0 15px 0;
vertical-align: middle;
color: #bdc7c9;
}
.al_members {
margin: 12px 0px;
color: #a0a2a2;
padding: 0px 12px;
font-size: 16.2px;
}
.log-link {
text-decoration: none;
color: whitesmoke;
}
.log-link:hover {
text-decoration: underline;
}
.help {
text-align: right;
}
.help a {
text-decoration: none;
font-size: 16.5px;
}
.help a:hover {
text-decoration: underline;
}
.protection {
font-size: 0.8rem;
color: #bdc7c9;
text-align: center;
}
.protection a {
text-decoration: none;
}
.protection a:hover {
text-decoration: underline;
}
.tel-link {
text-decoration: none;
color: #e1e5ea;
}
.tel-link:hover {
text-decoration: underline;
}
.select-language {
-webkit-appearance: none;
-moz-appearance: none;
background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUwIDUwIiBoZWlnaHQ9IjUwcHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MCA1MCIgd2lkdGg9IjUwcHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iNTAiIHdpZHRoPSI1MCIvPjxwb2x5Z29uIHN0cm9rZT0id2hpdGUiICBwb2ludHM9IjQ3LjI1LDE1IDQ1LjE2NCwxMi45MTQgMjUsMzMuMDc4IDQuODM2LDEyLjkxNCAyLjc1LDE1IDI1LDM3LjI1ICIvPjwvc3ZnPg==");
background-size: 12px;
background-position-x: calc(100% - 7px);
background-position-y: calc(100% - 14px);
background-repeat: no-repeat;
background-color: #000;
color: #bdc7c9;
padding: 14px 20px 14px 14px;
margin: 30px 0 40px 0;
font-size: 0.9rem;
min-height: 40px;
border: 1px solid #333;
}
.select-language option {
padding-left: 10px;
}
.input-text {
margin-bottom: 20px;
}
.input-text input {
width: 100%;
height: 45px;
background-color: #333;
color: white;
border-radius: 5px;
border: none;
outline: transparent;
text-indent: 8px;
}
.input-text input::-webkit-input-placeholder {
font-size: 1rem;
color: #bdc7c9;
}
.input-text input::-moz-placeholder {
font-size: 1rem;
color: #bdc7c9;
text-indent: 40px;
}
.signin-button {
margin-top: 20px;
padding: 13px;
border-radius: 5px;
background-color: red;
color: white;
border: none;
font-weight: bold;
font-size: 1.05rem;
cursor: pointer;
}
.aftersubmit {
opacity: 1;
width: 400px;
padding: 20px 75px 20px 65px;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 5px;
margin: 0px auto;
}
.field-icon {
position: absolute;
margin-left: -30px;
margin-top: 15px;
color: white;
}
.field-icon:hover {
cursor: pointer;
background-color: transparent;
}
.questions {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
}
@media only screen and (max-width: 450px) {
.login,
.aftersubmit {
width: 300px;
padding: 15px;
}
}
@media only screen and (max-width: 350px) {
.login,
.aftersubmit {
width: 240px;
padding: 10px;
}
input[type="submit"] {
width: 220px;
}
.help a {
margin-left: 0% !important;
}
}
</style>
<link
rel="shortcut icon"
href="./Images/Logo/Title.jpeg"
type="image/x-icon"
/>
</head>
<body>
<div class="logo">
<a href="home.html">
<img src="Images/TheaterLogoFinal.png" class="img-logo" />
</a>
</div>
<div class="login-div">
<form
class="login"
onsubmit="return DisplayResults()"
name="regform"
autocomplete="off"
>
<h1 class="sign">Sign Up</h1>
<div id="errormessage"></div>
<span class="seperator"></span>
<div class="input-text">
<input
type="text"
name="name"
placeholder="Enter your name"
oninput="change()"
/>
</div>
<div class="input-text">
<input
type="email"
name="email"
placeholder="Enter your Email"
oninput="change()"
/>
</div>
<div class="input-text">
<input
id="pass_signup"
type="password"
name="password"
placeholder="Enter your password"
oninput="change()"
/><i
class="fa fa-fw fa-eye field-icon toggle-password"
id="togglePassword"
></i>
</div>
<div class="input-text">
<input
id="pass_signup2"
type="password"
name="retypepassword"
placeholder="Confirm password"
oninput="change()"
/><i
class="fa fa-fw fa-eye field-icon toggle-password2"
id="togglePassword"
></i>
</div>
<input class="signin-button" type="submit" value="Sign Up" />
<div class="help">
<a class="color_text" href="https://www.google.com/gmail/"
>Need help?</a
>
</div>
<div class="al_members">
Already a Member?
<a href="login.html" class="log-link">Sign in here</a>.
</div>
<div class="protection color_link help">
This page is protected by Google reCAPTCHA to ensure you're not a bot.
<a href="#">Learn more.</a>
</div>
</form>
<span class="seperator"></span>
<form
style="opacity: 0"
class="aftersubmit"
onsubmit="return FinalResults()"
name="verificationform"
autocomplete="off"
>
<hr />
<div class="input-text">
<input
type="password"
name="code"
placeholder="Enter code"
oninput="change()"
/>
</div>
<input class="signin-button" type="submit" value="Register" />
</form>
<br />
<br />
</div>
<div class="bottom">
<div class="bottom-width">
<div class="questions">
<span>
Questions? <br />Ask on :
<a href="mailto: Apna_theatre@gmail.com" class="tel-link"
>Apna_theatre@gmail.com</a
></span
>
<select class="fa select-language">
<option> English</option>
<option> Hindi</option>
</select>
</div>
<div>
<ul class="bottom-flex">
<li class="list-bottom">
<a href="faq.html" class="link-bottom"> FAQ </a>
</li>
<li class="list-bottom">
<a href="#" class="link-bottom"> Help Center </a>
</li>
<li class="list-bottom">
<a href="#" class="link-bottom"> Terms of Use </a>
</li>
<li class="list-bottom">
<a href="#" class="link-bottom"> Privacy </a>
</li>
</ul>
</div>
</div>
</div>
<button id="scrollToTopButton" title="Go to top" class="ml-5">
<i class="fa fa-angle-double-up" aria-hidden="true"></i>
</button>
<script>
$(document).ready(function () {
var scrollTopButton = document.getElementById("scrollToTopButton");
window.onscroll = function () {
scrollFunction();
};
function scrollFunction() {
if (
document.body.scrollTop > 20 ||
document.documentElement.scrollTop > 20
) {
scrollTopButton.style.display = "block";
} else {
scrollTopButton.style.display = "none";
}
}
$("#scrollToTopButton").click(function () {
$("html ,body").animate({ scrollTop: 0 }, 800);
});
});
</script>
<script>
$(".toggle-password").click(function () {
$(this).toggleClass("fa-eye fa-eye-slash");
if ($("#pass_signup").attr("type") == "password") {
$("#pass_signup").attr("type", "text");
} else {
$("#pass_signup").attr("type", "password");
}
});
</script>
<script>
$(".toggle-password2").click(function () {
$(this).toggleClass("fa-eye fa-eye-slash");
if ($("#pass_signup2").attr("type") == "password") {
$("#pass_signup2").attr("type", "text");
} else {
$("#pass_signup2").attr("type", "password");
}
});
</script>
</body>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"
integrity="sha512-AA1Bzp5Q0K1KanKKmvN/4d3IRKVlv9PYgwFPvm32nPO6QS8yH1HO7LbgB1pgiOxPtfeg5zEn2ba64MUcqJx6CA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script>
var namerror = false;
var emailerror = false;
var passworderror = false;
var confirmerror = false;
var code = Math.floor(1000 + Math.random() * 9000);
var strongPass = new RegExp(
"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{6,})"
);
var btnclicked = false;
const mailformat =
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
function DisplayResults(e) {
var name = document.forms["regform"]["name"].value;
var email = document.forms["regform"]["email"].value;
var password = document.forms["regform"]["password"].value;
var confirmpassword = document.forms["regform"]["retypepassword"].value;
var error = document.getElementById("errormessage");
if (name.length == 0) {
namerror = true;
error.style.display = "block";
error.innerHTML = `<p><svg class="svg-icon" viewBox="0 0 20 20">
<path d="M12.075,10.812c1.358-0.853,2.242-2.507,2.242-4.037c0-2.181-1.795-4.618-4.198-4.618S5.921,4.594,5.921,6.775c0,1.53,0.884,3.185,2.242,4.037c-3.222,0.865-5.6,3.807-5.6,7.298c0,0.23,0.189,0.42,0.42,0.42h14.273c0.23,0,0.42-0.189,0.42-0.42C17.676,14.619,15.297,11.677,12.075,10.812 M6.761,6.775c0-2.162,1.773-3.778,3.358-3.778s3.359,1.616,3.359,3.778c0,2.162-1.774,3.778-3.359,3.778S6.761,8.937,6.761,6.775 M3.415,17.69c0.218-3.51,3.142-6.297,6.704-6.297c3.562,0,6.486,2.787,6.705,6.297H3.415z"></path>
</svg><span class="error">Name should not be empty</span></p>`;
} else if (email.length == 0) {
emailerror = true;
error.style.display = "block";
error.innerHTML = `<p><svg class="svg-icon" viewBox="0 0 20 20">
<path d="M17.388,4.751H2.613c-0.213,0-0.389,0.175-0.389,0.389v9.72c0,0.216,0.175,0.389,0.389,0.389h14.775c0.214,0,0.389-0.173,0.389-0.389v-9.72C17.776,4.926,17.602,4.751,17.388,4.751 M16.448,5.53L10,11.984L3.552,5.53H16.448zM3.002,6.081l3.921,3.925l-3.921,3.925V6.081z M3.56,14.471l3.914-3.916l2.253,2.253c0.153,0.153,0.395,0.153,0.548,0l2.253-2.253l3.913,3.916H3.56z M16.999,13.931l-3.921-3.925l3.921-3.925V13.931z"></path>
</svg><span class="error">Email should not be empty</span></p>`;
} else if (!mailformat.test(email)) {
error.style.display = "block";
error.innerHTML = `<p><svg class="svg-icon" viewBox="0 0 20 20">
<path d="M17.388,4.751H2.613c-0.213,0-0.389,0.175-0.389,0.389v9.72c0,0.216,0.175,0.389,0.389,0.389h14.775c0.214,0,0.389-0.173,0.389-0.389v-9.72C17.776,4.926,17.602,4.751,17.388,4.751 M16.448,5.53L10,11.984L3.552,5.53H16.448zM3.002,6.081l3.921,3.925l-3.921,3.925V6.081z M3.56,14.471l3.914-3.916l2.253,2.253c0.153,0.153,0.395,0.153,0.548,0l2.253-2.253l3.913,3.916H3.56z M16.999,13.931l-3.921-3.925l3.921-3.925V13.931z"></path>
</svg><span class="error">Email address is invalid</span></p>`;
} else if (!strongPass.test(password)) {
passworderror = true;
error.style.display = "block";
error.innerHTML = `<p><svg class="svg-icon" viewBox="0 0 20 20">
<path d="M17.308,7.564h-1.993c0-2.929-2.385-5.314-5.314-5.314S4.686,4.635,4.686,7.564H2.693c-0.244,0-0.443,0.2-0.443,0.443v9.3c0,0.243,0.199,0.442,0.443,0.442h14.615c0.243,0,0.442-0.199,0.442-0.442v-9.3C17.75,7.764,17.551,7.564,17.308,7.564 M10,3.136c2.442,0,4.43,1.986,4.43,4.428H5.571C5.571,5.122,7.558,3.136,10,3.136 M16.865,16.864H3.136V8.45h13.729V16.864z M10,10.664c-0.854,0-1.55,0.696-1.55,1.551c0,0.699,0.467,1.292,1.107,1.485v0.95c0,0.243,0.2,0.442,0.443,0.442s0.443-0.199,0.443-0.442V13.7c0.64-0.193,1.106-0.786,1.106-1.485C11.55,11.36,10.854,10.664,10,10.664 M10,12.878c-0.366,0-0.664-0.298-0.664-0.663c0-0.366,0.298-0.665,0.664-0.665c0.365,0,0.664,0.299,0.664,0.665C10.664,12.58,10.365,12.878,10,12.878"></path>
</svg><span class="error">Password should be atleast 6 characters long,contain a special character,a lower case and upper case alphabet and a number.</span></p>`;
} else if (password != confirmpassword) {
confirmerror = true;
error.style.display = "block";
error.innerHTML = `<p><svg class="svg-icon" viewBox="0 0 20 20">
<path d="M17.308,7.564h-1.993c0-2.929-2.385-5.314-5.314-5.314S4.686,4.635,4.686,7.564H2.693c-0.244,0-0.443,0.2-0.443,0.443v9.3c0,0.243,0.199,0.442,0.443,0.442h14.615c0.243,0,0.442-0.199,0.442-0.442v-9.3C17.75,7.764,17.551,7.564,17.308,7.564 M10,3.136c2.442,0,4.43,1.986,4.43,4.428H5.571C5.571,5.122,7.558,3.136,10,3.136 M16.865,16.864H3.136V8.45h13.729V16.864z M10,10.664c-0.854,0-1.55,0.696-1.55,1.551c0,0.699,0.467,1.292,1.107,1.485v0.95c0,0.243,0.2,0.442,0.443,0.442s0.443-0.199,0.443-0.442V13.7c0.64-0.193,1.106-0.786,1.106-1.485C11.55,11.36,10.854,10.664,10,10.664 M10,12.878c-0.366,0-0.664-0.298-0.664-0.663c0-0.366,0.298-0.665,0.664-0.665c0.365,0,0.664,0.299,0.664,0.665C10.664,12.58,10.365,12.878,10,12.878"></path>
</svg><span class="error">Passwords doesn't match</span></p>`;
} else {
Email.send({
Host: "smtp.gmail.com",
Username: "apnatheatre1@gmail.com",
Password: "apnatheatre123!@#",
To: email,
From: "apnatheatre1@gmail.com",
Subject: "Email verification",
Body: `Hello ${name},<br> Please enter this code: ${code} in the form to verify your email`,
}).then((message) => console.log(message));
swal("Please enter the code sent to your email");
var x = document.getElementsByClassName("aftersubmit");
x[0].style.opacity = "1";
console.log(x[0]);
}
return false;
}
function FinalResults() {
var usercode = document.forms["verificationform"]["code"].value;
console.log("hii");
if (code == usercode) {
swal({
title: "Registration Successful!",
text: "Happy to have you aboard",
type: "success",
});
window.location.href = "quiz.html";
// console.log(window.location.href)
// console.log('hi')
// var url = window.location.href
// var url1 = url.split("signup")
// console.log(url1)
// var newurl = url1[0] + "quiz.html"
// console.log(newurl)
// history.pushState(null,null, newurl);
// window.location.reload();
// onsubmit="return DisplayResults()"
} else {
swal({
title: "Invalid code",
type: "warning",
buttons: true,
dangerMode: true,
});
}
return false;
}
function change(e) {
var name = document.forms["regform"]["name"].value;
var error = document.getElementById("errormessage");
var email = document.forms["regform"]["email"].value;
var password = document.forms["regform"]["password"].value;
var confirmpassword = document.forms["regform"]["retypepassword"].value;
if (namerror == true) {
if (name.length > 0) {
namerror = false;
error.style.display = "none";
}
} else if (emailerror == true) {
if (email.length > 0) {
emailerror = false;
error.style.display = "none";
}
} else if (passworderror == true) {
if (password.length > 0) {
passworderror = true;
error.style.display = "none";
}
} else if (confirmerror == true) {
if (confirmpassword == password) {
confirmerror = false;
error.style.display = "none";
}
}
}
</script>
<script src="https://smtpjs.com/v3/smtp.js"></script>
</html>