From a189caa11f906365f0a65dc58123551282e82069 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Thu, 13 Nov 2014 14:56:37 +0100 Subject: More css work --- blue.css | 4 +- main.js | 150 +++++++++++------------------------------------------------ settings2.js | 95 +++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 125 deletions(-) diff --git a/blue.css b/blue.css index 4f93b70..7a173f1 100644 --- a/blue.css +++ b/blue.css @@ -91,7 +91,7 @@ text-align: center; } - pre.mmenu { + pre.mainmenu { font-size:49px; color:black; } @@ -231,7 +231,7 @@ top : 80%; opacity : 0; color : green; - font-size:36px; + font-size:66px; } div#osdmedia { diff --git a/main.js b/main.js index d050798..49e5ee3 100644 --- a/main.js +++ b/main.js @@ -1368,7 +1368,7 @@ function showVolume() { if (osdVolumetimeout) { clearTimeout(osdVolumetimeout); } - osdvolume.innerHTML = Lang[1] + " : " + Volume + "% \uE007" + (new Array(Volume)).join("\uE008") + (new Array(100 - Volume)).join("\uE009") + "\uE00A"; + osdvolume.innerHTML = Lang[1] + " : " + Volume + "% \n\uE007" + (new Array(Volume)).join("\uE008") + (new Array(100 - Volume)).join("\uE009") + "\uE00A"; osdvolume.style.opacity = 1; osdVolumetimeout = setTimeout("osdvolume.style.opacity = 0;", ShowOsdTime); } @@ -1438,7 +1438,7 @@ function updateOSDtime(timchan) { function settimer(ProgTime,ProgName,ProgDura,SwitchTimer,BackGroundColor,ProgDesc,ProgEvID) { -if (!BackGroundColor) { BackGroundColor = DefaultBGColor;} +if (!BackGroundColor) { BackGroundColor = color_default;} // 1 - switchonly, 2 - record on server (display info only), 3 - record local if(SwitchTimer == 1) { try { @@ -1789,56 +1789,6 @@ function Nibbles() { } -function GetSchedule(schchan,tablelength){ - //Old style Schedule, used in Guide View. - SI = ""; - try { - StreamInfo(schchan); - - eitService = toi.statics.ToiDvbEitCacheServiceItem.create(SI[1],SI[2],SI[3]); - eitCache.addService(eitService); - event = eitCache.getPresentEvent(eitService); - events = eitCache.getEvents(eitService, (Math.round(new Date().getTime()/1000.0)), 2000000000); - - if (event.name) { - if (events.more) { - var t = eitCache.getEvents(eitService, (Math.round(new Date().getTime()/1000.0)), 2000000000); - events.infoSequence.concat(t.infoSequence); - events.more = t.more; - } - - var txt = ""; - var i = 0; - for (i = 0; i < events.infoSequence.length && i < tablelength; i++) { - - while ((i > 0) && (events.infoSequence[i].eventId == events.infoSequence[(i-1)].eventId)) { - i = i + 1; - } - - tijd = events.infoSequence[i].time; - date = new Date(tijd*1000); - tijd = date.toUTCString(); - tijd = new Date(tijd); - var tm = tijd.getMinutes(); - var th = tijd.getHours(); - th=addzero(th); - tm=addzero(tm); - - txt = txt + ""; - } - txt = txt + "
\uE003\uE003\uE003\uE003\uE003" + th + ":" + tm + " (" + (events.infoSequence[i].duration/60).toFixed(0) + ") " + Left(events.infoSequence[i].name,30) + "
"; - schedule.innerHTML = "

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + txt + "

"; - } else { - schedule.innerHTML = "

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + "

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

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + "

" + Lang[6] + "

"; - } - -} - function StreamInfo(si) { // EPG Filter @@ -2085,52 +2035,6 @@ function StreamInfo(si) { // End of EPG section - -// Channelslist / EPG Guide -// -// show currchan - 5 -// highlite currchan -// show currchan + 5 -// -// check if chan is OK -// -function showChannelList() { - var liststyle = ""; - var htmlstring = ""; - listChan = currChan-5; - for(var i=currChan-5; i<=currChan+5; i++) { - do - { - listChan += 1; - if (listChanmaxChan[ChanGroup]) { - listChan=minChan[ChanGroup]; - } - } - - while (!channels[listChan] && (listChan\uE003\uE003" + listChan + "\uE003"; - } - htmlstring = htmlstring + "
" + Left(channelsnames[listChan],15) + "\uE003" + Left(EpgInfo[NowNext],64) + "
"; - channellist.innerHTML = htmlstring; - chanlistepg.innerHTML = "

" + EPG[NowNext][1][currChan] + "

" + Left(EPG[NowNext][4][currChan],250) + "

" ; - -} - - -// END of Channelslist / EPG Guide - // TeleTXT section function embedTeletextPlugin() { @@ -2382,7 +2286,7 @@ function onKeyMenu(keyCode) { } } else if (menu == 5 && smartTVplugin) { osdepginfo.style.opacity = 0; - mainmenu.innerHTML = "

" + Lang[7] + "

"; + mainmenu.innerHTML = "

" + Lang[7] + "

"; DeleteTimers(); setTimeout("LoadTimersServer();InitMenu(menu);",100); } else if (menu == 10) { @@ -2613,7 +2517,7 @@ function onKeyMenu(keyCode) { break; case KEY_5: if (menu == MainMenu && (Restfulapiplugin || smartTVplugin)) { - mainmenu.innerHTML = "

" + Lang[7] + "

"; + mainmenu.innerHTML = "

" + Lang[7] + "

"; timerID = 0; menu = 5; setTimeout("LoadTimersServer();InitMenu(menu);",200); @@ -2689,7 +2593,7 @@ function onKeyMenu(keyCode) { break; case KEY_8: if (menu == MainMenu && Restfulapiplugin) { - mainmenu.innerHTML = "

" + Lang[8] + "

"; + mainmenu.innerHTML = "

" + Lang[8] + "

"; timerID = 0; menu = 7; setTimeout("LoadSearchTimersServer();InitMenu(menu);",200); @@ -2786,7 +2690,7 @@ osdepginfo.style.opacity = 0; if(menu == 0) { // Main Menu MainMenu = 0; - var htmltext = "

" + Lang[9] + "\n ( " + Version + " )