CoolFace
Apppublic

bob21b/calisthenics-flow-master

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
script.js33 linesDownload Raw Back to root
1// Initialize the app2document.addEventListener('DOMContentLoaded', () => {3  console.log('Calisthenics Flow Master app loaded');4  5  // Smooth scrolling for anchor links6  document.querySelectorAll('a[href^="#"]').forEach(anchor => {7    anchor.addEventListener('click', function (e) {8      e.preventDefault();9      document.querySelector(this.getAttribute('href')).scrollIntoView({10        behavior: 'smooth'11      });12    });13  });14});15 16// Exercise database17const exercises = {18  push: [19    { name: "Push-ups", difficulty: "Beginner", progressions: ["Knee Push-ups", "Regular Push-ups", "Decline Push-ups", "Archer Push-ups", "One-arm Push-ups"] },20    { name: "Dips", difficulty: "Intermediate", progressions: ["Bench Dips", "Parallel Bar Dips", "Ring Dips", "Weighted Dips"] },21    { name: "Handstand Push-ups", difficulty: "Advanced", progressions: ["Wall Handstand Hold", "Pike Push-ups", "Wall-assisted HSPU", "Freestanding HSPU"] }22  ],23  pull: [24    { name: "Pull-ups", difficulty: "Intermediate", progressions: ["Scapular Pulls", "Negative Pull-ups", "Chin-ups", "Pull-ups", "Weighted Pull-ups"] },25    { name: "Rows", difficulty: "Beginner", progressions: ["Inverted Rows", "Feet Elevated Rows", "Tuck Front Lever Rows", "Advanced Front Lever Rows"] },26    { name: "Front Lever", difficulty: "Advanced", progressions: ["Tuck Front Lever", "Advanced Tuck", "One-leg Front Lever", "Full Front Lever"] }27  ],28  legs: [29    { name: "Squats", difficulty: "Beginner", progressions: ["Assisted Squats", "Bodyweight Squats", "Pistol Squats", "Jump Squats"] },30    { name: "Lunges", difficulty: "Beginner", progressions: ["Static Lunges", "Walking Lunges", "Jumping Lunges"] },31    { name: "Nordic Curls", difficulty: "Advanced", progressions: ["Glute Bridge", "Negative Nordic Curls", "Full Nordic Curls"] }32  ]33};