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

konfigurationsmöglichkeit per config-datei implementiert, Logo als widget, ein...

konfigurationsmöglichkeit per config-datei implementiert, Logo als widget, ein paar auswählbare css-styles pro widget
parent 4ddccf6b
No related branches found
No related tags found
No related merge requests found
...@@ -2,15 +2,14 @@ body { background-color:#261C13; } ...@@ -2,15 +2,14 @@ body { background-color:#261C13; }
a { color:#0071BB; } a { color:#0071BB; }
a:hover { color:#777878; } a:hover { color:#777878; }
td, div .widget, .widget td, .widget div {
{
font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati; font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
font-size:16pt; font-size:16pt;
color:#000000; color:#000000;
} }
.widget_4x2, .widget_2x4, .widget_2x2, .widget_2x1, .widget_1x2 {
position:absolute; .widget_light {
border: 1px solid #F2EFE5; border: 1px solid #F2EFE5;
background-color:#75695E; background-color:#75695E;
font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati; font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
...@@ -18,9 +17,24 @@ td, div ...@@ -18,9 +17,24 @@ td, div
color:#000000; color:#000000;
} }
.widget_4x2 { width:800px; height:380px; } .widget_light td, .widget_light div {
.widget_2x4 { width:380px; height:800px; } font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
.widget_2x2 { width:380px; height:380px; } font-size:16pt;
.widget_2x1 { width:380px; height:170px; } color:#000000;
.widget_1x2 { width:170px; height:380px; } }
.widget_dark {
border: 1px dashed #75695E;
background-color:#362C23;
font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
font-size:16pt;
color:#ffffff;
}
.widget_dark td, .widget_dark div {
font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati;
font-size:16pt;
color:#ffffff;
}
webroot/img/warpzone.png

5.81 KiB

...@@ -5,32 +5,28 @@ ...@@ -5,32 +5,28 @@
<script src="js/marvin.js" type="text/javascript"></script> <script src="js/marvin.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<img src="img/warpzone.png"> <?php require_once "config.php"; ?>
<div style="position:absolute;left:40px;top:200px;"> <div style="position:absolute;left:<?php print($widget_spacing_x); ?>px;top:<?php print($widget_spacing_y); ?>px;">
<?php <?php
$widgets = array(
//array("widget_name",x,y,"size_class");
array("Dummy",0,0,"widget_4x2"),
array("ZoneOffen",4,0,"widget_2x1"),
array("Dummy",4,1,"widget_2x4"),
array("Dummy",0,2,"widget_1x2"),
array("Dummy",1,2,"widget_2x2"),
array("Dummy",3,2,"widget_1x2"),
array("Dummy",0,4,"widget_2x1"),
array("Dummy",2,4,"widget_2x1")
);
foreach ($widgets as $widgetconfig) foreach ($widgets as $widgetconfig)
{ {
$widgetname = $widgetconfig[0]; $widgetname = $widgetconfig[0];
$widgetposx = $widgetconfig[1] * 210; $widgetclass = $widgetconfig[1];
$widgetposy = $widgetconfig[2] * 210; $widgetposx = $widgetconfig[2] * $widget_unit_width;
$widgetclass = $widgetconfig[3]; $widgetposy = $widgetconfig[3] * $widget_unit_height;
$widgetsizex = $widgetconfig[4] * $widget_unit_width - $widget_spacing_x;
$widgetsizey = $widgetconfig[5] * $widget_unit_height - $widget_spacing_y;
include_once "widgets/$widgetname/$widgetname.php"; include_once "widgets/$widgetname/$widgetname.php";
$widget = new $widgetname($widgetwidth,$widgetheight); $widget = new $widgetname($widgetwidth,$widgetheight);
$widgetoutput = $widget->giveOutput(); $widgetoutput = $widget->giveOutput();
print("<div class='$widgetclass' id='$widgetname' style='left:".$widgetposx."px;top:".$widgetposy."px;'>"); print("<div
id='$widgetname'
class='$widgetclass'
style='
position:absolute;
left:".$widgetposx."px;top:".$widgetposy."px;
width:".$widgetsizex."px;height:".$widgetsizey."px;'>");
print($widgetoutput); print($widgetoutput);
print("</div>"); print("</div>");
} }
......
...@@ -20,8 +20,8 @@ function updateZoneOffen () { ...@@ -20,8 +20,8 @@ function updateZoneOffen () {
$(document).ready(function() $(document).ready(function()
{ {
//Zuerst nur einmal laden
addFunctionToMinuteTimer(updateZoneOffen); addFunctionToMinuteTimer(updateZoneOffen);
updateZoneOffen();
} }
); );
......
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