From e7c1a5299dffde486b622bd7ab0cbfb08c3aa1a0 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Thu, 13 Dec 2012 20:01:04 +0100 Subject: Small bugfixes. --- History | 4 ++-- index.html | 45 ++++++++++++++++++++++++++++++--------------- settings.js | 6 ++++++ 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/History b/History index b95c261..54667a6 100644 --- a/History +++ b/History @@ -1,4 +1,4 @@ -0.03 +0.03 Release date 2012/12/13 Try to fix Teletext crash. teletext start screen -> teletext/tv 50%/50% Fix bug in epg time left routine. @@ -9,7 +9,7 @@ switch timer reset from mainmenu. EPG language is now based on Satellite/ NID/ TID Added CA Mode to OSD key.png - Full schedule try. + Full schedule. In guide mode Red - switch timer next program, Green now/next, Yellow Schedule, Blue program info. Speed up OSD. (In fullscreen don't need to update channellist.) AudioOut can now be selected in settings.js diff --git a/index.html b/index.html index 4ab29af..f2376d3 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ // change IP server // -var Version = "0.03 2012/12/xx" +var Version = "0.03 2012/12/13" var nrChannels = channels.length; window.onkeydown = onKeyDown; @@ -219,10 +219,10 @@ function onKeyDown(event) { settimer(); switchtimer.style.opacity = 1; setTimeout("switchtimer.style.opacity = 0; ", 2000); - } else { - switchtimer.innerHTML = "
Program is running use OK to switch
"; - switchtimer.style.opacity = 1; - setTimeout("switchtimer.style.opacity = 0; ", 2000); +// } else { +// switchtimer.innerHTML = "
Program is running use OK to switch
"; +// switchtimer.style.opacity = 1; +// setTimeout("switchtimer.style.opacity = 0; ", 2000); } } break; @@ -256,6 +256,7 @@ function onKeyDown(event) { osdepginfonext.style.opacity = 1 - osdepginfo.style.opacity; } } else { + colorkeys.innerHTML = "" + NN[3 + NowNext] + "" + NN[NowNext] + " Schedule INFO "; NowNext = 1 - NowNext; showChannelList(); } @@ -264,15 +265,17 @@ function onKeyDown(event) { case "Yellow": if(isFullscreen) { if(!epgactive) { -// GetSchedule(currChan,15); -// schedule.style.opacity = 1; -// schedule.style.height = "75%"; -// setTimeout("schedule.style.opacity = 0;schedule.style.height = '45%';", 3000); + GetSchedule(currChan,15); + schedule.style.opacity = 1; + schedule.style.height = "75%"; + setTimeout("schedule.style.opacity = 0;schedule.style.height = '45%';", 3000); } } else { GetSchedule(currChan,10); schedule.style.opacity = 1 - schedule.style.opacity; channelList.style.opacity = 1 - schedule.style.opacity; + schedkeys.style.opacity = schedule.style.opacity; + colorkeys.style.opacity = 1 - schedule.style.opacity; isSchedule = schedule.style.opacity; } break; @@ -551,6 +554,13 @@ function onCacheUpdated() { GetEPG(currChan); SetOsdInfo(); } +// if (!isFullscreen) { +// showChannelList(); +// } + if (isSchedule) { + GetSchedule(currChan,10); + } + } function OSDchannr(channr) { @@ -868,14 +878,14 @@ function GetSchedule(schchan,tablelength){ txt = txt + "" + th + ":" + tm + " (" + events.infoSequence[i].duration/60 + ") " + events.infoSequence[i].name + ""; } txt = txt + ""; - schedule.innerHTML = channelsnames[schchan] + txt; + scheduletxt.innerHTML = channelsnames[schchan] + txt; } else { - schedule.innerHTML = "

" + channelsnames[schchan] + "

"; + scheduletxt.innerHTML = "

" + channelsnames[schchan] + "

"; } } catch(e) { alert("Get EPG problem: " + e); - schedule.innerHTML = "

" + channelsnames[schchan] + "

NO EPG

"; + scheduletxt.innerHTML = "

" + channelsnames[schchan] + "

NO EPG

"; } } @@ -1138,14 +1148,19 @@ function InitMenu() {
-
+
+
- Timer - Now / Next + ----- + Next Schedule INFO
+ + +
--------- GUIDE ----
+
diff --git a/settings.js b/settings.js index 061bafb..d4c83d5 100644 --- a/settings.js +++ b/settings.js @@ -58,6 +58,12 @@ var listChan = 0; var NowNext = 0; var EpgInfo = new Array(); var EpgExtInfo = new Array(); +var NN = new Array(); +NN[0] = "Now"; +NN[1] = "Next"; +NN[2] = "Schedule"; +NN[3] = "TIMER"; +NN[4] = "-----"; // -- cgit v1.2.3