Skip to content
No description or website provided.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bower_components/moment Initial commit.
dst Initial commit.
src
tests Initial commit.
.gitignore
Gulpfile.js
README.md
bower.json Updated README.
package.json Initial commit.

README.md

Clocky.js

Clocky.js is a JavaScript library that'll turn any DOM element into a clock.

Getting Started

Options

...

Example

Minimal

<time id="clocky"></time>

<script src="moment.min.js"></script>
<script src="clocky.min.js"></script>

<script>
    var clocky = new Clocky('#clocky');
</script>

Full

<time id="clocky"></time>

<script src="moment.min.js"></script>
<script src="clocky.min.js"></script>

<script>
    var clocky = new Clocky
    (
        '#clocky',
        {
            debug: true,
            autoStart: true,
            format: 'HH:mm:ss',
            style:
            {
                backgroundColor: 'black',
                color: 'white',
                fontSize: '1.3em'
            }
        }
    );
</script>
Something went wrong with that request. Please try again.