--- a/src/main/resources/templates/index.html Thu Aug 25 13:58:35 2011 -0400
+++ b/src/main/resources/templates/index.html Thu Aug 25 13:59:30 2011 -0400
@@ -18,36 +18,12 @@
function init() {
// get list of workouts
var workouts = getWorkouts();
- // reorder ??
-
// update History section
updateHistory(workouts);
-
// create map
OLMap.createMap();
-
// show results for last workout
- // add gpx layer
- // recenter (based on json events)
- // update stats
-
-
- var workoutJson = Util.requestJSON('Jun-26-11.json');
-
-
- // testing purposes
- OLMap.addTrail("Jun-26-11.gpx","blue");
- OLMap.addTrail("Aug-10-11.gpx","red");
-
- //console.log(OLMap.map.layers);
-
- OLMap.centerMap(workoutJson.events);
-
- //OLMap.clearMap();
-
- var graph = new Graph();
- graph.init();
- graph.drawSpeedGraph(workoutJson);
+ showResult(workouts[0]);
}
</script>