Skip to content

Commit f9844f9

Browse files
authored
Merge pull request #2 from davidhuangsh-lgtm/master
Update version 1.2.5
2 parents 3f7680b + e66f6cd commit f9844f9

File tree

5 files changed

+80
-20
lines changed

5 files changed

+80
-20
lines changed

04-quick-access-tab/README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quick Access Tab
22

3-
Version: 1.2.4
3+
Version: 1.2.5
44

55
Developer: yszdlzn3195918
66

@@ -86,4 +86,49 @@ This extension stores user data (Notes and Reminders) in the browser's localStor
8686

8787
## License
8888

89-
This project is provided for personal use. All rights reserved by the developer.
89+
This project is provided for personal use. All rights reserved by the developer.
90+
91+
## Update Records
92+
### Version 0.9
93+
94+
Basic search bars.
95+
96+
### Version 1.0
97+
98+
Quick links added.
99+
100+
#### Version 1.0.1
101+
102+
Used Ubuntu and Noto Sans JP as font.
103+
104+
### Version 1.1
105+
106+
Added time and date.
107+
108+
#### Version 1.1.1
109+
110+
Added Notes.
111+
112+
### Version 1.2
113+
114+
Added Daily Reminders (Not functioning).
115+
116+
#### Version 1.2.1
117+
118+
Added slide-in panel.
119+
120+
#### Version 1.2.2
121+
122+
Updates in slide-in panel.
123+
124+
#### Version 1.2.3
125+
126+
Introducing the notes-reminders-container.
127+
128+
#### Version 1.2.4
129+
130+
Changing positions of notes-reminders-container and search bar. Updated search bar focus.
131+
132+
#### Version 1.2.5
133+
134+
Enabling click-outside functionality to close the slide-in panel.

04-quick-access-tab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Quick Access Tab",
4-
"version": "1.2.4",
4+
"version": "1.2.5",
55
"description": "Custom new tab with Google search + quick links",
66
"chrome_url_overrides": {
77
"newtab": "newtab_modern.html"

04-quick-access-tab/script.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,29 @@ addBtn.onclick = (e) => {
282282
}
283283
};
284284

285+
286+
// Close panel when clicking outside
287+
document.addEventListener('click', (e) => {
288+
if (isPanelOpen) {
289+
// Check if click is outside both panel and button
290+
const clickedInsidePanel = panel.contains(e.target);
291+
const clickedButton = addBtn.contains(e.target);
292+
293+
if (!clickedInsidePanel && !clickedButton) {
294+
// Close and save if there are pending reminders
295+
if (pendingReminders.length > 0) {
296+
reminders = [...reminders, ...pendingReminders];
297+
localStorage.setItem('reminders', JSON.stringify(reminders));
298+
renderReminders(); // Refresh main page list
299+
}
300+
panel.classList.remove('active');
301+
addBtn.classList.remove('active');
302+
isPanelOpen = false;
303+
pendingReminders = [];
304+
}
305+
}
306+
});
307+
285308
// Add to pending list
286309
addToListBtn.onclick = (e) => {
287310
e.preventDefault(); // Prevent page refresh
@@ -313,4 +336,4 @@ function deleteReminder(index) {
313336
}
314337

315338
// Initial render
316-
renderReminders();
339+
renderReminders();

04-quick-access-tab/styles.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ body {
269269
font-weight: 300;
270270
}
271271

272-
/* ============================================
273-
NOTES SECTION
274-
============================================ */
272+
/* Notes section */
275273
.notes-section {
276274
width: 100%;
277275
max-width: 450px;
@@ -433,9 +431,7 @@ body {
433431
transition: opacity 0.5s ease;
434432
}
435433

436-
/* ============================================
437-
REMINDERS SECTION
438-
============================================ */
434+
/* Reminders Section */
439435
.reminders-section {
440436
width: 100%;
441437
max-width: 450px;
@@ -571,9 +567,7 @@ body {
571567
}
572568

573569

574-
/* ============================================
575-
SLIDE-IN PANEL
576-
============================================ */
570+
/* Slide-in panel */
577571
.reminder-panel {
578572
position: fixed !important;
579573
right: -400px;
@@ -683,9 +677,7 @@ body {
683677
transform: scale(1.2);
684678
}
685679

686-
/* ============================================
687-
RESPONSIVE DESIGN
688-
============================================ */
680+
/* Responsive design */
689681
@media (max-width: 768px) {
690682
.header {
691683
flex-direction: column;

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Computerization's Web Tutorial (starting 2024)
22

33
## List of Tasks
4-
| Date | Task name | Status |
5-
| ---------- | -------------------------------------------- | ------------------------ |
6-
| 2024-11-25 | [Number guessing game](/01-number_guessing/) | <ul><li>- [ ] </li></ul> |
7-
| 2025-12-17 | [Quick_access_tab](/04-quick-access-tab/) | <ul><li>- [ ] </li></ul> |
4+
| Date | Task name | Status | Notes |
5+
| ---------- | -------------------------------------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------- |
6+
| 2024-11-25 | [Number guessing game](/01-number_guessing/) | <ul><li>- [ ] </li></ul> | |
7+
| 2025-12-17 | [Quick_access_tab](/04-quick-access-tab/) | <ul><li>- [ ] </li></ul> | This project is currently under active development. Please stay tuned and use the most up-to-date release. |
88

99
Enjoy your time!

0 commit comments

Comments
 (0)