Added more support for HTML5 input elements, added allowFractions option #77

Open
wants to merge 5 commits into from

2 participants

@odbol

Added support for HTML5 input attributes like min, max.

Added allowFractions option to avoid rounding the result for higher-precision results.

Added a CSS class to the wrapper element so it can be styled easier.

@YOMorales

Hi. So, I copied your changes and then set the knobs' values (and max parameters) to be fractions, but the knobs still were rounded.

@YOMorales

Also, the circular bar that fills according to the value stopped showing.

@odbol

Oops, sorry about that @YOMorales . Should be fixed now.

@odbol

Oh but I don't think it will automatically turn to fractions if you use fractions in the min and max. Maybe you could add that in?

@YOMorales

I have done some hacks in the past weeks (mostly for a commercial project I'm working); let me see when I can cleanup them and push them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment