Add button to view circuit on google maps

This commit is contained in:
Jan Philipp Timme 2017-12-30 11:31:54 +01:00
parent 3878852a84
commit 48d30e72b8

View File

@ -160,6 +160,7 @@ function renderRaceInfoBox(race) {
content += "<div class=\"text-right\">";
content += "<a class=\"btn btn-primary\" target=\"_blank\" href=\""+raceInfo.url+"\" role=\"button\">See Race on Wikipedia</a> ";
content += "<a class=\"btn btn-primary\" target=\"_blank\" href=\""+circuit.url+"\" role=\"button\">See Circuit on Wikipedia</a> ";
content += "<a class=\"btn btn-primary\" target=\"_blank\" href=\"https://www.google.com/maps/?q="+circuit.lat+","+circuit.lng+"\" role=\"button\">See Circuit on GoogleMaps</a>";
content += "</div>";
return content;
}