You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

class clockAdvanced extends Module {
protected static $paramsList = array(
public $params = array();
public function __construct($params){
echo '<script type="text/javascript" src="js/jquery.jclockAdvanced.js"></script>';
echo '<div class="jclockAdvanced" id="clockAdvanced" style="left:'.$params['x'].'; top:'.$params['y'].';"></div>';
$options = '';
foreach (self::$paramsList as $paramName){
$options .= $paramName.' : '.$this->params[$paramName].',';
echo '<script>$(document).ready(function(){
private function setParams($params){
$this->params = $params;
public static function start($params){
$clockAdvanced = new clockAdvanced($params);
public static function updateConfig($updated){