We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The confetti.js script is designed to run only on my birthday (if todayDate === birthdayDate).
confetti.js
if todayDate === birthdayDate
However, it currently checks against the date when the page was last built (todayDate = buildDate).
This means that if the site is built on my birthday, the script runs continuously until the next build.
Conversely, if built before my birthday, the script might not run at all on the day. We need a way to make it check against the actual current date.
The text was updated successfully, but these errors were encountered:
While triggering a rebuild/redeploy via GitHub Actions (or manually 🫠) is a valid approach, it might not be the most efficient.
Using client-side JavaScript to check the current date directly might be a more resource-saving and consistent solution.
Sorry, something went wrong.
No branches or pull requests
The
confetti.js
script is designed to run only on my birthday (if todayDate === birthdayDate
).However, it currently checks against the date when the page was last built (todayDate = buildDate).
This means that if the site is built on my birthday, the script runs continuously until the next build.
Conversely, if built before my birthday, the script might not run at all on the day. We need a way to make it check against the actual current date.
The text was updated successfully, but these errors were encountered: