An open API service indexing awesome lists of open source software.

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.

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!**