forked from QAZIMAAZARSHAD/Voters-Registration-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign-up.html
436 lines (376 loc) · 17.5 KB
/
sign-up.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
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="fonts.googleapis.com/css?family=Hind">
<link rel="stylesheet" href="Style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css"
integrity="sha512-P5MgMn1jBN01asBgU0z60Qk4QxiXo86+wlFahKrsQf37c9cro517WzVSPPV1tDKzhku2iJ2FVgL67wG03SGnNA=="
crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
<title> Voter Sign-Up</title>
<link rel="shortcut icon" href="./Images/flag.png" type="image/x-icon">
</head>
<body>
<header>
<div class="navbar">
<div class="main-heading">
<div class="logo">
<a href="#" class="endlogo">
<img src="./Images/flag.png">
</a>
</div>
<div class="heading">
<img class="emblem" src="./Images/emblem.png"></img>
<p class="hindi-heading" style="font-family: 'Hind', sans-serif; font-weight: bolder;" >राष्ट्रीय मतदान सेवा डेमो पोर्टल</p>
<p class="english-heading" style="font-weight: bold;">NATIONAL VOTER'S SERVICES DEMO PORTAL</p>
</div>
</div>
<div>
<input type="checkbox" class="checkbox" id="chk" />
<label class="label" for="chk">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<div class="ball"></div>
</label>
</div>
<script>
const chk = document.getElementById('chk');
chk.addEventListener('change', () => {
document.body.classList.toggle('dark');
});
</script>
</header>
<div class="main-section">
<div class="container" style="height:auto;">
<div class="row" style="height: auto;">
<div class="col-lg-6 col-md-12 col-sm-12 col-12" style="text-align: center;font-size:30px;">
<p style="background-color:rgb(63, 221, 129);margin-bottom:0px;">Welcome to Voter's Registration Portal</p>
<div class="row"><img src="./Images/voting.jpg"></div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-12" style="padding:20px;">
<form>
<div class="row">
<div class="col-lg-6">
<div class="mb-3">
<label for="fname" class="form-label required-field">FirstName</label>
<input class="form-control" type="text" placeholder="FirstName" id="fname" >
</div>
<div class="mb-3">
<label for="lname" class="form-label required-field">LastName</label>
<input class="form-control" type="text" placeholder="LastName" id="lname" >
</div>
<div class="mb-3">
<label for="Email" class="form-label required-field">Email address</label>
<input type="email" class="form-control" id="Email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="password1" class="form-label required-field">Password</label>
<input type="password" class="form-control" id="password1">
<div class="showPwd1">
<input type="checkbox" class="form-check-input" onclick="showPwdToogle1()">Show Password
</div>
</div>
<div class="mb-3">
<label for="confirmPassword1" class="form-label required-field">Confirm Password</label>
<input type="password" class="form-control" id="confirmPassword1">
<div class="showPwd1">
<input type="checkbox" class="form-check-input" onclick="showPwdToogle()">Show Password
</div>
</div>
</div>
<div class="col-lg-6">
<div class="mb-3">
<label for="number" class="form-label required-field">Mobile Number</label>
<input type="number" class="form-control" id="number" placeholder="Mobile Number" >
</div>
<div class="mb-3">
<label for="address" class="form-label required-field">Address</label>
<textarea class="form-control" id="address" rows="3"></textarea>
</div>
<div class="mb-3">
<label for="State" class="form-label required-field">State</label>
<select class="form-select" id="state" aria-label="Default select example">
<option value="0">Select</option>
<option value="1">ANDHRA PRADESH</option>
<option value="2">ARUNACHAL PRADESH</option>
<option value="3">ASSAM</option>
<option value="4">BIHAR</option>
<option value="5">CHATTISGARH</option>
<option value="6">GOA</option>
<option value="7">GUJRAT</option>
<option value="8">HARYANA</option>
<option value="9">HIMACHAL PRADESH</option>
<option value="10">JAMMU AND KASHMIR</option>
<option value="11">JHARKHAND</option>
<option value="12">KARNATAKA</option>
<option value="13">KERALA</option>
<option value="14">MADHYA PRADESH</option>
<option value="15">MAHARASHTRA</option>
<option value="16">MANIPUR</option>
<option value="17">MEGHALAYA</option>
<option value="18">MIZORAM</option>
<option value="18">NAGALAND</option>
<option value="20">ODISHA</option>
<option value="21">PUNJAB</option>
<option value="22">RAJASTHAN</option>
<option value="23">SIKKIM</option>
<option value="24">TAMIL NADU</option>
<option value="25">TELANGANA</option>
<option value="26">TRIPURA</option>
<option value="27">UTTAR PRADESH</option>
<option value="28">UTTARAKHAND</option>
<option value="29">WEST BENGAL</option>
</select>
</div>
<div class="mb-3">
<label for="city" class="form-label required-field">City</label>
<input class="form-control" type="text" id="city" placeholder="city" aria-label="default input example">
</div>
<div class="mb-3">
<label for="zip_code" class="form-label required-field">Zip Code</label>
<input type="number" class="form-control" id="zip_code" placeholder="zip Code">
</div>
<div id="olduser" class="form-text" style="text-align:right;font-size:15px;">Already a user? <a href="login.html">Login here</a></div>
</div>
</div>
<button type="button" class="btn btn-success" onclick="signup()">Sign Up</button>
</form>
</div>
</div>
</div>
</div>
<script>
const chk = document.getElementById('chk');
chk.addEventListener('change', () => {
document.body.classList.toggle('dark');
});
</script>
<script>
function giveAlert(title_,icon_)
{
swal({
title: title_,
icon: icon_,
});
}
</script>
<script>
function signup(){
var f_name = document.getElementById('fname').value;
var l_name = document.getElementById('lname').value;
var email = document.getElementById('Email').value;
var pwd1 = document.getElementById('password1').value;
var pwd2 = document.getElementById('confirmPassword1').value;
var st = document.getElementById('state').value;
var mob_num = document.getElementById('number').value;
var city = document.getElementById('city').value;
var add1 = document.getElementById('address').value;
var zip = document.getElementById('zip_code').value;
let emailregx = new
RegExp("^[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-z0-9]+(\-[a-z0-9]+)*(\.[a-z0-9]+(\-[a-z0-9]+)*)*\.[a-z]{2,4}$");
if(f_name == ''){
//alert("Ghj");
giveAlert('Please enter your FirstName!','info');
}
else if(l_name == ''){
giveAlert('Please enter your LastName!','info');
}
else if(email == ''){
giveAlert('Please enter your Email address!','info');
}
else if (emailregx.test(email) == false) {
giveAlert('Invalid Email Address!', 'info');
}
else if(pwd1==''){
giveAlert('Please enter your Password!','info');
}
else if(pwd2==''){
giveAlert('Please enter your Password twice!','info');
}
else if(city =='' ){
giveAlert('Please enter your city!','info');
}
else if(add1 == ''){
giveAlert('Please enter your address!','info');
}
else if(mob_num ==''){
giveAlert('Please enter your valid mobile number!','info');
}
else if(zip ==''){
giveAlert('Please enter your valid Zip Code!','info');
}
else if(mob_num =='' || mob_num >= 10000000000 || mob_num <= 999999999){
giveAlert('Please enter your valid mobile number!','info');
}
else if(pwd1 != pwd2){
giveAlert("Your passwords are not matching!",'info');
}
else if(pwd1.length < 6 || pwd1.length > 6 )
{
giveAlert("Password min and max length is 6.",'info');
}
else if(st == 0)
{
giveAlert("Please select your State !",'info');
}
else
{
giveAlert('Thank You for Registering! & You are Redirecting to Home page','success');
setTimeout(function() {window.location = "Home.html" });
}
}
</script>
<footer id="ft">
<div id="footer">
<div class="one">
<div class="contact">
<h2>Contact Us</h2>
<h3>
<i class="fas fa-phone-alt phonei"></i>
Toll free: 1947
</h3>
<h3>
<div class="envelope">
<i class="fas fa-envelope envelopei"></i>
</div>
</h3>
</div>
<div class="helpdeskDiv">
<a class="helpdesk" href="help.html" target="_blank">Help
Desk</a>
</div>
<div class="follow-us">
<h2>Follow Us</h2>
<div class="icons">
<a href="https://www.facebook.com/NationalPortalIndia/" target="_blank">
<i class="fab fa-facebook-f fbi"></i>
</a>
<a href="https://twitter.com/mygovindia?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor" target="_blank">
<i class="fab fa-twitter twi"></i>
</a>
<a href="https://www.youtube.com/watch?v=Gz2igetpSoU" target="_blank">
<i class="fab fa-youtube yti"></i>
</a>
<a href="https://www.instagram.com/mygovindia/?hl=en" target="_blank">
<i class="fab fa-instagram igi"></i>
</a>
<a href="https://www.linkedin.com/company/government-of-india" target="_blank">
<i class="fab fa-linkedin-in li"></i>
</a>
</div>
</div>
</div>
<div class="two">
<h2>NATIONAL VOTER PORTAL Head Office</h2>
<h3>unique identification authority of india</h3>
<h3>government of india</h3>
<h3>bangla sahib road, behind kali market, gole market, new delhi - 110001</h3>
<h2>Regional Offices</h2>
<select name="place" id="place">
<option value="delhi">Delhi</option>
</select>
<h3>National Voter Portal Regional Office, Delhi</h3>
<h3>Ground floor, pragati maidan metro station, new delhi - 110001</h3>
</div>
<div class="three">
<h4>Website Policy</h4>
<h4>terms and conditions</h4>
<h4>privacy policy</h4>
<h4>hyperlinking policy</h4>
<h4>copyright policy</h4>
<h4>disclaimer</h4>
<h4>help</h4>
<h4>feedback</h4>
<h4>sitemap</h4>
</div>
<div class="four">
<h2>Government of India</h2>
<h4>Integrity Pledge
<i class="fas fa-external-link-alt"></i>
</h4>
<ul>
<li>
<a href="#">
My Gov <i class="fas fa-external-link-alt"></i>
</a>
</li>
<li>
<a href="#">
National Voter Portal
<i class="fas fa-external-link-alt"></i>
</a>
</li>
<li>
<a href="#">
Digital India <i class="fas fa-external-link-alt"></i>
</a>
</li>
<li>
<a href="#">
GST.gov.in <i class="fas fa-external-link-alt"></i>
</a>
</li>
<li>
<a href="#">
DBT Bharatpur <i class="fas fa-external-link-alt"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="footer-down">
<div class="copyright" style="padding-bottom:20px">
Copyright ©
<script>document.write(new Date().getFullYear())</script> Qazi Maaz Arshad
</div>
</div>
</footer>
<button id="scrollToTopButton" title="Go to top" class="ml-5" >
<i class="fa fa-angle-double-up" aria-hidden="true" style="color: black;font-weight: bolder;"></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>
function showPwdToogle() {
var x = document.getElementById("confirmPassword1");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function showPwdToogle1() {
var x = document.getElementById("password1");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</body>
</html>