-
Notifications
You must be signed in to change notification settings - Fork 2
/
contacts.html
365 lines (347 loc) Β· 15.1 KB
/
contacts.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Contact Ninja</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="icon" href="data:," />
<link href="css/main.css" rel="stylesheet" />
<link href="css/contact.css" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="backDiv">
<div class="container" id="bigDiv">
<header
id="header"
class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom"
>
<a
href="/"
class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none"
>
<span
id="siteName"
class="fs-3"
style="font-family: 'Zen Kurenaido', sans-serif"
>Contact Ninja</span
>
</a>
<h3 id="headerName">Welcome, PLACEHOLDER</h3>
<div>
<input
class="chooseColorButton"
type="button"
id="chosenColor"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
/>
<div
class="dropdown-menu"
aria-labelledby="dropdownMenu"
id="colorMenu"
>
<button
class="chooseColorOption"
type="button"
></button>
<button
class="chooseColorOption"
type="button"
></button>
<button
class="chooseColorOption"
type="button"
></button>
<button
class="chooseColorOption"
type="button"
></button>
</div>
</div>
<div class="col-md-1 text-end">
<button
type="button"
id="logoutButton"
class="logoutBut"
onclick="doLogout();"
>
Logout
</button>
</div>
</header>
<main role="main" class="inner cover">
<h1 class="cover-heading">Search for Contacts</h1>
<form
class="form-inline"
onsubmit="searchContacts(); return false;"
>
<div class="form-group mx-sm-3 mb-2 formButton">
<button
id="addButton"
type="button"
class="stn-btn btn btn-primary"
onclick="addContact();"
>
Add New Contact
</button>
<input
class="form-control"
id="searchForm"
placeholder="Richard Feynman"
value=""
/>
<button
type="button"
id="searchButton"
class="btn btn-secondary"
="btn btn-secondary mb-1"
onclick="searchContacts();"
>
Search
</button>
</div>
</form>
<p id="numResults"></p>
</main>
<div class="flex-container">
<div id="edit-container" class="translated">
<form action="#" class="edit-form" id="edit-form">
<h1 class="creating">Creating New Contact</h1>
<div class="editinputs">
<label for="firstName">first name</label>
<input
class="addEdits"
id="firstName"
placeholder="first name"
maxlength="50"
/>
</div>
<div class="editinputs">
<label for="lastName">last name</label>
<input
class="addEdits"
id="lastName"
placeholder="last name"
maxlength="50"
/>
</div>
<div class="editinputs">
<label for="email">π§ email</label>
<input
class="addEdits"
id="email"
placeholder="email"
maxlength="50"
/>
</div>
<div class="editinputs">
<label for="phone">π phone</label>
<input
class="addEdits"
id="phone"
placeholder="phone"
maxlength="10"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || (event.charCode >= 48 && event.charCode <= 57));"
/>
</div>
<div class="editinputs">
<label for="address">π address</label>
<input
class="addEdits"
id="address"
placeholder="address"
maxlength="50"
/>
</div>
<div class="editinputs">
<label for="address">π notes</label>
<textarea
class="addEdits noteInput"
id="notes"
placeholder="notes..."
maxlength="50"
></textarea>
</div>
<div id="editButtonDiv">
<button
class="stn-btn editButton"
id="cancel-button"
type="button"
>
Cancel
</button>
<button
class="stn-btn editButtonSave"
id="save-button"
type="button"
>
Save
</button>
</div>
</form>
</div>
<div id="contactPaneParent">
<div id="contactPane" class="grid"></div>
</div>
</div>
<footer class="bottom-barrel">
<p>
COP4331 Contact Manager (Spr 22)
<a href="https://github.com/eblissss/contact-manager"
>Github</a
>.
</p>
</footer>
<!-- Delete Confirmation -->
<div
class="modal fade"
id="staticBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5
class="modal-title"
id="staticBackdropLabel"
>
Delete Contact?
</h5>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary stn-btn"
data-bs-dismiss="modal"
>
Cancel
</button>
<button
type="button"
class="btn btn-primary stn-btn deleteButtonSave"
data-bs-dismiss="modal"
onclick="deleteContact();"
>
Proceed
</button>
</div>
</div>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/jdenticon@3.1.1/dist/jdenticon.min.js"
integrity="sha384-l0/0sn63N3mskDgRYJZA6Mogihu0VY3CusdLMiwpJ9LFPklOARUcOiWEIGGmFELx"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<script type="module" src="js/back.js"></script>
<script type="text/javascript" src="js/typing.js"></script>
<script type="text/javascript" src="js/requests.js"></script>
<script type="text/javascript" src="js/contacts.js"></script>
<script type="text/javascript" src="js/code.js"></script>
<script type="text/javascript">
document.addEventListener(
"DOMContentLoaded",
function () {
readCookie();
},
false
);
</script>
</div>
</body>
<template id="contact-template">
<div class="contactDivDiv grid-item">
<div class="contactDiv">
<div class="imageDiv">
<svg class="contact-image">Icon</svg>
<!-- dateTime hover -->
<div class="dateTime">Created: March 4th</div>
</div>
<input type="button" class="colorButton" />
<h2 class="fname">NAME MISSING</h2>
<h2 class="lname">NAME MISSING</h2>
<h4 class="notes">Information Notes Information Notes</h4>
<div class="info-grid" class="drop-info">
<h4 class="g">π§:</h4>
<h4 class="g-i email">joe@gmail.com</h4>
<h4 class="g">π:</h4>
<h4 class="g-i phone">(808)-808-8888</h4>
<h4 class="g">π:</h4>
<h4 class="g-i address">sheeesh</h4>
</div>
<!-- Default dropright button -->
<div class="dropdown dropmenu dropend">
<button
class="btn"
type="button"
id="dropdownMenu"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
<img
class="triple-dots"
src="./images/three-dots-vertical.svg"
alt=""
/>
</button>
<div
class="dropdown-menu dropdown-menu-dark"
aria-labelledby="dropdownMenu"
>
<button class="dropdown-item" type="button">
Edit
</button>
<button
class="dropdown-item"
type="button"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop"
>
Delete
</button>
</div>
</div>
<!-- Favorite Button -->
<button class="btn favButton" type="button">
<img
class="fav"
src="./images/bookmark-star.svg"
alt="favorite"
/>
</button>
<!-- Show info button -->
<button class="dropButton" type="button">
<img src="./images/arrows-expand.svg" alt="expand" />
</button>
</div>
</div>
</template>
</html>