-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
195 lines (140 loc) · 5.15 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
<!doctype html>
<html>
<head>
<title> Sign Up Page </title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
var check = function() {
if (document.getElementById('pwd').value ==
document.getElementById('pswcon').value) {
document.getElementById('message').style.color = 'green';
document.getElementById('message').innerHTML = 'matching';
} else {
document.getElementById('message').style.color = 'red';
document.getElementById('message').innerHTML = 'not matching';
}
}
function yellow(x){
x.style.background= "yellow";
}
function white(x){
x.style.background= "white";
}
$(document).ready(function(){
$("#pwd").keyup(function() {
if($("#pwd").val().length < 6){
$("#message").text("Weak Password").css("color","red");
}
else if($("#pwd").val().length < 8){
$("#message").text("Good Password").css("color","green");
} else {
$("#message").html("Strong Password").css("color","blue");
}
});
});
</script>
<style>
html,body{
height: 100%;
font-family: Verdana, sans-serif;
}
.bg{
background-image: url("img/pink.jpg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.form1{
flex: flex;
width: 900px;
height:680px;
border-radius:20px;
margin-left: auto;
margin-right: auto;
padding: 40px;
margin-bottom:20px;
background-color: #ffffff;
}
li{
font-size: 17px;
}
</style>
</head>
<body class="bg">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Sweets Recipes</a>
</div>
<ul class="nav navbar-nav">
<li ><a href="index.html">Home</a></li>
<li><a href="Recipes.html">Recipes</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html" >Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="signup.html"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="login.html"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<div class="form1">
<form class="form-horizontal" action="signup.php" method="post">
<fieldset><legend>Sign Up Information</legend>
<div class="form-group">
<label class="control-label col-sm-2" for="name">*Name:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" name="uname" onfocus="yellow(this)" onblur="white(this)" placeholder="Please Enter Your Name" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="age">Age:</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="age" name="uage" onfocus="yellow(this)" onblur="white(this)" placeholder="Please Enter Your Age">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">*Email:</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" name="uemail" onfocus="yellow(this)" onblur="white(this)" placeholder="Please Enter Your Email" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">*Password:</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="pwd" name="password" onfocus="yellow(this)" onblur="white(this)" placeholder="Please Enter Your Password" required>
<span id="message"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="pswcon">*Password Confirm:</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="pswcon" name="confirmpass" onfocus="yellow(this)" onblur="white(this)" placeholder="Please Re-enter Your Password" onkeyup='check();' required>
<span id='message'></span>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Sign Up</button>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="reset" class="btn btn-default">Reset</button>
</div>
</div>
<img class="imge" src="img/kiss.png" alt="cake" width="90" height="90" style="margin-top:70px;"/>
</fieldset>
</form>
</div>
</body>
</html>