Fix empty days & add workouts
This commit is contained in:
parent
dfdb88ec54
commit
e69b7df319
@ -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: [] }
|
||||
];
|
@ -9,6 +9,7 @@
|
||||
<body>
|
||||
<script src="exerciseTypes.js"></script>
|
||||
<script src="repTypes.js"></script>
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<h1>Workout</h1>
|
||||
<p>
|
||||
Today's workout muscle group:
|
||||
|
21
main.js
21
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;
|
||||
|
Loading…
Reference in New Issue
Block a user