UNPKG

cruk-pattern-library

Version:
11 lines (8 loc) 231 B
(function ($) { $.fn.crukProgressBar = function crukProgressBar() { var steps = $('li', this); steps.width(Math.floor(100 / steps.length) + '%'); this.css('visibility', 'visible'); return this; }; })(jQuery);