Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/20tab/jquery-chron
Chron is jQuery plugin to create chronometers in your html pages.
https://github.com/20tab/jquery-chron
Last synced: 21 days ago
JSON representation
Chron is jQuery plugin to create chronometers in your html pages.
- Host: GitHub
- URL: https://github.com/20tab/jquery-chron
- Owner: 20tab
- License: other
- Created: 2012-07-13T10:49:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-24T21:21:09.000Z (about 12 years ago)
- Last Synced: 2024-10-15T23:48:40.573Z (2 months ago)
- Language: Perl
- Size: 106 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chron jQuery Plugin
Chron is jQuery plugin to create chronometers in your html pages.
## Usage
Include the plugin script
``` html
```
``` js
$("#chron1").Chron();
```
or to customize properties``` js
$("#chron2").Chron({
days : 1,//initial value for days
hours : 2,//initial value for hours
minutes : 20,//initial value for minutes
seconds : 45,//initial value for seconds
days_sel : "#days2",//days selector
hours_sel : "#hours2",//hours selector
minutes_sel : "#minutes2",//minutes selector
seconds_sel : "#seconds2",//seconds selector
start : "#start2",// start button selector
stop : "#stop2",// stop button selector
reset : "#reset2",// reset button selector
pause : "#pause2",// resume button selector
resume : "#resume2",// resume button selector
start_chron : start_chron,//this function will be executed before start chron
stop_chron : stop_chron,//this function will be executed before stop chron
reset_chron : reset_chron,//this function will be executed before reset chron
pause_chron : pause_chron,//this function will be executed before pause chron
resume_chron : resume_chron,//this function will be executed before resume chron
target : "*", //selectors for the events target
auto : true,//true if plugin generate html chronometer
});```