Skip to content

Commit 7350dc5

Browse files
committed
Add bounce effect to Mail icon in dock
1 parent 103a73d commit 7350dc5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343

4444
## Features
4545
> [!IMPORTANT]
46-
> **Mail** app (aka email functionality aka contact form) is currently disabled and will be re-enabled after I troubleshoot, debug, + fix the server-side script
47-
>
4846
> Additional features are still in development
4947
>
5048
> Current features are actively being optimized and improved
@@ -54,8 +52,8 @@ Includes (but is not limited to):
5452
* Supported on both desktop and mobile
5553
* Click red button in upper-left corner to close window
5654
* Click green button in upper-left corner to maximize window
57-
* ~~**Mail**~~
58-
* ~~Send me an email directly, without leaving the site!~~
55+
* **Mail**
56+
* Send me an email
5957
* ~~Includes reCAPTCHA to prevent spam~~
6058
* ~~Your email and message are required~~
6159
* ~~Subject is optional~~

src/components/windows.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ document.addEventListener("DOMContentLoaded", function() {
439439
document.addEventListener("mouseup", function(event) {
440440
if (event.target === launchpadNav || event.target === launchContent) closeLaunchpad();
441441
});
442+
443+
// Position sticky note
444+
positionWindow("#sticky-note");
442445

443446
// Position terminal
444447
positionWindow("#mac-terminal");
@@ -654,7 +657,12 @@ document.addEventListener("DOMContentLoaded", function() {
654657
// Open mail
655658
//openWindow("#mailDockIcon", "#email");
656659

657-
positionWindow("#sticky-note");
660+
// TODO: Delete the mailDockIcon bounce effect once mail app (aka contact form) is fixed,
661+
// since it's already included in openWindow function
662+
663+
document.getElementById("mailDockIcon").addEventListener("click", function() {
664+
$("#mailDockIcon").effect("bounce", { times: 3 }, 600);
665+
});
658666

659667
document.getElementById("not-ai").addEventListener("click", function() {
660668
bringToFront("#sticky-note");

0 commit comments

Comments
 (0)