diff options
author | thlo <smarttv640@gmail.com> | 2013-03-04 20:23:39 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-03-04 20:23:39 +0100 |
commit | b788b9e2c84856f9d332bb5fd3f1fc4c87713850 (patch) | |
tree | 36cd5d89d526b86554fa61c9aa815d85c366b510 /smarttv-client | |
parent | 026e7f57858e873f2f81ecd6c3fbe1ee0f0d7203 (diff) | |
download | vdr-plugin-smarttvweb-b788b9e2c84856f9d332bb5fd3f1fc4c87713850.tar.gz vdr-plugin-smarttvweb-b788b9e2c84856f9d332bb5fd3f1fc4c87713850.tar.bz2 |
Bug fix for Direct Live Channel Access.
Diffstat (limited to 'smarttv-client')
-rw-r--r-- | smarttv-client/Javascript/DirectAccess.js | 72 | ||||
-rwxr-xr-x | smarttv-client/Javascript/Display.js | 4 |
2 files changed, 46 insertions, 30 deletions
diff --git a/smarttv-client/Javascript/DirectAccess.js b/smarttv-client/Javascript/DirectAccess.js index 73d9fdf..418a5c6 100644 --- a/smarttv-client/Javascript/DirectAccess.js +++ b/smarttv-client/Javascript/DirectAccess.js @@ -97,7 +97,8 @@ DirectAccess.hide = function () { window.clearTimeout(DirectAccess.timeoutObj);
DirectAccess.timeoutObj = null;
};
- $("#directAccessAnchor").val("");
+// $("#directAccessAnchor").val("");
+ $("#directAccessText").text("");
$("#directChanAccess").hide();
$("#directAccessAnchor").blur();
@@ -129,8 +130,10 @@ DirectAccess.cancel = function () { };
DirectAccess.handleEnter = function () {
- Main.log("DirectAccess.handleEnter val= " +$("#directAccessAnchor").val() );
- DirectAccess.selectNewChannel($("#directAccessAnchor").val());
+// Main.log("DirectAccess.handleEnter val= " +$("#directAccessAnchor").val() );
+// DirectAccess.selectNewChannel($("#directAccessAnchor").val());
+ Main.log("DirectAccess.handleEnter val= " +$("#directAccessText").text() );
+ DirectAccess.selectNewChannel($("#directAccessText").text());
DirectAccess.hide();
// find entry according to number
@@ -140,12 +143,13 @@ DirectAccess.createStyleSheet = function () { var sheet = $("<style>");
sheet.attr({type : 'text/css',
innerHTML : '\
- #directChanAccess { left: 70%; top: 10px; width:10%; height: 10%; position: absolute; \
+ #directChanAccess { left: 87%; top: 10px; width:8%; height: 10%; position: absolute; \
text-align:center; \
background:rgba(0,0,139, 0.8);\
border-width:1px;border-style:solid;border-width:1px;border-radius:15px;\
-webkit-box-shadow:3px 3px 7px 4px rgba(0,0,0, 0.5);z-index:15;}\
#directAccessAnchor {background-color:transparent;text-align: right;font-size:20px}\
+ #directAccessText {background-color:transparent;text-align: right;font-size:20px}\
'});
$('body').append(sheet);
@@ -154,54 +158,62 @@ DirectAccess.createStyleSheet = function () { DirectAccess.onInput = function () {
var keyCode = event.keyCode;
var input ="";
- if (input.length == 4)
- input= $("#directAccessAnchor").val().slice(1);
- else
- input= $("#directAccessAnchor").val();
+// if (input.length == 4) {
+// Main.log("DirectAccess.onInput: len= " + $("#directAccessText").text().length );
+
+ if ($("#directAccessText").text().length == 4) {
+// input= $("#directAccessAnchor").val().slice(1);
+ input= $("#directAccessText").text().slice(1);
+ }
+ else {
+// input= $("#directAccessAnchor").val();
+ input= $("#directAccessText").text();
+ }
// $("#directAccessAnchor").val(input.slice(1));
- Main.log("DirectAccess.onInput: " + keyCode + " Val= " + $("#directAccessAnchor").val());
+// Main.log("DirectAccess.onInput: " + keyCode + " Val= " + $("#directAccessAnchor").val());
+// Main.log("DirectAccess.onInput: " + keyCode + " Val= " + $("#directAccessText").text() + " input.length= " + input.length);
DirectAccess.extendTimer();
switch(keyCode) {
case tvKey.KEY_0:
- $("#directAccessAnchor").val(input + "0");
- widgetAPI.blockNavigation(event);
-
+// $("#directAccessAnchor").val(input + "0");
+ $("#directAccessText").text(input + "0");
break;
case tvKey.KEY_1:
- $("#directAccessAnchor").val(input + "1");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "1");
+ $("#directAccessText").text(input + "1");
break;
case tvKey.KEY_2:
- $("#directAccessAnchor").val(input + "2");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "2");
+ $("#directAccessText").text(input + "2");
break;
case tvKey.KEY_3:
- $("#directAccessAnchor").val(input + "3");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "3");
+ $("#directAccessText").text(input + "3");
break;
case tvKey.KEY_4:
- $("#directAccessAnchor").val(input + "4");
+// $("#directAccessAnchor").val(input + "4");
+ $("#directAccessText").text(input + "4");
widgetAPI.blockNavigation(event);
break;
case tvKey.KEY_5:
- $("#directAccessAnchor").val(input + "5");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "5");
+ $("#directAccessText").text(input + "5");
break;
case tvKey.KEY_6:
- $("#directAccessAnchor").val(input + "6");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "6");
+ $("#directAccessText").text(input + "6");
break;
case tvKey.KEY_7:
- $("#directAccessAnchor").val(input + "7");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "7");
+ $("#directAccessText").text(input + "7");
break;
case tvKey.KEY_8:
- $("#directAccessAnchor").val(input + "8");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "8");
+ $("#directAccessText").text(input + "8");
break;
case tvKey.KEY_9:
- $("#directAccessAnchor").val(input + "9");
- widgetAPI.blockNavigation(event);
+// $("#directAccessAnchor").val(input + "9");
+ $("#directAccessText").text(input + "9");
break;
case tvKey.KEY_ENTER:
//Search channel
@@ -213,8 +225,8 @@ DirectAccess.onInput = function () { DirectAccess.hide();
if (this.returnCallback != null)
this.returnCallback();
- widgetAPI.blockNavigation(event);
break;
};
+ Main.log("DirectAccess.onInput: input= " + $("#directAccessText").text());
widgetAPI.blockNavigation(event);
};
\ No newline at end of file diff --git a/smarttv-client/Javascript/Display.js b/smarttv-client/Javascript/Display.js index c3df32f..8d10024 100755 --- a/smarttv-client/Javascript/Display.js +++ b/smarttv-client/Javascript/Display.js @@ -261,6 +261,10 @@ Display.tuneLeftSide = function() { res.w3 = "5%";
switch (Main.state) {
case Main.eLIVE:
+ res.w1 = "10%";
+ res.w2 = "80%";
+ res.w3 = "5%";
+ break;
case Main.eMED:
res.w1 = "5%";
res.w2 = "85%";
|