This is simple Dashing widget to show clock supporting 3 time zones. It is based on standard clock widget in Dashing package.
##Usage
To use this widget, copy clock.html
, clock.coffee
, and clock.scss
into the /widgets/clock
directory.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="clock" data-view="Clock" data-second-time-offset="-2" data-third-time-offset="3"></div>
<i class="icon-time icon-background"></i>
</li>
##Settings
Time offsets are configured by adding data-second-time-offset
or data-third-time-offset
attributes. As you see above, offsets can be numbers - negative with minus or positive without any sign. If attributes are not specified time is not shown.
You can change styles .second-time
and .third-time
in clock.scss
file to suite your dashboard.
The new HTML-Tag must look like this: