Aspect Ratio Calculator

Why? I threw this together for two reasons: Aspect ratio is tedious to calculate by hand. I wanted to try using CodePen. Tedium To calculate aspect ratio, you need the Greatest Common Divisor (GCD). You can get this with the Euclidean algorithm, but doing this by hand or in a phone calculator is still slow and manual. You can side-step GCD by using N:1 aspect ratio instead, e.g. “1.85:1” Just…