Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
5 lines (5 sloc) 186 Bytes
do ($ = jQuery) ->
$.fn.percentGraph = () ->
$(this).each () ->
graph = $(this);
graph.width (parseFloat(graph.attr('percent')) / 100) * graph.parent().width()