Clocklib ia a Javascript library that implements a digital/analog clock for specified canvas elements.
This library is implemented for HTML5 .
Download clocklib_v0.1.js
Author: Miguel Alejandro Moreno Barrientos, Copyleft 2015
Description | Sample | HTML5 Code |
---|---|---|
Default clock without attributes |
|
|
Default digital clock without attributes | The same as above with data-type="digital" and height="100" | |
Analog clock with custom colors |
|
|
The same as above in digital | The same as above with data-type="digital" and height="100" | |
Analog clock with golden gradient background, circles as ticks and roman numerals with custom font-family |
|
|
The same as above in digital | The same as above with data-type="digital" and height="100" | |
Analog clock in a non-squared canvas with arabic numerals |
|
|
The same as above in digital | The same as above with data-type="digital" and height="100" | |
Analog clock with horizontal gradient and no ticks |
|
|
The same as above in digital | The same as above with data-type="digital" and height="100" | |
Analog clock with all attributes |
|
|
The same as above in digital | The same as above with data-type="digital" and height="100" |
Javascript sample code used in this page to run the clocks | |
---|---|
|
'Clock' constructor has the format Clock( [refreshRate[,className]] ). There are two public methods,
|
Generator | Clock | HTML5 Code |
---|---|---|
|