From 611fd0079284be330812e9eb44a43304c42387fe Mon Sep 17 00:00:00 2001 From: thlo Date: Tue, 27 Aug 2013 22:08:08 +0200 Subject: New Overlay Menu for RecCmd Handling Make YouTube entry optional (Select Screen option is configurable through widget.conf) First 3D iter function for 3D TVs and 3D BDs. --- smarttv-client/Javascript/OverlayMenu.js | 202 +++++++++++++++++++++++++++---- 1 file changed, 180 insertions(+), 22 deletions(-) (limited to 'smarttv-client/Javascript/OverlayMenu.js') diff --git a/smarttv-client/Javascript/OverlayMenu.js b/smarttv-client/Javascript/OverlayMenu.js index 14d237a..64a7eba 100644 --- a/smarttv-client/Javascript/OverlayMenu.js +++ b/smarttv-client/Javascript/OverlayMenu.js @@ -1,21 +1,18 @@ var OverlayMenu = { - menu : [] + menu : [], + scrollDur : 300, + scrollFlip : 100 }; OverlayMenu.init = function () { - // initiate the overlay menue - - // should get an Array with Title and Command as input -// OverlayMenu.menu.push ({title: "Teefax", func : undefined}); -// OverlayMenu.menu.push ({title: "Verleihnix", func : undefined}); - + // initiate the overlay menu OverlayMenu.createStyleSheet(); - this.elmName = "#olm-"; this.masterElm = "#overlayMenu"; this.inputElm = "#overlayMenu-anchor"; this.btnSelected = 0; + this.scrolling = false; var elem = document.getElementById('overlayMenu-anchor'); elem.setAttribute('onkeydown', 'OverlayMenu.onInput();'); @@ -26,14 +23,16 @@ OverlayMenu.init = function () { OverlayMenu.show = function() { Main.log("***** OverlayMenu.show *****"); + this.scrolling = false; OverlayMenu.createMenu(); // this.menuHandler.show(); Main.log("OverlayMenu.show(): masterElm= " +this.masterElm + " inputElm= " + this.inputElm); $(this.masterElm).show(); + OverlayMenu.tuneMenu(); + $(this.inputElm).focus(); this.reset (); - }; OverlayMenu.hide = function() { @@ -50,7 +49,7 @@ OverlayMenu.createStyleSheet = function () { var sheet = $("