started moving content to corretn divs

This commit is contained in:
2013-01-26 17:00:58 -05:00
parent 4f234b5450
commit 905b3258fb
107 changed files with 31860 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
var async = require('async');
function MuscleArray(workout) {
var dArray = [];
var sumArray = [0,0,0,0,0,0,0,0,0,0,0,0,0,0];
async.forEachSeries(workout.elements, function(exercise,callback){
var i = workout.elements.indexOf(exercise);
dArray[i] = exercise.exerciseID.musclearray;
callback();
},
function(err){
//
});
dArray.forEach(function(item,index) {
for(var i = 0; i < 6; i++) {
//var calculatedValue = dArray[index][i] * dArray[index][15]
var calculatedValue = dArray[index][i];
sumArray[i] = calculatedValue + sumArray[i] + 0;
}
});
return sumArray;
}
module.exports = MuscleArray;