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: "Face Pull", tags: [] },
|
||||||
{ name: "Machine Shoulder Press", tags: [] },
|
{ name: "Machine Shoulder Press", tags: [] },
|
||||||
{ name: "Dumbbell Shoulder Press", tags: [] },
|
{ name: "Dumbbell Shoulder Press", tags: [] },
|
||||||
|
{ name: "Side Lateral Raise", tags: [] },
|
||||||
{ name: "Machine Bench Press", tags: [] },
|
{ name: "Machine Bench Press", tags: [] },
|
||||||
{ name: "21s", tags: [] }
|
{ name: "21s", tags: [] }
|
||||||
];
|
];
|
@ -9,6 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<script src="exerciseTypes.js"></script>
|
<script src="exerciseTypes.js"></script>
|
||||||
<script src="repTypes.js"></script>
|
<script src="repTypes.js"></script>
|
||||||
|
<link href="style.css" rel="stylesheet" type="text/css">
|
||||||
<h1>Workout</h1>
|
<h1>Workout</h1>
|
||||||
<p>
|
<p>
|
||||||
Today's workout muscle group:
|
Today's workout muscle group:
|
||||||
|
21
main.js
21
main.js
@ -5,7 +5,7 @@ const exercisesString = localStorage.getItem("exercises");
|
|||||||
if (exercisesString != null) {
|
if (exercisesString != null) {
|
||||||
exercises = JSON.parse(exercisesString);
|
exercises = JSON.parse(exercisesString);
|
||||||
}
|
}
|
||||||
if (exercises[t] != null) {
|
if (exercises[t] == null) {
|
||||||
exercises[t] = [];
|
exercises[t] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,6 +147,25 @@ function loadPredefinedWorkouts() {
|
|||||||
{ exerciseType: "Biceps Curl", repetitionType: "pyramid", reps: "", weight: "" }
|
{ exerciseType: "Biceps Curl", repetitionType: "pyramid", reps: "", weight: "" }
|
||||||
];
|
];
|
||||||
break;
|
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:
|
default:
|
||||||
exercises[t] = [];
|
exercises[t] = [];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user