-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontacts.html
94 lines (89 loc) · 3.89 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
<!DOCTYPE html>
<html lang="en">
</html>
<head>
<title>Paradise Pages Contacts Page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/contacts.css" />
<script type="text/javascript" src="js/code.js"></script>
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Island Moments' rel='stylesheet'>
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
readCookie();
loadContacts();
}, false);
</script>
</head>
<body>
<!--side navigation-->
<div class="sidenav">
<img id="logo" src="images/icon.png" alt="logo image">
<button type="button" id="logoutButton" class="sidebuttons font" onclick="doLogout();">Logout</button>
<a href="contacts.html">Contacts</a>
<a href="members.html">About Us</a>
</div>
<!-- page content, each div inside content is formatted with flex-->
<div class="content">
<div class="loggedInDiv">
<span style="color:#007D2F" id="userName"></span><br />
</div>
<div class="accessUIDiv">
<br />
<div class="column">
<div class="search-container">
<input onkeyup=searchContacts() type="text" name="search" id="searchText" placeholder="Search..."
class="search-input">
<a href="#" class="search-btn" type="button" id="searchContactButton" class="buttons font"
onclick="searchContacts();"><i class="fas fa-search"></i></a>
</div>
</div>
<div class="column"><button type="button" onclick=loadContacts()><i class="fa fa-refresh"
style="font-size:30px;color:rgba(155, 188, 115, 0.9)" aria-hidden="true"></i></button></div>
<div class="column"><button type="button" onclick=showTable()> <i class="fas fa-user-plus"
style="font-size:27px;color:rgba(155, 188, 115, 0.9)"></i></button></div>
</div>
<!--add contact form-->
<div class="addContacts">
<form id="addMe" action="" method="post">
<input type="text" id="contactTextFirst" placeholder="First Name" required>
<input type="text" id="contactTextLast" placeholder="Last Name" required>
<input type="text" id="contactTextNumber" placeholder="XXX-XXX-XXXX" required
pattern="^[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}$">
<input type="text" id="contactTextEmail" placeholder="[email protected]"
pattern="^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$" required>
<button type="button" id="addContactButton" class="buttons font" onclick="addContact();"> Add Contact
</button>
</form>
</div>
<!--contact table-->
<div class="tables">
<div class="tbl-content" id="contactsTable">
<table id="contacts" cellpadding="0" cellspacing="0" border="0">
<thread>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone</th>
<th></th>
</tr>
</thread>
<tbody id="tbody"></tbody>
</table>
</div>
</div>
</div>
</body>
</html>