Git-Commit-Show / landing-page

The new landing page UI.
https://gitcommit.show
3 stars 9 forks source link

fix: count js console error #181

Open gitcommitshow opened 12 months ago

gitcommitshow commented 12 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 12 months ago

Walkthrough

The countdown script in count.js has been updated to ensure that the countdown timer reflects a new target date and no longer shows negative values once the countdown has reached zero. The script now includes conditional logic to update the display only when the countdown is positive, enhancing the user experience by preventing the display of confusing negative time values.

Changes

File Path Change Summary
assets/js/count.js Updated countdown target date and added conditions to prevent negative values in the countdown display.

Poem

As winter whispers, the clock ticks anew,
No more negatives, just a future in view.
Code hops along, with a timely fix,
A countdown to joy, no more negative ticks. 🐇⏲️✨


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`