From 2a05af3b60eb4fef4896e7c1417f56613a192dcc Mon Sep 17 00:00:00 2001 From: Alexander Willner Date: Mon, 11 Aug 2014 22:23:27 +0200 Subject: [PATCH 1/2] Support for hash url --- js/lodlive.app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/lodlive.app.js b/js/lodlive.app.js index 4cd64a2..6d7e2fa 100644 --- a/js/lodlive.app.js +++ b/js/lodlive.app.js @@ -24,6 +24,7 @@ $(function() { var nextSpeed = 500; var fadeSpeed = 100; var loca = $(location).attr('search'); + var hash = $(location).attr('hash'); if (loca) { $("#startPanel").remove(); $(".paginator").remove(); @@ -31,6 +32,7 @@ $(function() { $("#lang").remove(); $('body').append('
'); var res = $.trim(loca.substring(loca.indexOf("?") + 1)); + if (hash) res += hash; res = res.replace(/%2F/g, '/'); res = res.replace(/%3A/g, ':'); res = res.replace(/%23/g, '#'); From 2423ab3ab46266fee870f75f7860f37903c8e46b Mon Sep 17 00:00:00 2001 From: Alexander Willner Date: Tue, 19 Aug 2014 23:13:59 +0200 Subject: [PATCH 2/2] fixing encoding issue --- js/lodlive.core.js | 2 +- js/lodlive.custom-lines.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/lodlive.core.js b/js/lodlive.core.js index 807873c..0f4ed56 100644 --- a/js/lodlive.core.js +++ b/js/lodlive.core.js @@ -3070,7 +3070,7 @@ var debugOn = false; strokeStyle : "#606060", x : (x2bis + x1 + ((x1 + 60) > x2 ? -60 : +60)) / 2, y : (y1 + y1 - ((x1 + 60) > x2 ? 18 : -18)) / 2, - text : ((x1 + 60) > x2 ? " « " : "") + label + ((x1 + 60) > x2 ? "" : " » "), + text : ((x1 + 60) > x2 ? " « " : "") + label + ((x1 + 60) > x2 ? "" : " » "), align : "center", strokeWidth : 0.01, fontSize : 11, diff --git a/js/lodlive.custom-lines.js b/js/lodlive.custom-lines.js index a62abd8..dd29091 100644 --- a/js/lodlive.custom-lines.js +++ b/js/lodlive.custom-lines.js @@ -34,7 +34,7 @@ strokeStyle : "#000", x : (x2bis + x1 + ((x1 + 60) > x2 ? -60 : +60)) / 2, y : (y1 + y1 - ((x1 + 60) > x2 ? 18 : -18)) / 2, - text : ((x1 + 60) > x2 ? " « " : "") + label + ((x1 + 60) > x2 ? "" : " » "), + text : ((x1 + 60) > x2 ? " « " : "") + label + ((x1 + 60) > x2 ? "" : " » "), align : "center", strokeWidth : 0.01, fontSize : 11,