From ebf98c263ce69d2dd7c72e47ba823071273ba260 Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 26 Apr 2017 09:19:13 +0200 Subject: [PATCH] Update orbiters' title. --- web/view/home.html.jinja2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/view/home.html.jinja2 b/web/view/home.html.jinja2 index 8736fef..cd90f58 100755 --- a/web/view/home.html.jinja2 +++ b/web/view/home.html.jinja2 @@ -11,9 +11,9 @@ Orbiters
- Jupiter - Earth (locked) - Mars (locked) + Jupiter + Earth (locked) + Mars (locked)


@@ -175,15 +175,17 @@ jQuery().ready(function($){ }; ts.options['onMouseMove'] = function(t) { timeSeries.forEach(function(ts2){ ts2.moveCursor(t); }); + if (orbits != null) orbits.moveToDate(t); }; }); }); d3.csv('{{ url_for('get_astral_coordinates_csv') }}', function(csv){ + var timeFormat = d3.timeParse('%Y-%m-%dT%H:%M:%S%Z'); var data = []; csv.forEach(function (d) { - data.push({x: parseFloat(d['x_hci']), y: parseFloat(d['y_hci'])}); + data.push({t: timeFormat(d['time']), x: parseFloat(d['x_hci']), y: parseFloat(d['y_hci'])}); }); orbits = new Orbits(orbiters, data, '#orbits'); -- libgit2 0.21.2