-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewSignUp
246 lines (207 loc) · 4.94 KB
/
NewSignUp
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Sign up page(ThinkS.P.A.R.K)">
<meta name="keywords" content="Think,SPARK,ThinkSPARK,Html website">
<meta name="author" content="Divyang Verma">
<title>www.SignUp/THINK.com</title>
<style>
.h1 {
padding: 50px;
text-align: center;
font-size: 100%;
background-color: #00008B;
color: white;
}
body{
background-image: url("thinkLOGO.png");
background-position: top;
background-repeat: no-repeat;
border: black solid 10px;
}
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}
input[type='submit'],
label {
margin-top: 1rem;
text-align: middle;
}
note{
color: red;
font: .6rem 'Fira Sans', sans-serif;
}
html1{
height:150px;
width: 300px;
}
.button {
border: black 4px;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #00cc96;
width: 130px;
}
.navbar {
overflow: hidden;
background-color: #ff531a;
position: sticky;
right: 0;
width: 100%;
}
.navbar a:hover {
float: left;
display: block;
background-color: #333;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.footer {
left: 0;
width:100%;
height:150px;
bottom: 0;
width: 100%;
background-color: darkgray;
color: white;
text-align: center;
}
.cen {
align: center;
}
-start of thigh-
/* Clear floats after rows */
.row:after {
content: "";
display: table;
clear: both;
}
/* Content */
.content {
background-color: #f2f2f2;
padding: 10px;
}
.column {
width: 320px;
height: 100%;
}
-end of thing-
</style>
<script>
//are you in the system?
function checkName(){
var Name=document.getElementById("Name").value;
if( Name === "divyang Verma" || Name === "dipali Verma" || Name === "vivek Verma"){
alert("Your password and username is already are in our system");
}
}
//for telling the username
function checkUserName(){
var user = document.getElementById("user").value;
document.cookie = "USER="+user;
alert("Your Username is: " + user);
}
//for telling the password
function checkPassword(){
var pass = document.getElementById("pass").value;
document.cookie = "PASS="+pass;
//alert("Your Password is: " + pass);
}
// the real checking
function checkEmail(){
var email=document.getElementById("email").value;
if( email === "divyangVerma.26@gmail.com" || email==="dipali.shingrut@gmail.com" || email==="viveks.Verma@gmail.com"){
checkName();
}
else{
// want a mail?
var str = "Send a email to you!";
var result = str.link("mailto: email");
document.getElementById("demo").innerHTML = result;
checkUserName();
checkPassword();
alert("Thank you for Signing up");
move();
}
}
///////////////////
function displayCookies() {
var fname=getCookie("firstname");
if (fname==null) {fname="";}
if (fname!="") {fname="firstname="+fname;}
var lname=getCookie("lastname");
if (lname==null) {lname="";}
if (lname!="") {lname="lastname="+lname;}
alert (fname + " " + lname);
}
function getCookie(name) {
var nameEQ = name + "=";
//alert(document.cookie);
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(nameEQ) != -1) return c.substring(nameEQ.length,c.length);
}
return null;
}
</script>
</head>
<body>
<div class="h1">
<h1>Sign Up</h1>
</div>
</div>
<div class="navbar">
<a href="password.html">Sign in!</a>
<a href="Home.html">Sign In As a Guest</a>
<!-- <a href="" style="opacity: 0.6; cursor: not-allowed;">----</a> -->
</div>
<br><br>
<div class="solid">
<div class="row">
<div class="column">
<div class="content">
<div>
<br>
<p><center><img style="width: 70px; height: 70px; border-radius: 100%; " src="un.png" alt="You do not suport this picture"></center></p>
<br>
<div>
<label for="u">Email (Optional):</label>
<input type="text" id="email" name="email" style="width: 300px;" />
<br>
<label for="u"><b>Full</b> Name (Optional):</label>
<input type="text" id="Name" name="Name" style="width: 200px;" />
<br>
<label for="u">Your Username:</label>
<input type="text" id="user" name="username" style="width: 200px;" />
<br>
<label for="u">Your Password:</label>
<input type="password" id="pass" name="password" style="width: 200px;" />
</div>
<br>
<input class="button" type="submit" value="Submit" onClick="checkEmail()">
<e id="demo"></e>
<body style="align: center;">
<br><br><br><br>
</div>
</div>
</div>
<img style="align: right;" href="thinkLOGO.png"></img>
</body>
</html>