-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
51 lines (43 loc) · 1.76 KB
/
Copy pathpopup.html
File metadata and controls
51 lines (43 loc) · 1.76 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Address Book</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div id="address-book">
<!-- Title with Dark Mode toggle in the top right -->
<div id="header">
<h2>Address Book</h2>
<button id="dark-mode-toggle" title="Toggle Dark Mode">🌙</button>
</div>
<!-- Toggle button to show/hide the form -->
<button id="toggle-form">+</button>
<!-- Contact form (initially hidden) -->
<form id="contact-form" style="display: none;">
<label>Email:</label>
<input type="email" id="email" placeholder="example@email.com" ><br>
<label>Address:</label>
<input type="text" id="street" placeholder="Street, House Number" ><br>
<input type="text" id="city" placeholder="City" ><br>
<input type="text" id="state" placeholder="State" ><br>
<input type="text" id="country" placeholder="Country" ><br>
<input type="text" id="postcode" placeholder="Post Code" />
<label>Phone:</label>
<input type="text" id="phone" >
<input type="text" id="description" placeholder="Description (e.g., Mobile, Home)"><br>
<button type="button" id="save-contact">Save Contact</button>
<button type="button" id="remove-contact" style="display: none;">Remove</button>
</form>
<div id="contacts"></div>
<!-- Import and Export Buttons -->
<div id="import-export-buttons">
<button id="export-contacts">Export</button>
<input type="file" id="import-contacts" accept=".json" style="display: none;">
<label for="import-contacts" class="import-label">Import</label>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>