-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
136 lines (129 loc) · 2.71 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<style>
/* Existing styles */
body {
font-family: Arial, sans-serif;
width: 300px;
margin: 0;
padding: 10px;
background-color: #252526;
color: #f0ebe3;
}
#saveButton {
background-color: #111010;
border-radius: 4px;
border-style: none;
box-sizing: border-box;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
font-size: 16px;
font-weight: 700;
line-height: 1.5;
margin-bottom: 4px;
max-width: none;
min-height: 44px;
min-width: 10px;
outline: none;
overflow: hidden;
padding: 9px 20px 8px;
position: relative;
text-align: center;
text-transform: none;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: 100%;
}
#searchInput {
width: 100%;
padding: 5px;
box-sizing: border-box;
margin-bottom: 10px;
background-color: #2d2d30;
color: grey;
border: 0px solid;
}
#searchInput::placeholder{
color: grey;
}
.note {
border: 1px solid #cccccc1a;
padding: 5px;
margin-bottom: 5px;
display: flex;
align-items: center;
}
.noteContent {
flex: 1;
}
a {
color: white;
}
.deleteButton {
background-color: transparent;
border: none;
color: #e03232c9;
font-size: 24px;
cursor: pointer;
margin-left: 5px;
}
/* Modal styles */
.modal {
display: none; /* Hidden by default */
position: fixed;
z-index: 999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.5); /* Black with opacity */
}
.modal-content {
background-color: #252526;
margin: 15% auto;
padding: 20px;
border: 1px solid #cccccc1a;
width: 80%;
color: #f0ebe3;
text-align: center;
}
.modal-content button {
margin: 5px;
padding: 10px 20px;
cursor: pointer;
}
#confirmDeleteButton {
background-color: #e74c3c;
color: #fff;
border: none;
}
#cancelDeleteButton {
background-color: #bdc3c7;
color: #2c3e50;
border: none;
}
</style>
</head>
<body>
<button id="saveButton">Save</button>
<input type="text" id="searchInput" placeholder="Search notes...">
<div id="notes"></div>
<div>
<button id="deleteAllButton">Delete All Notes</button>
</div>
<!-- Custom Confirmation Modal -->
<div id="confirmationModal" class="modal">
<div class="modal-content">
<p>Are you sure you want to delete all notes? This action cannot be undone.</p>
<button id="confirmDeleteButton">Yes, Delete All</button>
<button id="cancelDeleteButton">Cancel</button>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>