From cc89fe7809bc40882a3f89e6b9a35e943b868e8a Mon Sep 17 00:00:00 2001 From: thlo Date: Mon, 21 Jan 2013 22:11:22 +0100 Subject: Resume Support, Handle long file names, helpbar fix. --- smarttv-client/Javascript/Buttons.js | 173 +++++++++++ smarttv-client/Javascript/Display.js | 557 +++++++++++++++++++---------------- smarttv-client/Javascript/Helpbar.js | 11 +- smarttv-client/Javascript/Main.js | 99 +++++-- smarttv-client/Javascript/Options.js | 13 +- smarttv-client/Javascript/Player.js | 15 +- smarttv-client/Javascript/Server.js | 64 ++++ smarttv-client/config.xml | 2 +- smarttv-client/index.html | 9 +- 9 files changed, 644 insertions(+), 299 deletions(-) create mode 100644 smarttv-client/Javascript/Buttons.js (limited to 'smarttv-client') diff --git a/smarttv-client/Javascript/Buttons.js b/smarttv-client/Javascript/Buttons.js new file mode 100644 index 0000000..bec1155 --- /dev/null +++ b/smarttv-client/Javascript/Buttons.js @@ -0,0 +1,173 @@ +var Buttons = { + created: false, + btnSelected : 0, + btnMax : 1 +}; + +/* + * First: do just the buttons for play / resume + */ +Buttons.init = function (){ + if (this.created == false) { + Buttons.createButtons(); + $("#pr-popup").hide(); + this.created = true; + } +}; + +Buttons.show = function () { + Main.log("Buttons.show()"); + $("#pr-popup").show(); + $("#pr-popup-anchor").focus(); + + Buttons.reset (); +}; + + +Buttons.hide = function () { + $("#pr-popup").hide(); + $("#pr-popup-anchor").blur(); + Main.enableKeys(); +}; + +Buttons.createButtons= function () { + var p_width = $("body").outerWidth(); + var p_height = $("body").outerHeight(); + + var sheet = $("