jrc

jquery-remote-clock

Turns given div element into simple clock displaying remote time.

Showing:

Popularity

Downloads/wk

6

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

30.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

jQuery Clock

Readme

jquery-remote-clock

Turns given div element into simple clock displaying remote time.

basic usage

<div class="clock-holder"></div>
$('.clock-holder').remoteClock({
    url: '/time'
});

change sync interval

$('.clock-holder').remoteClock({
    url: '/time',
    syncInterval: 30000
});

customize widget template

$('.server-time-clock').remoteClock({
    url: '/time',
    template: '<i class="fa fa-clock-o" aria-hidden="true"></i> <span class="time">88:88:88</span>'
});

use custom time parser

$('.server-time-clock').remoteClock({
    url: '/time',
    parser: function (data) {
        return Date.parse(data.time);
    }
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100