diff --git a/js/util.js b/js/util.js index 2e8e435..e62fb32 100644 --- a/js/util.js +++ b/js/util.js @@ -150,12 +150,16 @@ function getImageFromWikipedia(data,pageName,imagesize,callback){ function renderRaceInfoBox(race) { var raceInfo = race.raceInfo; + var circuit = preprocessor.getResults().circuits[raceInfo.circuitId]; //console.log(raceInfo); var content = ""; content = "

"+raceInfo.name+"

"; - content += "
"+raceInfo.date.toLocaleDateString("de-DE")+"
"; - content += "See on Wikipedia"; - + content += "
"+circuit.name+" ("+circuit.location+", "+circuit.country+")
"; + content += "
"+raceInfo.date.toLocaleDateString("de-DE")+"
" + content += "
"; + content += "See Race on Wikipedia "; + content += "See Circuit on Wikipedia"; + content += "
"; return content; }