forked from PoojaMittal2842/Delhi-Tourism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changepassword.html
61 lines (55 loc) · 2.14 KB
/
changepassword.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="F:\GitHub\Delhi-Tourism\Assets\css\changepwd.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<title>Change password</title>
</head>
<script>
function matchPassword() {
if(document.getElementById('password').value != document.getElementById('chpassword').value)
{
alert("Passwords did not match");
}
else {
alert("Password changed successfully");
}
}
function myFunction() {
var x = document.getElementById("password");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function myFunction2() {
var x = document.getElementById("chpassword");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
<body>
<div style="float: left; margin-left: 250px;">
<br /><br /><br /><br /><br /><br /><br /><br />
<p class="sign" align="center">Welcome to Delhi-Tourism</p>
<img width="400px" src="https://cdn.shortpixel.ai/client/q_glossy,ret_img/https://merakidentalstudio.com/wp-content/uploads/2016/12/overseas-1-1920x700.jpg">
</div>
<div class="main" style="float: left;margin-left: 200px;">
<p class="sign" align="center">Make your account more secure!</p>
<form class="form1">
<input class="pass" type="password" align="center" name="password" id="password" placeholder="Password">
<i class="far fa-eye" onclick="myFunction(this)"></i>
<input class="pass" type="password" align="center" id="chpassword" placeholder="Confirm Password">
<i class="far fa-eye" onclick="myFunction2(this)"></i>
<a class="submit" onclick="matchPassword(this)" align="center">Change my password</a>
<p class="forgot" align="center"><a href="#">Contact us?</p>
</div>
</body>
</html>