changed look of route description header area

This commit is contained in:
DennisSchiefer 2012-03-15 17:42:17 +01:00
parent d453cadc8c
commit 441146eeae
2 changed files with 4 additions and 4 deletions

View File

@ -181,14 +181,14 @@ function showRouteDescription(response) {
route_desc += '</table>';
headline = "";
headline += OSRM.loc("ROUTE_DESCRIPTION")+":<br>";
headline += '<div style="float:left;width:50%">';
headline += '<div style="float:left;width:40%">';
headline += "<span class='route-summary'>"
+ OSRM.loc("DISTANCE")+": " + getDistanceWithUnit(response.route_summary.total_distance)
+ " - "
+ "<br>"
+ OSRM.loc("DURATION")+": " + secondsToTime(response.route_summary.total_time)
+ "</span>";
headline += '</div>';
headline += '<div style="float:left;text-align:right;width:50%;">'+route_link+'<br>'+gpx_link+'</div>';
headline += '<div style="float:left;text-align:right;width:60%;">'+route_link+'<br>'+gpx_link+'</div>';
var output = "";
output += route_desc;

View File

@ -39,7 +39,7 @@ function secondsToTime(seconds){
return minutes + '&nbsp;' + 'min';
}
else{
return hours + '&nbsp' + 'h' + '&nbsp;' + minutes + '&nbsp;' + 'min';
return hours + '&nbsp;' + 'h' + '&nbsp;' + minutes + '&nbsp;' + 'min';
}
}