diff --git a/exerciseTypes.js b/exerciseTypes.js index e436846..543d1c2 100644 --- a/exerciseTypes.js +++ b/exerciseTypes.js @@ -29,6 +29,7 @@ var exerciseTypes = [ { name: "Face Pull", tags: [] }, { name: "Machine Shoulder Press", tags: [] }, { name: "Dumbbell Shoulder Press", tags: [] }, + { name: "Side Lateral Raise", tags: [] }, { name: "Machine Bench Press", tags: [] }, { name: "21s", tags: [] } ]; \ No newline at end of file diff --git a/index.html b/index.html index 06fb246..c66038d 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ +

Workout

Today's workout muscle group: diff --git a/main.js b/main.js index 104d536..94cb52f 100644 --- a/main.js +++ b/main.js @@ -5,7 +5,7 @@ const exercisesString = localStorage.getItem("exercises"); if (exercisesString != null) { exercises = JSON.parse(exercisesString); } -if (exercises[t] != null) { +if (exercises[t] == null) { exercises[t] = []; } @@ -147,6 +147,25 @@ function loadPredefinedWorkouts() { { exerciseType: "Biceps Curl", repetitionType: "pyramid", reps: "", weight: "" } ]; break; + case ("leg", "strength-endurance"): + exercises[t] = [ + { exerciseType: "Leg Press", repetitionType: "5-8", reps: "", weight: "" }, + { exerciseType: "Squat", repetitionType: "8-12", reps: "", weight: "" }, + { exerciseType: "Leg Extension", repetitionType: "12-15", reps: "", weight: "" }, + { exerciseType: "Leg Curl", repetitionType: "15-20", reps: "", weight: "" }, + { exerciseType: "Standing Calf Raises", repetitionType: "8-12", reps: "", weight: "" } + ]; + break; + case ("chest-triceps", "strength-endurance"): + exercises[t] = [ + { exerciseType: "Bench Press", repetitionType: "3-5", reps: "", weight: "" }, + { exerciseType: "Incline Bench Press", repetitionType: "5-8", reps: "", weight: "" }, + { exerciseType: "Machine Shoulder Press", repetitionType: "8-12", reps: "", weight: "" }, + { exerciseType: "Butterfly", repetitionType: "12-15", reps: "", weight: "" }, + { exerciseType: "Side Lateral Raise", repetitionType: "5-8", reps: "", weight: "" }, + { exerciseType: "Cable Triceps", repetitionType: "3-5", reps: "", weight: "" } + ]; + break; default: exercises[t] = []; break; diff --git a/style.css b/style.css new file mode 100644 index 0000000..ead46bf --- /dev/null +++ b/style.css @@ -0,0 +1,3 @@ +body { + font-size: larger; +} \ No newline at end of file