Skip to content
Snippets Groups Projects
Commit c044ba55 authored by ands's avatar ands
Browse files

design update

parent 8055fb28
No related branches found
No related tags found
No related merge requests found
body { background-color:#261C13; }
a { color:#0071BB; }
a:hover { color:#777878; }
td, div
{
font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
font-size:16pt;
color:#000000;
}
.widget_wide { .widget_wide, .widget_narrow, .widget_square, .widget_smallwide, .widget_smallnarrow {
position:absolute;
border: 1px solid #F2EFE5; border: 1px solid #F2EFE5;
background-color:#75695E; background-color:#75695E;
font-family:Verdana; font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
font-size:1.5em;
color:#000000; color:#000000;
position:absolute; }
.widget_wide {
width:800px; width:800px;
height:380px; height:380px;
} }
.widget_narrow { .widget_narrow {
border: 1px solid #F2EFE5;
background-color:#75695E;
font-family:Verdana;
color:#000000;
position:absolute;
width:380px; width:380px;
height:800px; height:800px;
} }
.widget_square { .widget_square {
border: 1px solid #F2EFE5;
background-color:#75695E;
font-family:Verdana;
color:#000000;
position:absolute;
width:380px; width:380px;
height:380px; height:380px;
} }
.widget_smallwide { .widget_smallwide {
border: 1px solid #F2EFE5;
background-color:#75695E;
font-family:Verdana;
color:#000000;
position:absolute;
width:380px; width:380px;
height:170px; height:170px;
} }
.widget_smallnarrow { .widget_smallnarrow {
border: 1px solid #F2EFE5;
background-color:#75695E;
font-family:Verdana;
color:#000000;
position:absolute;
width:170px; width:170px;
height:170px; height:170px;
} }
body {
font-family:Verdana;
background-color:#261C13;
color:#ffffff;
}
a {
color:#0071BB;
}
a:hover {
color:#777878;
}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
array( array(
"ZoneOffen", // widget name "ZoneOffen", // widget name
16,200, // position 16,200, // position
"widget_square" // css-class "widget_smallwide" // css-class
) )
); );
......
function fillContent(response) { function fillContent(response) {
var content = "";
if (response["tuerOffen"] == false){ if (response["tuerOffen"] == false){
$("#ZoneOffen_open").html(" <font color='red'>geschlossen!</font>"); content = "<p><font color='cc0000'>Geschlossen</font></p>";
} else { } else {
$("#ZoneOffen_open").html(" <font color='green'>ge&ouml;ffnet!</font>"); content = "<p><font color='00cc00'>Offen</font></p>";
} }
$("#ZoneOffen_templounge").html(response["tempLounge"]); content += "<p>" + response["tempLounge"] + "&deg;C</p>";
$("#ZoneOffen_tempwerkstatt").html(response["tempWerkstatt"]); content += "<p>" + response["tempWerkstatt"] + "&deg;C</p>";
$("#ZoneOffen_values").html(content);
} }
function updateZoneOffen () { function updateZoneOffen () {
......
...@@ -13,9 +13,12 @@ class ZoneOffen implements iWidget ...@@ -13,9 +13,12 @@ class ZoneOffen implements iWidget
public function giveOutput() public function giveOutput()
{ {
$widgetOutput = '<script src="widgets/ZoneOffen/ZoneOffen.js" type="text/javascript"></script>'."\n"; $widgetOutput = '<script src="widgets/ZoneOffen/ZoneOffen.js" type="text/javascript"></script>'."\n";
$widgetOutput .= '<div>Die Zone ist <span id="ZoneOffen_open"></span></div>'."\n"; $widgetOutput .= '<table width="66%" align="center" valign="center" border="0" cellpadding="0" cellspacing="4">'."\n";
$widgetOutput .= '<div>Lounge <span id="ZoneOffen_templounge"></span></div>'."\n"; $widgetOutput .= ' <tr>'."\n";
$widgetOutput .= '<div>Werkstatt <span id="ZoneOffen_tempwerkstatt"></span></div>'."\n"; $widgetOutput .= ' <td width="50%" align="right"><b><p>Status: </p><p>Lounge: </p><p>Werkstatt: </p></b></td>'."\n";
$widgetOutput .= ' <td width="50%" align="right"><span id="ZoneOffen_values"><font color="#cc3300"><p>Unbekannt</p><p>Unbekannt</p><p>Unbekannt</p></font></span></td>'."\n";
$widgetOutput .= ' </tr>'."\n";
$widgetOutput .= '</table>'."\n";
return $widgetOutput; return $widgetOutput;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment