/Friday-13th-calculator

A spooky web application that counts down to the next Friday the 13th and provides a surprise when it arrives!

Primary LanguageJavaScript

Spooky Friday the 13th Countdown

A spooky web application that counts down to the next Friday the 13th and provides a surprise when it arrives!

Features

  • Displays the current date and the next upcoming Friday the 13th
  • Countdown timer showing days, hours, minutes, and seconds until the next Friday the 13th
  • Special surprise effect when it's Friday the 13th
  • Dark mode toggle for a spookier experience
  • Share button to easily share the countdown with friends
  • Responsive design with a creepy theme
  • Persistent dark mode preference using local storage

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • Web Share API (with fallback for unsupported browsers)
  • Local Storage API

How to Use

Visit the deployed site: https://spooky-friday-13th-countdown.vercel.app/

or

  1. Clone this repository
  2. Open index.html in your web browser
  3. Watch the countdown and wait for the spooky surprise!
  4. Toggle dark mode for a different visual experience
  5. Share the countdown with friends using the share button

Dark Mode

The application features a dark mode toggle that allows users to switch between light and dark themes. The chosen preference is saved in the browser's local storage, ensuring it persists across sessions.

Sharing

Users can easily share the countdown using the share button. On supported browsers, this will use the native sharing capabilities of the device. For unsupported browsers, a fallback mechanism is provided.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT