The Exercise Routine App was born out of a personal need, intending to streamline exercise routines. Its primary goals include precise time control for each exercise, voice guidance, visual aids for exercises, and easy routine customization.
Developed entirely with vanilla JavaScript and CSS, this project presented challenges in asynchronous coding and working without a framework. Navigating public domain image usage and creating structured JSON files for routines added complexity. Despite the initial hurdles, the app now functions seamlessly.
Built using pure vanilla JavaScript and CSS, the Exercise Routine App showcases the possibilities of fundamental web technologies.
Asynchronous coding techniques were employed to orchestrate the app's functionality, ensuring a smooth user experience during exercises.
The app allows effortless customization of exercise routines. By modifying the "Rutinas.txt" JSON file, users can create and tailor routines to their specific needs.
To use the app:
- Download the entire project.
- Open the "index.html" file in your preferred web browser.
- Customize routines by modifying the "Rutinas.txt" JSON file using the provided structure.
The app presents a user-friendly menu for creating and customizing exercise routines.
Two default routines, labeled 1 and 2, are included to provide users with a starting point.
Users can easily add new routines by extending the "Rutinas.txt" JSON file with a new array structure.
Employing the Web Speech API, the app offers voice guidance, ensuring users stay informed about each exercise without needing to glance at the screen.
To enhance the user experience, a "NoSleep" library is integrated, preventing device shutdown during app use.
The app leverages the Web Speech API to provide audible exercise information, making the experience more immersive.
Integration of the NoSleep library ensures uninterrupted app use, crucial for maintaining exercise routines.
Upon opening the Exercise Routine App, users are greeted with a user-friendly menu. Here's how the app flows during routine execution:
-
Routine Selection:
-
Initiating the Routine:
- Clicking the "Empezar" button initiates the selected routine.
-
Exercise Information Display:
-
Time Management and Voice Guidance:
-
Routine Completion:
Explore the Web Speech API documentation for more details on its implementation.