-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
637 lines (595 loc) · 30.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=ENTER_YOUR_ANALYTICS_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'ENTER_YOUR_ANALYTICS_ID');
</script>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'ENTER_YOUR_TAG_ID');</script>
<!-- End Google Tag Manager -->
<title>Affiliate | Finstreet | India's 1st ever Financial Freedom Coach</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="images/cropped-Fin-270x270.jpg">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<script src="https://use.fontawesome.com/ebc80d226d.js"></script>
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/all.css"> -->
<style type="text/css">
.card {
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-clip: border-box;
border-radius: .25rem;
background-color: #2f3549;
border: 0px #2f3549;
}
.divider-text {
position: relative;
text-align: center;
margin-top: 15px;
margin-bottom: 15px;
}
.divider-text span {
padding: 7px;
font-size: 12px;
position: relative;
z-index: 2;
}
.divider-text:after {
content: "";
position: absolute;
width: 100%;
border-bottom: 1px solid #ddd;
top: 55%;
left: 0;
z-index: 1;
}
.btn-facebook {
background-color: #405D9D;
color: #fff;
}
.btn-twitter {
background-color: #42AEEC;
color: #fff;
}
</style>
<!-- Facebook Pixel Code -->
<script>
!function (f, b, e, v, n, t, s) {
if (f.fbq) return; n = f.fbq = function () {
n.callMethod ?
n.callMethod.apply(n, arguments) : n.queue.push(arguments)
};
if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0';
n.queue = []; t = b.createElement(e); t.async = !0;
t.src = v; s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s)
}(window, document, 'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '2925272084236286');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=2925272084236286&ev=PageView&noscript=1" /></noscript>
<!-- End Facebook Pixel Code -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=ENTER_YOUR_TAG_ID" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="d-none d-lg-block">
<!-- Navigation -->
<div style="padding:20px 0px;outline:none;background-color:#17191f;">
<nav class="navbar navbar-expand-lg navbar-dark static-top">
<div class="container">
<a class="navbar-brand" href="/">
<img src="images/Finstreet logo@2x.png" alt="" width="100" height="44">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto font-roboto-b" style="font-size: 18px;font-weight:bold;">
<li class="nav-item active">
<a class="nav-link" href="/">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="affiliate">Affiliate
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link cursor-pointer text-white" href="signup">Signup</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="login">Login</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<!-- Page Content -->
<div class="container-fluid" style="background-color:#242838;">
<div class="container" style="background-color:#2F3549;padding:20px 0px;">
<div class="card color-white">
<article class="card-body mx-auto">
<h4 class="card-title mt-3 text-center">Create Affiliate Account</h4>
<p class="text-center mb-3">Get started with your free account</p>
<!-- <p>
<a href="" class="btn btn-block btn-twitter"> <i class="fab fa-twitter"></i> Login via Twitter</a>
<a href="" class="btn btn-block btn-facebook"> <i class="fab fa-facebook-f"></i> Login via
facebook</a>
</p>
<p class="divider-text">
<span class="bg-light">OR</span>
</p> -->
<form>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-user"></i> </span>
</div>
<input name="name" id="name" class="form-control" placeholder="Full name" type="text">
</div> <!-- form-group// -->
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-envelope"></i> </span>
</div>
<input name="email" id="email" class="form-control" placeholder="Email address"
type="email">
</div> <!-- form-group// -->
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-phone"></i> </span>
</div>
<select class="custom-select" style="max-width: 80px;">
<option selected="">+91</option>
</select>
<input name="phone" id="phone" class="form-control" placeholder="Phone number"
type="number">
</div> <!-- form-group// -->
<!-- <div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-building"></i> </span>
</div>
<select class="form-control">
<option selected=""> Select job type</option>
<option>Designer</option>
<option>Manager</option>
<option>Accaunting</option>
</select>
</div> form-group end.// -->
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-lock"></i> </span>
</div>
<input class="form-control" id="password" placeholder="Create password" type="password">
</div> <!-- form-group// -->
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-lock"></i> </span>
</div>
<input class="form-control" id="confirm_password" placeholder="Confirm password"
type="password">
</div> <!-- form-group// -->
<div class="form-group">
<button type="submit" id="signup" class="btn btn-danger btn-block"> Create Account
</button>
</div> <!-- form-group// -->
<p class="text-center">Have an account? <a href="login">Log In</a> </p>
</form>
</article>
</div> <!-- card.// -->
</div>
<!--container end.//-->
</div>
<!-- footer -->
<div class="container-fluid p-0 font-montserrat-m color-white" style="background-color:#242838;">
<div class="container-fluid p-3 text-center" style="background-color:#FF4747;">
<h5 class="mb-0">Have a Question for us? Contact Our 24X7 Customer Support.</h5>
</div>
<div class="d-flex justify-content-center p-4">
<div>
<img src="images/Support.svg" alt="">
</div>
<div class="pl-3 font-montserrat-m pt-4">
<p>support@finstreet.in</p>
<p>+91-8968232722</p>
</div>
</div>
</div>
<div class="container-fluid text-center font-montserrat-m " style="background-color:#434D6E;">
<div class="p-3">
<h5 class="color-white">Copyright © 2019 All Right Reserved. Designed By <a href="">QuadBTech</a></h5>
</div>
</div>
</div>
<!-- mobile view -->
<div class="d-lg-none">
<!-- header -->
<div class="fixed-top" style="padding: 50px 0px;background-image:url(images/background-pic.png);outline:none;">
<header>
<div class="position-fixed h-100 w-100"
style="opacity: 1; backdrop-filter: blur(8px); z-index: 16; display: none; top: 0px;" id="drawer">
<div class="container h-100 w-100 pr-0">
<div class="row h-100 w-100 mr-0 position-absolute">
<div class="col-2 d-flex justify-content-end pt-5 pl-0" id="cross"
style="padding-right: 15px !important;">
<div id="mobile-cross">
<p class="m-0" style="font-size: 30px;color:#fff;">X</p>
</div>
</div>
<div class="col-10 position-relative"
style="background: #0505055c 0% 0% no-repeat padding-box;">
<div class="position-absolute w-100" style="top:35%;">
<p class="footer-text font-weight-light text-center"
style="font-size: 30px;margin-bottom: 5px;font-family: europhonic;color:#fff;"
onclick="window.location = '/'">Home</p>
<p class="footer-text font-weight-light text-center"
style="font-size: 30px;margin-bottom: 5px;font-family: europhonic;color:#fff;"
onclick="window.location = 'affiliate'">Affiliate</p>
<p class="footer-text font-weight-light text-center"
style="font-size: 30px;margin-bottom: 5px;font-family: europhonic;color:#fff;"
onclick="window.location = 'signup'">Signup</p>
<p class="footer-text font-weight-light text-center"
style="font-size: 30px;margin-bottom: 5px;font-family: europhonic;color:#fff;"
onclick="window.location = 'login'">Login</p>
</div>
</div>
</div>
</div>
</div>
<div class="nav-container">
<div id="mobile-navbar">
<div style="position: fixed;right: 20px;margin-top: -26px;z-index:15 !important;"
id="open-drawer">
<hr
style="width: 40px;height: 4px;background-color: white;margin-top: 10px;margin-bottom: 0px;border-radius: 100px;">
<hr
style="width: 30px;height: 4px;background-color: white;margin-top: 10px;margin-bottom: 0px;border-radius: 100px;margin-left: 9px;">
</div>
<div class="d-flex position-fixed align-items-center w-100"
style="z-index: 10;margin-top: -30px;margin-left: 15px;">
<a class="navbar-brand header-text" id="mobile-header-logo-text" href="/">
<img class="logo-header" src="images/Finstreet logo@2x.png" alt="">
</a>
</div>
</div>
</div>
</header>
</div>
<!-- Page Content -->
<div class="container-fluid" style="background-color:#2F3549;">
<div class="container" style="margin-top:100px;">
<div class="card color-white">
<article class="card-body">
<h4 class="card-title mt-3 text-center" style="font-size:28px;">Create Affiliate Account</h4>
<p class="text-center mb-3" style="font-size:18px;">Get started with your free account</p>
<!-- <p>
<a href="" class="btn btn-block btn-twitter"> <i class="fab fa-twitter"></i> Login via Twitter</a>
<a href="" class="btn btn-block btn-facebook"> <i class="fab fa-facebook-f"></i> Login via
facebook</a>
</p>
<p class="divider-text">
<span class="bg-light">OR</span>
</p> -->
<form>
<div class="form-group input-group pb-2">
<div class="input-group-prepend">
<span class="input-group-text" style="padding-left: 18px;padding-right: 18px;"> <i
class="fa fa-user" style="font-size: 18px;"></i> </span>
</div>
<input name="name" id="name-mobile" class="form-control" placeholder="Full name"
type="text" style="font-size: 25px;">
</div> <!-- form-group// -->
<div class="form-group input-group pb-2">
<div class="input-group-prepend">
<span class="input-group-text" style="padding-left: 18px;padding-right: 18px;"> <i
class="fa fa-envelope" style="font-size: 18px;"></i> </span>
</div>
<input name="email" id="email-mobile" class="form-control" placeholder="Email address"
type="text" style="font-size: 25px;">
</div> <!-- form-group// -->
<div class="form-group input-group pb-2">
<div class="input-group-prepend">
<span class="input-group-text" style="padding-left:20px;padding-right:20px;"> <i
class="fa fa-phone" style="font-size: 18px;"></i> </span>
</div>
<select class="custom-select" style="max-width:80px;font-size: 25px;border: 0px;">
<option selected="">+91</option>
</select>
<input name="phone" id="phone-mobile" class="form-control" placeholder="Phone number"
type="number" style="font-size:25px;border: 0;">
</div> <!-- form-group// -->
<!-- <div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-building"></i> </span>
</div>
<select class="form-control">
<option selected=""> Select job type</option>
<option>Designer</option>
<option>Manager</option>
<option>Accaunting</option>
</select>
</div> form-group end.// -->
<div class="form-group input-group pb-2">
<div class="input-group-prepend">
<span class="input-group-text" style="padding-left:20px;padding-right: 20px;"> <i
class="fa fa-lock" style="font-size:18px;"></i> </span>
</div>
<input class="form-control" id="password-mobile" placeholder="Create password"
type="password" style="font-size: 25px;">
</div> <!-- form-group// -->
<div class="form-group input-group pb-2">
<div class="input-group-prepend">
<span class="input-group-text" style="padding-left:20px;padding-right: 20px;"> <i
class="fa fa-lock" style="font-size:18px;"></i> </span>
</div>
<input class="form-control" id="confirm_password-mobile" placeholder="Confirm password"
type="password" style="font-size: 25px;">
</div> <!-- form-group// -->
<div class="form-group">
<button type="submit" id="signup-mobile" class="btn btn-danger btn-block"
style="font-size :25px"> Create Account </button>
</div> <!-- form-group// -->
<p class="text-center" style="font-size:25px;">Have an account? <a href="login">Log In</a>
</p>
</form>
</article>
</div> <!-- card.// -->
</div>
<!--container end.//-->
</div>
<!-- footer -->
<div class="container-fluid" style="background-color:#FF4747;margin-top:-1px;">
<div class="color-white">
<h5 style="text-align:center;padding:15px 0;" class="mb-0">Have a Question for us? Contact Our 24X7
Customer Support.</h5>
</div>
</div>
<!-- -->
<div class="container-fluid" style="background-color:#2F3549;margin-top:-1px;">
<div class="d-flex justify-content-center p-4">
<div>
<img src="images/Support.svg" width="62" alt="">
</div>
<div class="color-white font-montserrat-m pl-3" style="font-size:16px;">
<p>support@finstreet.in</p>
<p>+91-8968232722</p>
</div>
</div>
</div>
<!-- -->
<div class="container-fluid text-center font-montserrat-m " style="background-color:#434D6E;">
<div class="p-3">
<h5 style="font-size:11px;" class="color-white">Copyright © 2019 All Right Reserved. Designed By <a
href="">QuadBTech</a></h5>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
//open mobile drawer
$("#drawer").css('display', 'none');
$("#open-drawer").on("click", function () {
if ($("#drawer").css('display') == 'none') {
$("#drawer").css('display', 'block');
} else {
$("#drawer").css('display', 'none');
}
});
$("#cross").on("click", function () {
$("#drawer").css('display', 'none');
});
function validateEmail() {
var email = $("#email").val();
var emailReg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
if (emailReg.test(email)) {
return true;
} else {
return false;
}
}
$("#signup").on("click", function (e) {
e.preventDefault();
var error = "";
if ($("#name").val() == "") {
$("#name").css('border-color', 'red');
$("#name").css('border-width', '1px');
error = error + 'name';
} else {
$("#name").css('border-color', '#BCE0FD');
$("#name").css('border-width', '1px');
}
if ($("#phone").val() == "") {
$("#phone").css('border-color', 'red');
$("#phone").css('border-width', '1px');
error = error + 'Phone';
} else {
$("#phone").css('border-color', '#BCE0FD');
$("#phone").css('border-width', '1px');
}
if (validateEmail()) {
$("#email").css('border-color', '#BCE0FD');
$("#email").css('border-width', '1px');
} else {
$("#email").css('border-color', 'red');
$("#email").css('border-width', '1px');
error = error + 'email';
}
if ($("#confirm_password").val() == "") {
$("#confirm_password").css('border-color', 'red');
$("#confirm_password").css('border-width', '1px');
error = error + 'confirm password';
} else {
if ($("#confirm_password").val() != $("#password").val()) {
$("#confirm_password").css('border-color', 'red');
$("#confirm_password").css('border-width', '1px');
error = error + 'confirm password failure';
alert("Password and Confirm password fields do not match");
} else {
$("#confirm_password").css('border-color', '#BCE0FD');
$("#confirm_password").css('border-width', '1px');
}
}
if ($("#password").val() == "") {
$("#password").css('border-color', 'red');
$("#password").css('border-width', '1px');
error = error + 'confirm password';
} else {
$("#password").css('border-color', '#BCE0FD');
$("#password").css('border-width', '1px');
}
if (error == "") {
$.ajax({
type: 'POST',
url: 'php/webinar-signup-affiliate.php',
dataType: "json",
data: {
name: $("#name").val(),
email: $("#email").val(),
phone: $("#phone").val(),
password: $("#password").val()
},
success: function (data) {
if (data.status == 201) {
sessionStorage.username = $("#email").val();
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ 'event': 'affiliate signup' });
window.location = "affiliate-dashboard";
} else if (data.status == 301) {
//Email already registered
alert(data.error);
} else if (data.status == 302) {
//phone already registered
alert(data.error);
} else if (data.status == 601) {
console.log(data.error);
// alert("problem with query");
} else {
}
}
});
}
});
// mobile code for submission
function validateEmailMobile() {
var email = $("#email-mobile").val();
var emailReg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
if (emailReg.test(email)) {
return true;
} else {
return false;
}
}
$("#signup-mobile").on("click", function (e) {
e.preventDefault();
var error = "";
if ($("#name-mobile").val() == "") {
$("#name-mobile").css('border-color', 'red');
$("#name-mobile").css('border-width', '1px');
error = error + 'name';
} else {
$("#name-mobile").css('border-color', '#BCE0FD');
$("#name-mobile").css('border-width', '1px');
}
if ($("#phone-mobile").val() == "") {
$("#phone-mobile").css('border-color', 'red');
$("#phone-mobile").css('border-width', '1px');
error = error + 'Phone';
} else {
$("#phone-mobile").css('border-color', '#BCE0FD');
$("#phone-mobile").css('border-width', '1px');
}
if (validateEmailMobile()) {
$("#email-mobile").css('border-color', '#BCE0FD');
$("#email-mobile").css('border-width', '1px');
} else {
$("#email-mobile").css('border-color', 'red');
$("#email-mobile").css('border-width', '1px');
error = error + 'email';
}
if ($("#confirm_password-mobile").val() == "") {
$("#confirm_password-mobile").css('border-color', 'red');
$("#confirm_password-mobile").css('border-width', '1px');
error = error + 'confirm password';
} else {
if ($("#confirm_password-mobile").val() != $("#password-mobile").val()) {
$("#confirm_password-mobile").css('border-color', 'red');
$("#confirm_password-mobile").css('border-width', '1px');
error = error + 'confirm password failure';
alert("Password and Confirm password fields do not match");
} else {
$("#confirm_password-mobile").css('border-color', '#BCE0FD');
$("#confirm_password-mobile").css('border-width', '1px');
}
}
if ($("#password-mobile").val() == "") {
$("#password-mobile").css('border-color', 'red');
$("#password-mobile").css('border-width', '1px');
error = error + 'confirm password';
} else {
$("#password-mobile").css('border-color', '#BCE0FD');
$("#password-mobile").css('border-width', '1px');
}
if (error == "") {
$.ajax({
type: 'POST',
url: 'php/webinar-signup-affiliate.php',
dataType: "json",
data: {
name: $("#name-mobile").val(),
email: $("#email-mobile").val(),
phone: $("#phone-mobile").val(),
password: $("#password-mobile").val()
},
success: function (data) {
if (data.status == 201) {
sessionStorage.username = $("#email-mobile").val();
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ 'event': 'affiliate signup' });
window.location = "affiliate-dashboard";
} else if (data.status == 301) {
//Email already registered
alert(data.error);
} else if (data.status == 302) {
//phone already registered
alert(data.error);
} else if (data.status == 601) {
console.log(data.error);
// alert("problem with query");
} else {
}
}
});
}
});
</script>
</body>
</html>