|
YaWK
24.1
Yet another WebKit
|
Embed a digital real-time clock on your website. More...
Public Member Functions | |
| __construct ($db) | |
| Load all widget settings from database and fill object. More... | |
| drawClock () | |
| Draw the clock on screen. More... | |
| init () | |
| Initialize: prepare JS and start the clock. More... | |
| loadJavascript () | |
| Load required javascript. More... | |
| printObject () | |
| Print all object data. More... | |
Public Attributes | |
| $clockAlign = 'text-center' | |
| $clockClass = 'h1' | |
| $clockColor = '#f5f5f5' | |
| $widget = '' | |
Embed a digital real-time clock on your website.
Embed a digital clock on your website.
The clock shows the current time. (wonder, oh wonder...) You can set the clock's font color, alignment (left, center or right) as well as a custom css class to design it and put some FX on if you need to. If you need an analog clock anywhere on your website, this widget does the job.
| YAWK\WIDGETS\CLOCK\CURRENT\clock::__construct | ( | $db | ) |
| YAWK\WIDGETS\CLOCK\CURRENT\clock::drawClock | ( | ) |
Draw the clock on screen.
This method draws the clock on screen
Definition at line 93 of file clock.php.
Referenced by YAWK\WIDGETS\CLOCK\CURRENT\clock\init().
| YAWK\WIDGETS\CLOCK\CURRENT\clock::init | ( | ) |
Initialize: prepare JS and start the clock.
use this method to run the clock
Definition at line 57 of file clock.php.
References YAWK\WIDGETS\CLOCK\CURRENT\clock\drawClock(), and YAWK\WIDGETS\CLOCK\CURRENT\clock\loadJavascript().
| YAWK\WIDGETS\CLOCK\CURRENT\clock::loadJavascript | ( | ) |
Load required javascript.
The engine behind this clock
Definition at line 67 of file clock.php.
Referenced by YAWK\WIDGETS\CLOCK\CURRENT\clock\init().
| YAWK\WIDGETS\CLOCK\CURRENT\clock::printObject | ( | ) |
| YAWK\WIDGETS\CLOCK\CURRENT\clock::$clockAlign = 'text-center' |
| YAWK\WIDGETS\CLOCK\CURRENT\clock::$clockClass = 'h1' |
| YAWK\WIDGETS\CLOCK\CURRENT\clock::$clockColor = '#f5f5f5' |
| YAWK\WIDGETS\CLOCK\CURRENT\clock::$widget = '' |