Compare commits

...

2 Commits

Author SHA1 Message Date
Jesko Dujmovic
82ef901b9d Merge branch 'main' of https://git.leafbla.de/Jesko/workout-basic into main
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-20 09:10:44 +02:00
Jesko Dujmovic
e69b7df319 Fix empty days & add workouts 2021-10-20 09:10:41 +02:00
4 changed files with 25 additions and 1 deletions

View File

@ -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: [] }
]; ];

View File

@ -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
View File

@ -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;

3
style.css Normal file
View File

@ -0,0 +1,3 @@
body {
font-size: larger;
}