A simple static web app to guide you through a 5-10 minute workout.
Presents 6 random excercises (from a total of 24 - more coming soon). 30 second excercise intervals punctuated with 12 second rests periods.
Deployed to Azure
Click the Start button and follow the directions.
Planned features:
- modularize/organize the javascript a bit better
- store the excercises elsewhere and fetch them via api/AJAX call on initial page load
- maybe in a google sheet? somewhere that can be read-only but doesn't require a secret to access...
Uses:
- The aptly named EasyTimer
- Bootstrap 5
- Modern browser's CORS restrictions treat module-typed scripts with a file-system-ish
srcvalue as coming from a different origin. This means that when working locally you can no longer just open index.html in your browser and have everything work. You have to have a local web server. I use the VS Code extension "Live Preview" from Microsoft. It allows you to point your browser at http://127.0.0.1:3000/src/index.html ... and everything works.