projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
718bae8
)
better for smaller screens
author
Bernhard Tittelbach
<xro@realraum.at>
Tue, 5 Oct 2010 23:09:06 +0000
(23:09 +0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Tue, 5 Oct 2010 23:09:06 +0000
(23:09 +0000)
powersensordaemon/ymhremote.html
patch
|
blob
|
history
diff --git
a/powersensordaemon/ymhremote.html
b/powersensordaemon/ymhremote.html
index
5a37b8a
..
8bfac5f
100755
(executable)
--- a/
powersensordaemon/ymhremote.html
+++ b/
powersensordaemon/ymhremote.html
@@
-7,6
+7,7
@@
function sendButton( btn )
{
//alert(btn);
document.getElementById('indicator').style.backgroundColor="red";
{
//alert(btn);
document.getElementById('indicator').style.backgroundColor="red";
+ document.getElementById('commandlabel').innerHTML=btn;
var req = new XMLHttpRequest();
url = "http://slug.realraum.at/cgi-bin/switch.cgi?power=send&id="+btn;
req.open("GET", url ,false);
var req = new XMLHttpRequest();
url = "http://slug.realraum.at/cgi-bin/switch.cgi?power=send&id="+btn;
req.open("GET", url ,false);
@@
-16,6
+17,7
@@
function sendButton( btn )
//response = req.responseText;
//document.getElementById('output').innerHTML = response;
document.getElementById('indicator').style.backgroundColor="white";
//response = req.responseText;
//document.getElementById('output').innerHTML = response;
document.getElementById('indicator').style.backgroundColor="white";
+ document.getElementById('commandlabel').innerHTML=' ';
}
function remoteKeyboard( e )
}
function remoteKeyboard( e )
@@
-107,4
+109,5
@@
document.onkeydown = remoteKeyboard;
<area shape ="circle" coords ="142,634,17" onClick="sendButton('ymhmenu');" alt="ymhmenu" />
<!-- href ="./cgi-bin/switch.cgi" target ="_blank" -->
</map>
<area shape ="circle" coords ="142,634,17" onClick="sendButton('ymhmenu');" alt="ymhmenu" />
<!-- href ="./cgi-bin/switch.cgi" target ="_blank" -->
</map>
+<p id="commandlabel" style="display:hidden;"> </p>
</html>
</html>