f1vis/js/main.js

15 lines
437 B
JavaScript
Raw Normal View History

"use strict";
2017-11-16 23:08:14 +01:00
/*
* 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 = preprocessor.getResults().seasons;
for(var year in seasons) yearSelector.append("<option>" + year + "</option>");
2017-12-15 14:00:44 +01:00
createLineGraph("#lineGraphBox", processor.getRace(970));
});