-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
97 lines (81 loc) · 3.35 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/styles.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="img/bookmark.png">
<title>My Address Book</title>
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i,900,900i" rel="stylesheet">
</head>
<body>
<div class="bgAddressBook">
<div class="layer">
<div class="header">
<div class="logoBox">
<img class="logo" src="./img/bookmark.png">
<h1 class="headerTitle"> Address Book </h1>
</div>
</div>
<div class="main">
<div class="menu">
<button type="button" class="formatButton" id="newContactBtn" onclick="newContact()">
<h2 class="btnTitle">New Contact</h2>
</button>
<button type="button" class="formatButton" id="deleteBtn" onclick="deleteContact()">
<h2 class="btnTitle">Delete</h2>
</button>
<button type="button" class="formatButton" id="modifyBtn" onclick="modifyContact()">
<h2 class="btnTitle">Modify</h2>
</button>
<div class="divFilter">
<input type="text" id="txtFilter" class="inputTxt" placeholder=" Search..."/>
<button type="button" class="searchBtn" id="searchBtnId" onclick="searchContact()">
<img src="img/glass.svg" alt="magnifying glass" class="glass">
</button>
</div>
</div>
<div class="addressBook">
<table class="addressTbl" id="addressTblId">
<tr>
<!--I do not use input checkbox due to malfunction in google chrome-->
<th><img src="img/uncheckImg.png" id="chBoxAll" onclick="checkAll()"/></th>
<th>First Name</th>
<th>Last Name</th>
<th>Tel. Number</th>
<th>Address</th>
</tr>
</table>
</div>
</div>
<div class="contact" id="contactForm">
<button class = "exitBtn" onclick="exitForm()">X</button>
<h2 id="titleContactForm">Add a new contact</h2>
<div class="formData">
<p class="label"> Name: </p>
<input type="text" class="inputTxt" id="txtName" />
</div>
<div class="formData">
<p class="label"> Surname: </p>
<input type="text" class="inputTxt" id="txtSurname" />
</div>
<div class="formData">
<p class="label"> Tel Number: </p>
<input type="text" class="inputTxt" id="txtPhone" />
</div>
<div class="formData">
<p class="label"> Address: </p>
<input type="text" class="inputTxt" id="txtAddress" />
</div>
<button class = "saveBtn" onclick="saveContact()">Save</button>
</div>
</div>
</div>
</body>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script type="text/javascript" src="addresses.js"></script>
<script type="text/javascript" src="main.js"></script>
</html>