29 lines
618 B
PHP
29 lines
618 B
PHP
<?php
|
|
class clock extends Module {
|
|
|
|
protected static $paramsList = array(
|
|
'visibility',
|
|
'x',
|
|
'y'
|
|
);
|
|
|
|
public $params = array();
|
|
|
|
public function __construct($params){
|
|
$this->setParams($params);
|
|
echo '<script type="text/javascript" src="js/jquery.jclock.js"></script>';
|
|
echo '<div class="jclock" id="clock" style="left:'.$params['x'].'; top:'.$params['y'].';"></div>';
|
|
}
|
|
|
|
private function setParams($params){
|
|
$this->params = $params;
|
|
}
|
|
|
|
public static function start($params){
|
|
$clock = new clock($params);
|
|
}
|
|
|
|
public static function updateConfig($updated){
|
|
|
|
}
|
|
} |