BMI Calculator needs option to switch to imperial
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I have this BMI Counter as a fiddle:
https://jsfiddle.net/BS_UK/szxeu85h/2/

I need a checkbox, and when checked, the calculation turns to British (UK) imperial (instead of metric).
Any existing entered values should switch to their imperial equivalent, and the BMI calculation should always be correct according to imperial measures.
Unchecking the checkbox should toggle everything back to it's current metric functionality.
Ideally, the text (next to the input fields) should also adjust accordingly (though this isn't essential).

Jquery or standard JS is fine.
The solution can be returned back as a jsfiddle also.

Many thanks for anyone willing to take on the challenge!

Crowdsource coding tasks.

2 Solutions


same as comment on vladmir's I just forgot how bountify works
link: https://jsfiddle.net/pcklrchrd/adk4efxv/2/

Hey! Thanks, but that behaves very strangely.. Just typing in numbers into the boxes causes some odd behaviour where the values are instantly replaced with random numbers as you type! :P
BSUK 10 months ago
I'd have to check that out, I just threw it together quick
chonker_chonks 10 months ago
I'd have to check that out, I just threw it together quick it works with the up and down arrows for now, I'm working on fixing the typing now
chonker_chonks 10 months ago
View Timeline