// bootstrap-rating - v0.0.1 - (c) 2014 dreyescat 
// https://github.com/dreyescat/bootstrap-rating MIT
!function(a,b){"use strict";var c=5;a.fn.rating=function(d){this.each(function(){var e=a(this),f=a.extend({},e.data(),d);f.start=parseInt(f.start,10)||b,f.stop=parseInt(f.stop,10)||f.start+c||b,f.step=parseInt(f.step,10)||b,f=a.extend({},a.fn.rating.defaults,f);for(var g=function(a){var b=m.children();b.eq(a).prevAll(".rating-symbol").addBack().removeClass(f.empty).addClass(f.filled),b.eq(a).nextAll(".rating-symbol").removeClass(f.filled).addClass(f.empty)},h=function(a){return f.start+a*f.step},i=function(a){return Math.max(Math.ceil((a-f.start)/f.step),0)},j=function(a){var b=f.step>0?f.start:f.stop,c=f.step>0?f.stop-1:f.start+1;return a>=b&&c>=a&&(f.start+a)%f.step===0},k=function(a){var b=parseInt(a,10);j(b)&&g(i(b))},l=function(a){return function(){e.prop("disabled")||e.prop("readonly")||a.call(this)}},m=a("<div></div>").insertBefore(e),n=0;n<i(f.stop);n++)m.append('<div class="rating-symbol '+f.empty+'"></div>');k(e.val()),e.on("change",function(){k(a(this).val())}),m.on("click",".rating-symbol",l(function(){e.val(h(a(this).index())).change()})).on("mouseenter",".rating-symbol",l(function(){g(a(this).index())})).on("mouseleave",".rating-symbol",l(function(){g(i(e.val()))}))})},a.fn.rating.defaults={filled:"glyphicon glyphicon-star",empty:"glyphicon glyphicon-star-empty",start:0,stop:c,step:1},a(function(){a("input.rating").rating()})}(jQuery);
// bootstrap-rating - v1.0.0 - (c) 2014 dreyescat 
// https://github.com/dreyescat/bootstrap-rating MIT
!function(a,b){"use strict";var c=5;a.fn.rating=function(d){this.each(function(){var e=a(this),f=a.extend({},e.data(),d);f.start=parseInt(f.start,10)||b,f.stop=parseInt(f.stop,10)||f.start+c||b,f.step=parseInt(f.step,10)||b,f.fractions=Math.abs(parseInt(f.fractions,10))||b,f.scale=Math.abs(parseInt(f.scale,10))||b,f=a.extend({},a.fn.rating.defaults,f);for(var g=function(a){var b=Math.floor(a),c=n.find(".rating-symbol-foreground");c.width(0),c.slice(0,b).width("auto"),c.eq(b).width(a%1*100+"%")},h=function(a){return f.start+Math.floor(a)*f.step+f.step*j(a%1)},i=function(a){return(a-f.start)/f.step},j=function(a){var b=Math.ceil(a%1*f.fractions)/f.fractions,c=Math.pow(10,f.scale);return Math.floor(a)+Math.floor(b*c)/c},k=function(a){var b=f.step>0?f.start:f.stop,c=f.step>0?f.stop-1:f.start+1;return a>=b&&c>=a},l=function(a){var b=parseFloat(a);k(b)&&g(i(b))},m=function(a){return function(b){e.prop("disabled")||e.prop("readonly")||a.call(this,b)}},n=a("<span></span>").insertBefore(e),o=1;o<=i(f.stop);o++){var p=a('<div class="rating-symbol"></div>').css({display:"inline-block",position:"relative"});a('<div class="rating-symbol-background '+f.empty+'"></div>').appendTo(p),a('<div class="rating-symbol-foreground"></div>').append('<span class="'+f.filled+'"></span>').css({display:"inline-block",position:"absolute",overflow:"hidden",left:0,width:0}).appendTo(p),n.append(p),f.extendSymbol.call(p,h(o))}l(e.val()),e.on("change",function(){l(a(this).val())});var q=function(b){var c=a(b.currentTarget),d=b.pageX-c.offset().left;return c.index()+d/c.width()};n.on("click",".rating-symbol",m(function(a){e.val(h(q(a))).change()})).on("mousemove",".rating-symbol",m(function(a){g(j(q(a)))})).on("mouseleave",".rating-symbol",m(function(){g(i(parseFloat(e.val())))}))})},a.fn.rating.defaults={filled:"glyphicon glyphicon-star",empty:"glyphicon glyphicon-star-empty",start:0,stop:c,step:1,fractions:1,scale:3,extendSymbol:function(){}},a(function(){a("input.rating").rating()})}(jQuery);
Update minimized version