Skip to content

Stable

Latest
Compare
Choose a tag to compare
@pilotpirxie pilotpirxie released this 16 Apr 20:37
· 2 commits to master since this release

Binary Clock

DOM manipulated binary clock widget.

Demo

https://herbaciarz.github.io/binary-clock/demo.html

How to use

  • Download ZIP file or clone repository.
  • Attach the script at the end of file.
  • Create a new instance of object.
  • Run it or check the demo.

Setup

function(){
    /**
    * BinaryClock constructor accepts two parameteres.
    * First is an id of div to append, second is a font size.
    ***/
    const clock = new BinaryClock('binary-clock',32);
    clock.start(1000);
})();

License

MIT