changed look of route description header area
This commit is contained in:
parent
d453cadc8c
commit
441146eeae
@ -181,14 +181,14 @@ function showRouteDescription(response) {
|
|||||||
route_desc += '</table>';
|
route_desc += '</table>';
|
||||||
headline = "";
|
headline = "";
|
||||||
headline += OSRM.loc("ROUTE_DESCRIPTION")+":<br>";
|
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'>"
|
headline += "<span class='route-summary'>"
|
||||||
+ OSRM.loc("DISTANCE")+": " + getDistanceWithUnit(response.route_summary.total_distance)
|
+ OSRM.loc("DISTANCE")+": " + getDistanceWithUnit(response.route_summary.total_distance)
|
||||||
+ " - "
|
+ "<br>"
|
||||||
+ OSRM.loc("DURATION")+": " + secondsToTime(response.route_summary.total_time)
|
+ OSRM.loc("DURATION")+": " + secondsToTime(response.route_summary.total_time)
|
||||||
+ "</span>";
|
+ "</span>";
|
||||||
headline += '</div>';
|
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 = "";
|
var output = "";
|
||||||
output += route_desc;
|
output += route_desc;
|
||||||
|
@ -39,7 +39,7 @@ function secondsToTime(seconds){
|
|||||||
return minutes + ' ' + 'min';
|
return minutes + ' ' + 'min';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
return hours + ' ' + 'h' + ' ' + minutes + ' ' + 'min';
|
return hours + ' ' + 'h' + ' ' + minutes + ' ' + 'min';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user