Skip to content
Permalink
Browse files

add {{BASE_URL}}, cf #22

  • Loading branch information...
ocourtin committed Mar 14, 2019
1 parent 9e88336 commit cf890803f57c9779251a4a40137a7ef0485e87c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 robosat_pink/tools/templates/compare.html
@@ -30,7 +30,7 @@
x.send(null);
}
function display_img(xyz)
{ document.getElementById("main").innerHTML = "<img id='image' src='" + xyz.path() + ".{{ext}}' />";
{ document.getElementById("main").innerHTML = "<img id='image' src='{{base_url}}/" + xyz.path() + ".{{ext}}' />";
var style = "position:absolute; width:auto; height:auto; margin:auto; top:0; bottom:0; left:0; right:0; "
+ "vertical-align:middle; max-width:100%; max-height:100%";
document.getElementById("image").style = style;

0 comments on commit cf89080

Please sign in to comment.
You can’t perform that action at this time.