f1vis/js/main.js
Marcel 312aa854ac - (temporarily) disabled the loading window (until it's working properly..)
- 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
2017-12-17 10:38:48 +01:00

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));
});