DOM manipulated binary clock widget.
- 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.
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);
})();
MIT