diff options
| author | M. Voerman <rekordc@gmail.com> | 2013-04-21 21:55:00 +0200 |
|---|---|---|
| committer | M. Voerman <rekordc@gmail.com> | 2013-04-21 21:55:00 +0200 |
| commit | e649deb0c78082570bf5d1d55f2687508bbcea84 (patch) | |
| tree | 878c71dc497cd4fa9688589c161d9d88324a786d /index.html | |
| parent | df626fe85d8875a9269c6a610151abd23f5486c0 (diff) | |
| download | vdr-vipclient-e649deb0c78082570bf5d1d55f2687508bbcea84.tar.gz vdr-vipclient-e649deb0c78082570bf5d1d55f2687508bbcea84.tar.bz2 | |
Added sleeptimer
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -20,12 +20,10 @@ // // make VDR connection for // set/create/edit timers -// make recordings -// // // -var Version = "0.18" +var Version = "0.19.1" for (var x = 0; x < 10; x++) { if (minChan[x]) { @@ -1637,6 +1635,20 @@ function onKeyMenu(keyCode) { case "MediaForward": break; case "MediaStop": + if (menu == 1) { + //set sleep timer. + SleepTimer = SleepTimer + 15; + if (SleepTimerID != -1) { + clearTimeout(SleepTimerID); + SleepTimerID = -1; + } + if (SleepTimer > 90) { + SleepTimer = 0; + } else { + SleepTimerID = setTimeout("SleepTimer = 0;toi.platformService.setStandby(true);", (SleepTimer * 60 * 1000)); + } + } + InitMenu(menu); break; case "Teletext": break; @@ -1855,7 +1867,9 @@ if(menu == 1) { // settings menu if (ShowProtectedChannels) { htmltext = htmltext + "\uE017"; } else { htmltext = htmltext + "\uE016"; } htmltext = htmltext + " Protection\n 8 - "; if (SwitchGuide) { htmltext = htmltext + "\uE017"; } else { htmltext = htmltext + "\uE016"; } - htmltext = htmltext + " Preview guide\n 9 - Show INFO\n 0 - MainMenu </pre>"; + htmltext = htmltext + " Preview guide\n 9 - Show INFO\n S - SleepTimer : "; + if (SleepTimer) { htmltext = htmltext + SleepTimer + " minutes"; } else { htmltext = htmltext + "OFF"; } + htmltext = htmltext + "\n 0 - MainMenu </pre>"; mainmenu.innerHTML = htmltext; } |
