https://github.com/toastdriven/countdown
A pure JS, pure data countdown object. You probably don't want this.
https://github.com/toastdriven/countdown
Last synced: 11 months ago
JSON representation
A pure JS, pure data countdown object. You probably don't want this.
- Host: GitHub
- URL: https://github.com/toastdriven/countdown
- Owner: toastdriven
- License: bsd-3-clause
- Created: 2013-09-13T01:21:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-13T01:25:11.000Z (over 12 years ago)
- Last Synced: 2025-06-07T16:54:56.127Z (11 months ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
countdown.js
============
Because NIH & I wanted a pure Javascript, pure data countdown.
Usage
-----
Creating & starting a countdown looks like...::
var count = new Countdown({
target_date: new Date(2013, 8, 12, 6, 0, 0)
})
count.start()
Code that needs to know what's going on with the countdown can listen for
``countdowntick`` events.::
document.addEventListener('countdowntick', function() {
console.log("Countdown: " + count.toString())
}, false)
For an example, look at the ``test.html`` file included.
Author/License/Version
----------------------
:author: Daniel Lindsley
:license: BSD
:version: 0.8.0