Skip to content
Snippets Groups Projects
Clock.php 462 B
<?php

require_once 'widgets/iWidget.php';

class Clock implements iWidget 
{
  public function __construct($width, $height)
  {

  }

  public function giveOutput() 
  {
    $widgetOutput = '<script src="widgets/Clock/Clock.js" type="text/javascript"></script>'."\n";
    $widgetOutput .= '<h1>Uhrzeit:</h1>'."\n";
    $widgetOutput .= '<center><div id="Clock" class="box" style="font-size:5em;">00:00</div></center>'."\n";

    return $widgetOutput;
  }
}

?>