~ cleaned
authortgambet
Thu, 25 Aug 2011 13:59:30 -0400
changeset 78 895fee8d36f2
parent 77 c87c1cec6651
child 80 399b81b86b08
~ cleaned
src/main/resources/templates/index.html
--- 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>