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

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

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)