-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
318 lines (306 loc) · 11.9 KB
/
index.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
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
h1
{
font-size: xx-large;
}
h2
{
font-size: large;
}
hr.phat
{
border: 5px solid white;
border-radius: 5px;
height: 5px;
}
hr.smol
{
border: 2px solid rgb(61, 189, 133);
border-radius: 5px;
}
.heading
{
color:rgb(255, 255, 255);
font-weight: bold;
font-family: 'Arial';
text-align: center;
}
.labels
{
color: rgb(61, 189, 133);
font-weight: bold;
font-family: 'Arial';
text-align: center;
}
.descriptions
{
color: rgb(83, 83, 83);
font-weight: bold;
font-family: 'Arial';
text-align: center;
}
.buttons
{
text-align: center;
font-family:'Arial';
font-weight: bold;
font-size: medium;
background-color: rgb(61, 189, 133);
color:rgb(255, 255, 255);
border-radius: 5px;
width: 50%;
height: 40px;
cursor: pointer;
display: inline-block;
border: solid 1px;
}
.smallbtn
{
text-align: center;
font-family:'Arial';
font-size: medium;
background-color: rgb(255, 255, 255);
color:rgb(83, 83, 83);
border-radius: 5px;
width: 20%;
cursor: pointer;
display: inline-block;
border: 2px solid;
}
.loginframe
{
border-radius: 5px;
border: solid;
width: 30%;
height: 500px;
box-shadow: 10px 10px grey;
color:rgb(255, 255, 255);
text-align: center;
background-color: white;
margin:auto
}
.logback
{
}
.logininputs
{
width: 70%;
height: 25px;
border-radius: 5px;
font-size: large;
font-family: 'Arial';
}
.modalinputs
{
width: 400px;
height: 25px;
border-radius: 5px;
font-size: large;
font-family: 'Arial';
}
.signupbtn
{
text-align: center;
font-family:'Arial';
font-weight: bold;
font-size: large;
background-color: rgb(61, 189, 133);
color:rgb(255, 255, 255);
border-radius: 8px;
width: 150px;
height: 50px;
cursor: pointer;
display: inline-block;
border: 2px solid grey;
}
.container
{
width: 600px;
height: 500px;
background-color: white;
margin-right: auto;
margin-left: auto;
margin-top: 100px;
border-radius: 5px;
box-shadow: 10px 10px grey;
text-align: center;
}
.successuser
{
width: 400px;
height: 100px;
background-color: white;
margin-right: auto;
margin-left: auto;
margin-top: 100px;
border-radius: 5px;
box-shadow: 10px 10px grey;
text-align: center;
}
.success
{
color: rgb(9, 122, 24);
font-weight: bold;
font-family: 'Arial';
text-align: center;
}
/* The Close Button */
.close
{
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus
{
color: #000;
text-decoration: none;
cursor: pointer;
}
/**************************/
.modal
{
display: none;
position: fixed;
padding-top: 50px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content
{
position: relative;
padding: 20px;
margin: auto;
width: 75%;
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
.close-btn
{
float: right;
color: lightgray;
font-size: 24px;
font-weight: bold;
}
.close-btn:hover
{
color: darkgray;
}
@-webkit-keyframes animatetop
{
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
@keyframes animatetop
{
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
</style>
<head>
<title>
Personal Contact Manager
</title>
<link rel="shortcut icon" href="/contact.ico">
<meta charset="UTF-8"/>
</head>
<body style = "background-color: rgb(59, 184, 130); ">
<div id = "mainContent">
<div class = "heading">
<h1>
Welcome to the Contact Manager of the Future
</h1>
<hr class = "phat">
</div>
<div>
<div class = "logback">
</br></br></br>
<div id = "loginframe" class = "loginframe">
<u class = "descriptions;" style="color: rgb(83, 83, 83);"><p class = "labels" style = "font-size: x-large;">Login</p></u>
<p class = "descriptions"> Welcome! Please login to access your contacts!</p>
<hr class = "smol">
</br></br>
<div>
<span class="fa fa-user icon" style = "color: rgb(61, 189, 133);" aria-hidden = "true"></span>
<input id ="loginName" type = "text" class = "logininputs" placeholder="Username"></input>
<br><br>
<span class="fa fa-lock icon" style = "color: rgb(61, 189, 133);" aria-hidden = "true"></span>
<input id = "loginPassword" type = "password" class = "logininputs" placeholder="Password"></input>
<br><br>
</div>
<div id = "signin">
<button id = "loginButton" type = "submit" class = "buttons" onclick="userEmpty()">Sign in</button>
<span id = "loginResult"></span>
<br><br>
<div style = "color: rgb(83, 83, 83); font-family: 'Arial';">
<span>Don't have an account?</span>
<button id="modal-btn" class = "smallbtn" onclick="">Sign up!</button>
<span id="userAddResult"></span>
<div id="modal-btn">
<div class="modal" id = "modaladd">
<div class="modal-content">
<span class="close-btn"></span>
<div class="container">
<br>
<u class = "descriptions;" style="color: rgb(83, 83, 83);">
<p class = "labels" style = "font-size: x-large;">Create Account</p>
</u>
<p class = 'descriptions'>Please enter your information.</p>
<hr class = "smol">
<br><br>
<form>
<div style="text-align: center;">
<span class="fa fa-user icon" style="color: rgb(61, 189, 133);" aria-hidden="true"></span>
<input id = "firstname" type="text" class="modalinputs" placeholder="First Name" required></input>
<br><br>
<span class="fa fa-file" style="color: rgb(61, 189, 133);" aria-hidden="true"></span>
<input id = "lastname" type="text" class="modalinputs" placeholder="Last Name" required></input>
<br><br>
<span class="fa fa-terminal" style="color: rgb(61, 189, 133);" aria-hidden="true"></span>
<input id = "login" type="username" class="modalinputs" placeholder="Username" required></input>
<br><br>
<span class="fa fa-lock" style="color: rgb(61, 189, 133);" aria-hidden="true"></span>
<input id = "password" type="password" class="modalinputs" placeholder="Password" required></input>
</div>
<br><br><br>
<div>
<input id = "addcontact" type="button" class="signupbtn" value = "Add User" onclick = "addUser()"></input>
<input id = "cancel" type="button" class="signupbtn" value = "Cancel" onclick ="closeModal()"></input>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="js/code.js"></script>
<script type="text/javascript" src="js/md5.js"></script>
<script>
var modalBtn = document.getElementById("modal-btn")
var modal = document.querySelector(".modal")
modalBtn.onclick = function () {
modal.style.display = "block"
}
function closeModal()
{
modal.style.display = "none"
}
</script>
</html>