X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2Fymhremote.html;h=5a37b8ad1e73516d2574823963679e8e616d0346;hb=75d3e955b7445b15c9c25a425e888ae76af6c3db;hp=22ebe64956ff8cb0fc79a9f4a6570e20d6b80cc1;hpb=5a475352aefb6eed303ad1547c590f1353e73248;p=svn42.git diff --git a/powersensordaemon/ymhremote.html b/powersensordaemon/ymhremote.html index 22ebe64..5a37b8a 100755 --- a/powersensordaemon/ymhremote.html +++ b/powersensordaemon/ymhremote.html @@ -10,6 +10,8 @@ function sendButton( 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; @@ -35,9 +37,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 @@ -66,40 +71,40 @@ document.onkeydown = remoteKeyboard; - + -ymhcd -ymhtuner -ymhtape -ymhwdtv - -ymhvcr - -ymhaux -ymhextdec -ymhtest -ymhtunabcde -ymheffect +ymhcd +ymhtuner +ymhtape +ymhwdtv + +ymhvcr + +ymhaux +ymhextdec +ymhtest +ymhtunabcde +ymheffect - - -ymhvoldown -ymhvolup -ymhmute + + +ymhvoldown +ymhvolup +ymhmute -ymhsleep - +ymhsleep + - - + + -ymhprgup -ymhprgdown -ymhminus -ymhplus +ymhprgup +ymhprgdown +ymhminus +ymhplus -ymhtimelevel -ymhmenu +ymhtimelevel +ymhmenu