X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2Fymhremote.html;h=3a43e59173d43e9f56e7b76a80bcf8030c988a98;hb=26a46e58c6449468c98df0b7a5f94870bb9c4aea;hp=3648fbddd335ae3bb9fc10a90742628b8bdce118;hpb=db3286578b6d5510e6319b3189f2dc388328fd4f;p=svn42.git diff --git a/powersensordaemon/ymhremote.html b/powersensordaemon/ymhremote.html index 3648fbd..3a43e59 100755 --- a/powersensordaemon/ymhremote.html +++ b/powersensordaemon/ymhremote.html @@ -7,13 +7,17 @@ function sendButton( btn ) { //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); + //google chrome workaround + req.setRequestHeader("googlechromefix",""); req.send(null); //response = req.responseText; //document.getElementById('output').innerHTML = response; document.getElementById('indicator').style.backgroundColor="white"; + document.getElementById('commandlabel').innerHTML=' '; } function remoteKeyboard( e ) @@ -35,9 +39,12 @@ function remoteKeyboard( e ) case 83: sendButton( 'ymhsleep' ); break; // S case 36: sendButton( 'ymhmute' ); break; //pos1 case 33: sendButton( 'ymhvolup' ); break; // P = 80, PAGEUP = 33 + case 43: sendButton( 'ymhvolup' ); break; // + case 34: sendButton( 'ymhvoldown' ); break; // N = 78, PAGEDOWN = 34 - case 43: sendButton( 'ymhtunplus' ); break; // + - case 65: sendButton( 'ymhtunabcde' ); break; // A + case 45: sendButton( 'ymhvoldown' ); break; // - + case 46: sendButton( 'ymhtunplus' ); break; // . + case 44: sendButton( 'ymhtunminus' ); break; // , + case 59: sendButton( 'ymhtunabcde' ); break; // ; case 69: sendButton( 'ymheffect' ); break; // E case 80: sendButton( 'ymhpower' ); break; // P case 48: sendButton( 'ymhtest' ); break; // 0 @@ -45,9 +52,9 @@ function remoteKeyboard( e ) case 50: sendButton( 'ymhtuner' ); break; // 2 case 51: sendButton( 'ymhtape' ); break; // 3 case 52: sendButton( 'ymhwdtv' ); break; // 4 - //case 53: sendButton( 'ymhsat' ); break; // 5 + case 53: sendButton( 'ymhsattv' ); break; // 5 case 54: sendButton( 'ymhvcr' ); break; // 6 - //case 55: sendButton( '' ); break; // 7 + case 55: sendButton( 'ymh7' ); break; // 7 case 56: sendButton( 'ymhaux' ); break; // 8 case 57: sendButton( 'ymhextdec' ); break; // 9 } @@ -57,50 +64,51 @@ document.onkeydown = remoteKeyboard; - - - - - - - -
- - + -ymhcd -ymhtuner -ymhtape -ymhwdtv - -ymhvcr - -ymhaux -ymhextdec -ymhtest -ymhtunabcde -ymheffect +ymhcd +ymhtuner +ymhtape +ymhwdtv +ymhsattv +ymhvcr +ymh7 +ymhaux +ymhextdec +ymhtest +ymhtunabcde +ymheffect - - -ymhvoldown -ymhvolup -ymhmute + + +ymhvoldown +ymhvolup +ymhmute -ymhsleep - +ymhsleep +ymhp5 - - + + -ymhprgup -ymhprgdown -ymhminus -ymhplus +ymhprgup +ymhprgdown +ymhminus +ymhplus -ymhtimelevel -ymhmenu +ymhtimelevel +ymhmenu + + +
+ + + +
+

 

+
+