312aa854ac
- changed the dimensons of the diagram. Now all mouseover text fit in - Only show years with lapData. - return arrays instead of objects in the preprocessor for the races and seaons
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
"use strict";
|
|
|
|
/*
|
|
* This file contains the main control flow.
|
|
*/
|
|
|
|
preprocessor.load(function(data) {
|
|
// Some sample code for a year selector - TODO: Improve a lot and move somewhere else
|
|
var yearSelector = $("#seasonByYearSelector");
|
|
var seasons = processor.getSeasonsWithLapData();
|
|
for(var season in seasons){ yearSelector.append("<option>" + seasons[season].year + "</option>"); }
|
|
|
|
createLineGraph("#lineGraphBox", processor.getRace(970));
|
|
});
|