,

Day 35: Metric to Imperial Converter

Today I decided to update my Imperial to Metric Converter to allow for Metric to Imperial conversions. I did this by creating a variable that is toggled when the Metric to Imperial (or Imperial to Metric) button is pressed. This variable is used to check whether the math should be imperial to metric or metric to imperial.

I decided to update my past converter, so users wouldn’t need to go to two separate pages. I also changed the CSS a bit to make it work for either conversion. The page can be found on by GitHub or here: https://zidri.github.io/ImperialMetricConvert/.