trunk 20080912
[gitenigma.git] / data / htdocs / index.js
blob7e65d606cbd8762379831756d8560bc83bab56b9
1 function setVol(volume)
3         document.location = "/setVolume?volume=" + volume;
4         if (window.screen.width < 800)
5                 setTimeout("document.location.reload()", 1000);
6         else
7         {
8                 headerUpdateVolumeBar(volume, 0);
9                 data.location.reload();
10         }
13 function toggleMute(xy)
15         document.location = "/setVolume?mute="+xy;
16         if (window.screen.width < 800)
17                 setTimeout("document.location.reload()", 1000);
18         else
19         {
20                 headerUpdateVolumeBar(data.volume, 0);
21                 data.location.reload();
22         }
25 function switchChannel(xy, bouquet, channel)
27         if (window.screen.width < 800)
28         {
29                 NewWindow('/cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no');
30         }
31         else
32         {
33                 if (zapMode < 4)
34                         document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel;
35                 else
36                         document.location = "?path="+xy+"&mode=zap&zapmode=4&zapsubmode=1";
38                 setTimeout("parent.data.location.reload()", 500);
39         }
42 function logging()
44         parent.body.document.location = "/log/debug.html";
47 function remoteControl(box)
49         if (box == "dbox2")
50                 NewWindow("/showRemoteControl", "RC", "165", "500", "no");
51         else
52                 NewWindow("/showRemoteControl", "RC", "1024", "640", "no");
55 function satFinder(transponder)
57         NewWindow("/satFinder?" + transponder, "satfind", "170", "150", "no");
60 function openEPG(ref)
62         NewWindow('/getcurrentepg?type=extended&ref=' + ref, 'EPG', '780', screen.height, 'yes');
65 function openMultiEPG(ref)
67         NewWindow('/getMultiEPG?ref=' + ref, 'MultiEPG', screen.width, screen.height, 'yes');
70 function admin(command)
72         NewWindow('/cgi-bin/admin?command=' + command + '&requester=webif', 'admin', '200', '100', 'no', '3000');
75 function openSI()
77         NewWindow("/xml/streaminfo", "si", "780", "700", "yes");
80 function openChannelInfo()
82         NewWindow("/cgi-bin/channelinfo", "ci", "780", "600", "yes");
85 function DVRrecord(command)
87         document.location = "/cgi-bin/videocontrol?command=" + command; 
88         setTimeout("document.location.reload()", 500);
91 function sendMessage2TV()
93         NewWindow("/tvMessageWindow", "msg", "780", "175", "no");
96 function selectAudio()
98         NewWindow("/cgi-bin/selectAudio?requester=webif", "audio", "300", "150", "no");
101 function selectSubChannel()
103         NewWindow("/cgi-bin/selectSubChannel", "subchannel", "300", "130", "no");
105 function setStreamingServiceRef()
107         if (parent.data.serviceReference)
108                 document.location = "/cgi-bin/setStreamingServiceRef?sref=" + parent.data.serviceReference;
109         else
110                 setTimeout("setStreamingServiceRef()", 200);
112 function vlc()
114         document.location = "/video.m3u";
115         setTimeout("setStreamingServiceRef()", 200);