diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html index 9a504a5..5cfefb2 100644 --- a/templates/index.html +++ b/templates/index.html | |||
@@ -24,8 +24,8 @@ | |||
24 | var map_width = {{plots[0].map.width}}; | 24 | var map_width = {{plots[0].map.width}}; |
25 | var map_height = {{plots[0].map.height}}; | 25 | var map_height = {{plots[0].map.height}}; |
26 | //These are the coordinates from bottom left | 26 | //These are the coordinates from bottom left |
27 | var center_point_x = {{plots[0].x}}; | 27 | var center_point_x = {{center_plot.x}}; |
28 | var center_point_y = {{plots[0].y}}; | 28 | var center_point_y = {{center_plot.y}}; |
29 | 29 | ||
30 | //Initialise the 'map' object | 30 | //Initialise the 'map' object |
31 | function init() | 31 | function init() |
@@ -77,8 +77,8 @@ | |||
77 | 77 | ||
78 | function emphasize() | 78 | function emphasize() |
79 | { | 79 | { |
80 | {% if (len(forges) > 0) %} | 80 | {% if details %} |
81 | var e = document.getElementById("{{forges[0].occupant_id}}_{{forges[0].plot_id}}"); | 81 | var e = document.getElementById("{{details.occupant_id}}_{{details.plot_id}}"); |
82 | if (e) | 82 | if (e) |
83 | { | 83 | { |
84 | e.setAttributeNS(null, "fill", "red"); | 84 | e.setAttributeNS(null, "fill", "red"); |
@@ -147,7 +147,7 @@ | |||
147 | </div> | 147 | </div> |
148 | {% else %} | 148 | {% else %} |
149 | <div id="result"> | 149 | <div id="result"> |
150 | Sorry, no match found. Please try to broaden your search by entering less in t he search field above. | 150 | Sorry, no match found. Please try to broaden your search by entering more in the search field above. |
151 | </div> | 151 | </div> |
152 | {% end %} | 152 | {% end %} |
153 | {% else %} | 153 | {% else %} |