https://github.com/glavin001/jquery-countdown
Simply create an element, fill out the applicable attributes for the end date, and watch a the content counts down live. Too easy.
https://github.com/glavin001/jquery-countdown
Last synced: about 1 month ago
JSON representation
Simply create an element, fill out the applicable attributes for the end date, and watch a the content counts down live. Too easy.
- Host: GitHub
- URL: https://github.com/glavin001/jquery-countdown
- Owner: Glavin001
- Created: 2013-04-26T23:44:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-27T00:47:13.000Z (about 12 years ago)
- Last Synced: 2025-02-05T15:54:06.567Z (3 months ago)
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jQuery Countdown
=====##Usage
1. Create an element```html
example countdown element
```2. Add the required countdown class, **jq-countdown**
```html
example countdown element
```
3. Add the applicable attributes for the countdown's end date```html
example countdown element
```
A list of available countdown date attributes:
- ```data-countdown-year``` : any year
- ```data-countdown-month``` : any month in numerical form, 1=January, 12=December
- ```data-countdown-day``` : any day applicable in the given month
- ```data-countdown-hour``` : any hour in 24-hour format (from 0 to 24 which is 12:00 midnight to 12:00 noon respectively)
- ```data-countdown-minute``` : any minute from 0 to 60
- ```data-countdown-second``` : any second in a minute from 0 to 60
- ```data-countdown-alt``` : Alternative text to be displayed; default & after countdown has finished
- ```data-countdown-callback``` : JavaScript callback function that will be triggered when the countdown hits 0!**Done!**