diff --git a/js/preprocessor.js b/js/preprocessor.js
index 14902ca..fa6664d 100644
--- a/js/preprocessor.js
+++ b/js/preprocessor.js
@@ -21,7 +21,8 @@ var preprocessor = {
qualifying: null,
races: null,
results: null,
- seasons: null
+ seasons: null,
+ status: null
},
// data/circuits.csv
diff --git a/js/util.js b/js/util.js
index 2efafa4..a3da7bb 100644
--- a/js/util.js
+++ b/js/util.js
@@ -168,7 +168,7 @@ function renderRaceInfoBox(race) {
function renderDriverInfoBox(race) {
var raceInfo = race.raceInfo;
var drivers = race.drivers;
-
+ var statusData = preprocessor.getResults().status
// Assign results to drivers
for(var ri in race.results) {
var driverResult = race.results[ri];
@@ -189,6 +189,8 @@ function renderDriverInfoBox(race) {
content += "
Rank | ";
content += "Code | ";
content += "Points | ";
+ content += "Fastest Lap Speed | ";
+ content += "Status | ";
content += "Forename | ";
content += "Surname | ";
content += "Nationality | ";
@@ -205,12 +207,16 @@ function renderDriverInfoBox(race) {
if(isNaN(driver.position)) {
driver.position = "-/-";
}
-
- console.log(driver);
+ driver.sortableRank = driver.rank;
+ if(driver.sortableRank < 1) driver.sortableRank = 999;
+ if(isNaN(driver.fastestLapSpeed)) driver.fastestLapSpeed = 0;
+ //console.log(driver);
content += "";
- content += ""+driver.rank+" | ";
+ content += ""+driver.rank+" | ";
content += ""+driver.code+" | ";
content += ""+driver.points+" | ";
+ content += ""+driver.fastestLapSpeed+" | ";
+ content += ""+statusData[driver.statusId].status+" | ";
content += ""+driver.forename+" | ";
content += ""+driver.surname+" | ";
content += ""+driver.nationality+" | ";