Skip to content

jorgemorgado/dashing-analog-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dashing-analog-clock

A beautiful analog clock for Smashing/Dashing dashboard.

Preview

AnalogClock

Description

Displays a beautiful analog clock setting at local time. The clock can be scaled to whatever width x height you have defined your widget.

The clock itself was taken from CSS-Tricks Clock. All I've done was mostly port the code to Dashing, make it scalable to better fit the widget base dimensions and adjust the images for the new sizes.

Usage

Create the directory widgets/analog_clock and copy this widget's files into that folder.

Copy the images folder analog_clock into the assets/images folder.

Add the following code on the desired dashboard:

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
    <div data-view="AnalogClock"></div>
</li>

That's it!! Your new Dashing clock will rock!

If you want to make it bigger, change the widget data-sizex/sizey dimensions. Example:

<li data-row="1" data-col="1" data-sizex="2" data-sizey="2">
    <div data-view="AnalogClock"></div>
</li>

And increase the clock's width on the CSS file (the default is 300px). Example:

$clock-width:       600px;

Reload your dashboard and you're done.

NOTE: I've left the original clockface.jpg image in the folder. This image has a smooth shadow and it works quite well in case you want to have a white background-color for your clock (no transparency). In this case, don't forget to change the clock's background URL image in the styles:

/* Default clock background */
background: url(analog_clock/clockface.jpg);

/* Another example, without numbers */
background: url(analog_clock/clockface2.jpg);

Contributors

License

This widget is released under the MIT License.

About

A beautiful analog clock for Smashing dashboard (was Dashing)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published