https://github.com/rawnly/clock.js
Simple clock function
https://github.com/rawnly/clock.js
Last synced: 7 months ago
JSON representation
Simple clock function
- Host: GitHub
- URL: https://github.com/rawnly/clock.js
- Owner: rawnly
- License: mit
- Created: 2016-07-07T11:19:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-21T17:46:35.000Z (almost 10 years ago)
- Last Synced: 2024-12-28T09:43:26.703Z (over 1 year ago)
- Language: CSS
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Usage
Download our [latest release](https://github.com/Rawnly/clock.js/releases) and include `clock.js` file
```html
```
then to create a new clock use this:
```JavaScript
//set clock element
$('#myDiv').newClock({
//options
type: 'classic', //by default is classic
ms: false //by default is false
});
```
If you want you can display ms with `$('#myDiv').newClock({ms:true});` or use the hex clock format `$('#myDiv').newClock({type:'hex'});` (ms must be false for hex clock)
##Dependencies
Clock.js need [jQuery](https://github.com/jquery/jquery) to works, snippet below:
```html
```
#Other
- A preview is available [**here**](https://webe.io/clocktest)
- Coded with [**Atom**](http://atom.io), an amazing code editor
- Made with love by [**Rawnly**](http://github.com/Rawnly) under [**MIT License**](https://github.com/Rawnly/clock.js/blob/master/LICENSE)