joshuanianji / hiit-timer Goto Github PK
View Code? Open in Web Editor NEWA simple, mobile-friendly app for to time HIIT workouts, and any other workout as well!
Home Page: https://joshuaji.com/HIIT-Timer/
A simple, mobile-friendly app for to time HIIT workouts, and any other workout as well!
Home Page: https://joshuaji.com/HIIT-Timer/
Make the desktop look less crappy lol
This helps when dad is exercising so he can prepare
to ensure backward compatibility with the coming 2.0 update, an export function is required.
It'll be cool to have an option for the website to speak out the exercises as you work out.
You'll probably not be looking at the screen lol.
I have to restrict the size of the sets i guess, or else it'll result in a Maximum Call Stack Size Exceeded
error. This is because I use List.repeat rip.
Per the note in the Html.Lazy documentation, lazy functions are best used "on repeated structures where each individual item changes infrequently." This is basically what I have!
Slowness is really prevalent when the user has ~1000 exercises in a set, and though this is not practical, using lazy functions would still speed it up a bit.
I think I've gotten pretty good at routing and stuff in elm; I think routing will make this app a lot better since the back button can work to go back. It can also set the ground for the more complex application that might happen later on
Using the app on (I believe) any iOS device messes up the inputs for some strange reason. Some keyboard inputs don't get registered, you can't unfocus an input when you focus it, unless you click on another input, it seems laggy and altogether unusable.
I'll need to look into this and conduct more tests but on dad's iPad and iPhone it's pretty crappy. Android devices seem to be alright, though.
Per the Protip #3 in this article, iOS apparently does not have the "add to home screen" popup like in android. I should do it because most of my family uses Apple.
Add a bunch of minor adjustments that may change the code up a bit
The total time algorithm should not rely on duplicating for repeating sets, then adding them using foldl
. I already have a multiply function in the Duration.elm
module which I should use more often.
Originally posted by @joshuanianji in #4 (comment)
I want to follow a Chris Heria workout routine, and there isn't a time limit to some of them, especially with exercises like reps. A toggle for a timer and a "number of reps" would be nice. The button would just say "done" in that case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.