-
Notifications
You must be signed in to change notification settings - Fork 0
/
resetpass.html
77 lines (76 loc) · 2.63 KB
/
resetpass.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="resetpass.css">
<style>
#msg
{
visibility: hidden;
min-width: 250px;
background-color: yellow;
color: #000;
text-align: center;
border-radius: 2px;
padding: 16px;
position: fixed;
z-index: 1;
right: 35%;
top: 30px;
font-size: 17px;
margin-right: 30px;
}
#msg.show
{
visibility: visible;
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-webkit-keyframes fadein
{
from {top: 0; opacity: 0;}
to{top: 30px; opacity: 1;}
}
@keyframes fadein
{
from{top: 0;opacity: 0;}
to{top: 30;opacity: 1;}
}
@-webkit-keyframes fadeout
{
from{top: 30px;opacity: 1;}
to{top: 0;opacity: 0;}
}
@keyframes fadeout
{
from {top: 30px;opacity: 1;}
to{top: 0;opacity: 0;}
}
</style>
</head>
<body>
<div class="reset">
<form action="">
<h2 style="color: #fff">Reset password</h2>
<input type="password" name="password" placeholder="Old passowrd" required="required"><br><br>
<input type="password" name="password" placeholder="New Passowrd" required="required"><br><br>
<input type="password" name="password" placeholder="Confirm Passowrd" required="required"><br><br>
<input type="button" value="Save" onclick="myfunction()"><br><br>
<a href="login.html" style="text-decoration: none">Go back to Home page</a><br><br>
<div id="msg">Your password is changed successfully !</div>
<script>
function myfunction(){
var x = document.getElementById("msg");
x.className = "show";
setTimeout(function()
{
x.className = x.className.replace("show","");
}, 3000);
}
</script>
</form>
</div>
</body>
</html>