1.0.1 • Published 7 years ago

jquery-remote-clock v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

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);
    }
});
1.0.1

7 years ago

1.0.0

7 years ago

0.3.1

7 years ago

3.0.1

7 years ago

0.3.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago