Giter Site home page Giter Site logo

zhengfengran / dashing-analog-clock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgemorgado/dashing-analog-clock

0.0 0.0 0.0 276 KB

A beautiful analog clock for Smashing dashboard (was Dashing)

License: MIT License

CoffeeScript 32.88% HTML 3.33% CSS 63.79%

dashing-analog-clock's Introduction

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_chart 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:

background: url(analog_clock/clockface.jpg);

Contributors

License

This widget is released under the MIT License.

dashing-analog-clock's People

Contributors

jorgemorgado avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.