Giter Site home page Giter Site logo

lcsouzamenezes / watchface.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramonszo/watchface.js

0.0 0.0 0.0 2.1 MB

Turn your website responsive even on smartwatches.

Home Page: https://ramon.codes/projects/watchface.js/

License: MIT License

HTML 32.72% JavaScript 67.28%

watchface.js's Introduction

watchface.js

Watchface.JS demo

A useless library to fill the gap between mobile and layout breaks

Or a cool easter egg for responsive perfectionists.

Live demo: https://on.ramon82.com/2k82hxi

How to use

Just call when you're ready:

Watchface({options object});

Options

  • id: Watch id, will be created if unexistent. Default: 'watchface'.
  • skin: Watch class name, if you want to customize via CSS.
  • mode: Watch style. Available options: 'digital' and 'analog'. Default: 'digital'
  • format: 12 or 24 hour format. Default: 12
  • band: show digital clock on smaller screens (<80px). Default: true
  • seconds: show seconds (digital and band clock). Default: false
  • icon: icon html for digital clock, could be image, svg, FontAwesome, etc.
  • customCSS: if true doesn't apply any CSS style
  • leadingZero: show leading zero on hours. Default: true
  • media: Values for media queries
    • watch: 280
    • band: 100
  • colors: Values for colors, could be any CSS format
    • background: #000 Watch background
    • text: #FFF Digital clock text color
    • analogBackground: #FFF Analog clock background
    • analogText: #333 Analog clock text color
    • pointers: #333 Analog clock pointers color
    • secPointer: #FC0505 Analog clock second pointer color

watchface.js's People

Contributors

ramonszo 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.