source: trunk/Extensions/WebRemoteForHandhelds/simple_remote.html

Last change on this file was 21, checked in by stefan, 7 years ago

added WebRemoteForHandhelds

File size: 5.0 KB
Line 
1<html><head>
2
3  <script type="text/javascript">
4    var url_remotecontrol = '/web/remotecontrol';
5
6    function sendRemoteControlRequest(command){
7      var xmlHttp;
8      // Create xmlHttp Object
9      try {
10        // Firefox, Opera 8.0+, Safari
11        xmlHttp = new XMLHttpRequest();
12      } catch (e) {
13        try {
14          // Internet Explorer
15          xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
16        } catch (e) {
17          try {
18            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
19          } catch (e) {
20            alert("Your browser does not support AJAX!");
21            return false;
22          }
23        }
24      }
25      // Event Handler - EventListener
26      xmlHttp.onreadystatechange = function() {
27        if (xmlHttp.readyState == 4) { // 4: The Request is complete
28          // should we do something here?
29        }
30      }
31 
32      // Request
33      xmlHttp.open('GET', url_remotecontrol+'?command='+command, true);
34      xmlHttp.send(null);
35    }
36  </script>
37  <meta name="viewport" content="width=320, initial-scale=2.0" />
38
39  <meta content="text/html; charset=UTF-8" http-equiv="content-type">
40  <title>Enigma2 Webremote</title>
41
42</head><body style="background-color: #000000;">
43
44  <map name="rcold">
45    <area shape="circle" coords="94,24,10" nohref="" onclick="sendRemoteControlRequest(116)" alt="Power">
46    <area shape="circle" coords="53,54,13" nohref="" onclick="openGrabPicture()" alt="TV Screenshot">
47    <area shape="circle" coords="37,81,10" nohref="" onclick="sendRemoteControlRequest(2)" alt="1">
48    <area shape="circle" coords="76,81,10" nohref="" onclick="sendRemoteControlRequest(3)" alt="2">
49
50    <area shape="circle" coords="113,81,10" nohref="" onclick="sendRemoteControlRequest(4)" alt="3">
51    <area shape="circle" coords="38,100,10" nohref="" onclick="sendRemoteControlRequest(5)" alt="4">
52    <area shape="circle" coords="75,102,10" nohref="" onclick="sendRemoteControlRequest(6)" alt="5">
53    <area shape="circle" coords="113,101,10" nohref="" onclick="sendRemoteControlRequest(7)" alt="6">
54    <area shape="circle" coords="37,122,10" nohref="" onclick="sendRemoteControlRequest(8)" alt="7">
55    <area shape="circle" coords="74,122,10" nohref="" onclick="sendRemoteControlRequest(9)" alt="8">
56    <area shape="circle" coords="113,122,10" nohref="" onclick="sendRemoteControlRequest(10)" alt="9">
57    <area shape="circle" coords="35,144,10" nohref="" onclick="sendRemoteControlRequest(412)" alt="previous">
58    <area shape="circle" coords="76,144,10" nohref="" onclick="sendRemoteControlRequest(11)" alt="0">
59
60    <area shape="circle" coords="113,143,10" nohref="" onclick="sendRemoteControlRequest(407)" alt="next">
61    <area shape="circle" coords="32,180,13" nohref="" onclick="sendRemoteControlRequest(115)" alt="volume up">
62    <area shape="circle" coords="76,172,10" nohref="" onclick="sendRemoteControlRequest(113)" alt="mute">
63    <area shape="circle" coords="121,178,13" nohref="" onclick="sendRemoteControlRequest(402)" alt="bouquet up">
64    <area shape="circle" coords="44,208,13" nohref="" onclick="sendRemoteControlRequest(114)" alt="volume down">
65    <area shape="circle" coords="76,195,10" nohref="" onclick="sendRemoteControlRequest(174)" alt="lame">
66    <area shape="circle" coords="113,209,13" nohref="" onclick="sendRemoteControlRequest(403)" alt="bouquet down">
67    <area shape="circle" coords="26,233,10" nohref="" onclick="sendRemoteControlRequest(358)" alt="info">
68    <area shape="circle" coords="76,233,13" nohref="" onclick="sendRemoteControlRequest(103)" alt="up">
69
70    <area shape="circle" coords="125,234,10" nohref="" onclick="sendRemoteControlRequest(139)" alt="menu">
71    <area shape="circle" coords="43,263,13" nohref="" onclick="sendRemoteControlRequest(105)" alt="left">
72    <area shape="circle" coords="76,263,13" nohref="" onclick="sendRemoteControlRequest(352)" alt="OK">
73    <area shape="circle" coords="110,263,13" nohref="" onclick="sendRemoteControlRequest(106)" alt="right">
74    <area shape="circle" coords="29,295,10" nohref="" onclick="sendRemoteControlRequest(392)" alt="audio">
75    <area shape="circle" coords="76,292,13" nohref="" onclick="sendRemoteControlRequest(108)" alt="down">
76    <area shape="circle" coords="122,296,10" nohref="" onclick="sendRemoteControlRequest(393)" alt="video">
77    <area shape="circle" coords="35,329,10" nohref="" onclick="sendRemoteControlRequest(398)" alt="red">
78    <area shape="circle" coords="63,330,10" nohref="" onclick="sendRemoteControlRequest(399)" alt="green">
79
80    <area shape="circle" coords="90,331,10" nohref="" onclick="sendRemoteControlRequest(400)" alt="yellow">
81    <area shape="circle" coords="119,329,10" nohref="" onclick="sendRemoteControlRequest(401)" alt="blue">
82    <area shape="circle" coords="38,361,10" nohref="" onclick="sendRemoteControlRequest(377)" alt="tv">
83    <area shape="circle" coords="63,362,10" nohref="" onclick="sendRemoteControlRequest(385)" alt="radio">
84    <area shape="circle" coords="89,363,10" nohref="" onclick="sendRemoteControlRequest(388)" alt="text">
85    <area shape="circle" coords="114,362,10" nohref="" onclick="sendRemoteControlRequest(138)" alt="help">
86  </map>
87 
88  <img src="img/rcold.png" alt="Remote Control" usemap="#rcold" border="0" height="474" width="154">
89
90</body></html>
Note: See TracBrowser for help on using the repository browser.