-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (48 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contactly - Contact Management System</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="address-book.svg">
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>Contactly - Contact Management System</h1>
</header>
<main>
<section>
<h2>Add New Contact</h2>
<form id="contactForm">
<label for="name">Name:</label>
<input type="text" id="name_id" required>
<label for="email">Email:</label>
<input type="email" id="email_id" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone_id" required>
<button type="button" id="btn_id" onclick="addContact()" >Add Contact</button>
</form>
</section>
<section>
<h2>Search Contacts</h2>
<input type="text" id="searchInputId" placeholder="Search contacts..." oninput="searchContacts()">
</section>
<section>
<h2>Contact List</h2>
<button onclick="showAllContacts()">Show All Contacts</button>
<ul id="contactListId">
<li>
<span></span>
<div class="contact-actions">
<button onclick="editContact(1)">Edit</button>
<button onclick="deleteContact(1)">Delete</button>
</div>
</li>
</ul>
</section>
</main>
<script src="script.js"></script>
</body>
</html>