X-Git-Url: http://handorf.org/code/?p=home-automation.git;a=blobdiff_plain;f=index.php;h=e5a765a8404ea555f60797219c67b53135fcb6e2;hp=f47bbef7ece1cf1c689aa09820c13d17e669aac1;hb=HEAD;hpb=22502eb7a498183fada4a50994fa2bb25e4bb790 diff --git a/index.php b/index.php index f47bbef..e5a765a 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,6 @@ - @@ -228,18 +230,11 @@ function stopchanges(t) { function changeIcon(icon) { var icons=new Array(); - icons[0]="home"; - icons[1]="weather"; - icons[2]="lighting"; - icons[3]="music"; - icons[4]="cameras"; - icons[5]="security"; - icons[6]="climate"; - icons[7]="news"; - icons[8]="receipes"; - icons[9]="groceries"; - icons[10]="traffic"; - icons[11]="power"; + $icon) { + echo " icons[$key]='$icon';\n"; + } + ?> for ( var i=icons.length-1; i>=0; --i ){ if (icons[i] == icon) { document.getElementById(icon).src = "images/"+icon+"-on.png"; @@ -249,21 +244,8 @@ function changeIcon(icon) { } } -var securitypages=new Array(); - securitypages[0]="security1.html"; - securitypages[1]="security2.html"; - securitypages[2]="security3.html"; - securitypages[3]="security4.html"; - securitypages[4]="security5.html"; - securitypages[5]="security6.html"; - -function securitypageChange() { - ajaxpage(securitypages[i],'contentarea'); - i++; - if (i==securitypages.length) { - i=0; - } - t=setTimeout("securitypageChange()",10000); +function changepage() { + ajaxpage("cameras.php",'contentarea'); } function mediacenterSelect(ip) { @@ -327,8 +309,8 @@ function testDrawText3(canvas) context.shadowOffsetX=5; context.shadowOffsetY=5; context.shadowBlur=10; - context.fillText("HANDORF HOUSE", 10, 35); - context.strokeText("HANDORF HOUSE", 10, 35); + context.fillText("", 10, 35); + context.strokeText("", 10, 35); } testDrawText3(document.getElementById('canvas3')); @@ -362,7 +344,15 @@ title_status();
-Middle +
@@ -377,82 +367,69 @@ Middle - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
-