Strength and Conditioning Tracker

Strength and Conditioning Tracker

Log your workouts and track your progress over time with this interactive tool.

Log Your Workout



Progress Over Time

Workout History

Exercise Reps Weight (lbs) Notes Date
function saveWorkoutToDatabase(workout) { fetch('/saveWorkout', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(workout), }) .then(response => response.json()) .then(data => { console.log('Workout saved:', data); }) .catch(error => { console.error('Error saving workout:', error); }); } function logWorkout() { const exercise = document.getElementById('exercise').value.trim(); const reps = parseInt(document.getElementById('reps').value); const weight = parseInt(document.getElementById('weight').value); if (!exercise || isNaN(reps) || isNaN(weight)) { alert('Please fill out all fields correctly.'); return; } const date = new Date().toLocaleDateString(); const workout = { exercise, reps, weight, date }; workouts.push(workout); if (!progressData[exercise]) { progressData[exercise] = []; } progressData[exercise].push({ reps, weight, date }); addToTable(exercise, reps, weight, date); document.getElementById('workoutForm').reset(); // Save workout to the backend saveWorkoutToDatabase(workout); }