nl_tokens: resize function
pl_tokens: function inputNumberResize ( $target ) { var $inputNumber = $target . closest ( '.input-number' ) if ( $inputNumber . hasClass ( 'input-number-adaptive' ) ) { // width = padding (12px + 32px) + number of characters if ( ! $inputNumber . hasClass ( 'input-number-percentage' ) ) { $target . css ( 'width' , 'calc(44px + ' + $target . val ( ) . length + 'ch)' ) if ( isIe ( ) ) $target . css ( 'width' , 'calc(44px + (1.5 * ' + $target . val ( ) . length + 'ch))' ) } if ( $inputNumber . hasClass ( 'input-number-currency' ) ) { $target . <mask> ( 'width' , 'calc(40px + 44px + ' + $target . val ( ) . length + 'ch)' ) if ( isIe ( ) ) $target . css ( 'width' , 'calc(40px + 44px + (1.5 * ' + $target . val ( ) . length + 'ch))' ) } } }