From e7c1a5299dffde486b622bd7ab0cbfb08c3aa1a0 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Thu, 13 Dec 2012 20:01:04 +0100 Subject: Small bugfixes. --- index.html | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) (limited to 'index.html') 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 ----
+
-- cgit v1.2.3