timers.js
v1.1.10
Published
Pure JavaScript timer plugin
Downloads
8
Readme
Timers.js
Pure JavaScript timer plugin
Installation
NPM
npm install timers.js --save
In Node.js
require('pre.js')
Direct download from latest releases
Usage
Include
<script src="dist/js/timers.js"></script>
Initialize
new Timer();
Configuration
new Timer({
// Options here
property: value,
...
});
Options
| Property | Description | Available values | Default value | |--------------|----------------------|---------------------------|---------------| | el | Timer.js element | Element selector (string) | '.timer' | | time.second | Set initial second | integer | 0 | | time.minute | Set initial minute | integer | 0 | | time.hour | Set initial hour | integer | 0 | | isStoped | Set timer status | boolean | false |