Skip to content

Commit

Permalink
Merge pull request #12 from AlexanderWillner/master
Browse files Browse the repository at this point in the history
Support for hash url #9
  • Loading branch information
dvcama committed Nov 11, 2014
2 parents ff5fc3f + 2423ab3 commit f5ab74a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions js/lodlive.app.js
Expand Up @@ -24,13 +24,15 @@ $(function() {
var nextSpeed = 500;
var fadeSpeed = 100;
var loca = $(location).attr('search');
var hash = $(location).attr('hash');
if (loca) {
$("#startPanel").remove();
$(".paginator").remove();
$("#footer").remove();
$("#lang").remove();
$('body').append('<div id="aSpace"></div>');
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, '#');
Expand Down
2 changes: 1 addition & 1 deletion js/lodlive.core.js
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion js/lodlive.custom-lines.js
Expand Up @@ -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,
Expand Down

0 comments on commit f5ab74a

Please sign in to comment.