POWER input RANGER!

Tired of BORING number inputs that are hard to see when the numbers are too long? Tired of numbers that are too small inside the box? Add some POWER to your inputs with POWER [input] RANGER! Works great for max/min number inputs, part of the SWEET html5 spec.

How to use:

Play around by adding and removing any number of items from each input box. For example, try adding 1, 99, 999, or even something over 9,000! Get crazy!

// make sure to cache your dom elements!
var inputs = $('#demo-section').find('input'); inputs.powerRangeIt();

Options

// subtracted from total font size -- adjust to your liking
scale_factor: 12

// number of letters before resizing stops
cutoff_length: 7

// default font size of non-resized letters
cutoff_size: 20

Support

Tested in Firefox 22, Chrome 28.0.1500.95 and Safari 6.0.5 (8536.30.1)

POWERFUL facts