-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassword_new.html
137 lines (121 loc) · 4.38 KB
/
password_new.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
<html>
<title>SuperMarket</title>
<head>
<style>
body {
background-image: url(https://i.pinimg.com/originals/b4/f9/f9/b4f9f97ef17f943e969494a3f8e57cfb.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
}
/* Full-width input fields */
input[type=text],
input[type=password] {
width: 290px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
.button {
width: 115px;
background-color: #4CAF50;
color: white;
position: absolute;
z-index: 0;
display: inline-block;
padding: 14px 20px;
margin: 80px -205px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #4574a0e0;
}
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
position: relative;
}
img.avatar {
width: 40%;
border-radius: 60%;
}
.container {
padding: 25px;
}
span.psw {
float: right;
padding-top: 20px;
}
/* The Modal (background) */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: rgba(228, 196, 196, 0.582);
margin: 60px auto 140px auto;
/* 5% from the top, 15% from the bottom and centered */
border: 1px solid #888;
width: 350px;
/* Could be more or less, depending on screen size */
height: 490px
}
</style>
<div class="container">
<form class="modal-content animate" action="/action_page.php" method="post" onSubmit="return checkPassword(this)">
<div class="imgcontainer">
<img src="https://blog.cpanel.com/wp-content/uploads/2019/08/user-01.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<h1 style="font-size:20px;">
<center>Password Creation
</center>
</h1>
<script>
// Function to check Whether both passwords
// is same or not.
function checkPassword(form) {
password1 = form.password1.value;
password2 = form.password2.value;
if (password1 != password2) {
alert("\nPassword did not match: Please try again...")
return false;
}
// If same return True.
else {
alert("Password created succesfullly")
return true;
}
}
</script>
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password1" required>
<label for="psw"><b>Confirm Password</b></label>
<input type="password" placeholder="Confirm Password" name="password2" required>
<button class="button">Submit</button>
</div>
</form>
</div>