diff --git a/min/jquery.rateyo.min.css b/min/jquery.rateyo.min.css index a40e187..87f9ad3 100644 --- a/min/jquery.rateyo.min.css +++ b/min/jquery.rateyo.min.css @@ -1 +1 @@ -.jq-ry-container{position:relative;padding:0 5px;line-height:0;display:block;cursor:pointer}.jq-ry-container[readonly=readonly]{cursor:default}.jq-ry-container>.jq-ry-group-wrapper{position:relative;width:100%}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group{position:relative;line-height:0;z-index:10;white-space:nowrap}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group>svg{display:inline-block}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group.jq-ry-normal-group{width:100%}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group.jq-ry-rated-group{width:0;z-index:11;position:absolute;top:0;left:0;overflow:hidden} \ No newline at end of file +.jq-ry-container{position:relative;padding:0 5px;line-height:0;display:block;cursor:pointer;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.jq-ry-container[readonly=readonly]{cursor:default}.jq-ry-container>.jq-ry-group-wrapper{position:relative;width:100%}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group{position:relative;line-height:0;z-index:10;white-space:nowrap}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group>svg{display:inline-block}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group.jq-ry-normal-group{width:100%}.jq-ry-container>.jq-ry-group-wrapper>.jq-ry-group.jq-ry-rated-group{width:0;z-index:11;position:absolute;top:0;left:0;overflow:hidden} \ No newline at end of file diff --git a/min/jquery.rateyo.min.css.map b/min/jquery.rateyo.min.css.map index 2dc8e2c..27891b8 100644 --- a/min/jquery.rateyo.min.css.map +++ b/min/jquery.rateyo.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["src/jquery.rateyo.less"],"names":[],"mappings":"AAAA;EAEE,kBAAA;EACA,cAAA;EACA,cAAA;EACA,cAAA;EACA,eAAA;;AAEA,gBAAC;EAEC,eAAA;;AAGF,gBAAC;EAEC,kBAAA;EACA,WAAA;;AAEA,gBALD,uBAKE;EAEC,kBAAA;EACA,cAAA;EACA,WAAA;EACA,mBAAA;;AAEA,gBAZH,uBAKE,eAOE;EAEC,qBAAA;;AAGF,gBAjBH,uBAKE,eAYE;EAEC,WAAA;;AAGF,gBAtBH,uBAKE,eAiBE;EAEC,QAAA;EACA,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,gBAAA"} \ No newline at end of file +{"version":3,"sources":["src/jquery.rateyo.less"],"names":[],"mappings":"AAAA;EAEE,kBAAA;EACA,cAAA;EACA,cAAA;EACA,cAAA;EACA,eAAA;EACA,+BAAA;EACA,4BAAA;EACA,uBAAA;;AAEA,gBAAC;EAEC,eAAA;;AAGF,gBAAC;EAEC,kBAAA;EACA,WAAA;;AAEA,gBALD,uBAKE;EAEC,kBAAA;EACA,cAAA;EACA,WAAA;EACA,mBAAA;;AAEA,gBAZH,uBAKE,eAOE;EAEC,qBAAA;;AAGF,gBAjBH,uBAKE,eAYE;EAEC,WAAA;;AAGF,gBAtBH,uBAKE,eAiBE;EAEC,QAAA;EACA,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,gBAAA"} \ No newline at end of file diff --git a/min/jquery.rateyo.min.js b/min/jquery.rateyo.min.js index 4e42a33..5836050 100644 --- a/min/jquery.rateyo.min.js +++ b/min/jquery.rateyo.min.js @@ -1,4 +1,4 @@ /*rateYo V2.0.1, A simple and flexible star rating plugin prashanth pamidi (https://github.com/prrashi)*/ -!function(a){"use strict";function b(a,b,c){return a===b?a=b:a===c&&(a=c),a}function c(a,b,c){var d=a>=b&&c>=a;if(!d)throw Error("Invalid Rating, expected value between "+b+" and "+c);return a}function d(b,c){var d;return a.each(c,function(){return b===this.node?(d=this,!1):void 0}),d}function e(b,c){return a.each(c,function(a){if(b===this.node){var d=c.slice(0,a),e=c.slice(a+1,c.length);return c=d.concat(e),!1}}),c}function f(a){return"undefined"!=typeof a}function g(d,h){function i(a){f(a)||(a=h.rating);var b=a/I,c=b*K;b>1&&(c+=(Math.ceil(b)-1)*M),Q.css("width",c+"%")}function k(){N=J*h.numStars,N+=L*(h.numStars-1),K=J/N*100,M=L/N*100,d.width(N),i()}function l(a){return f(a)?(h.starWidth=h.starHeight=a,J=parseFloat(h.starWidth.replace("px","")),P.find("svg").attr({width:h.starWidth,height:h.starHeight}),Q.find("svg").attr({width:h.starWidth,height:h.starHeight}),k(),d):h.starWidth}function m(a){return f(a)?(h.spacing=a,L=parseFloat(h.spacing.replace("px","")),P.find("svg:not(:first-child)").css({"margin-left":a}),Q.find("svg:not(:first-child)").css({"margin-left":a}),k(),d):h.spacing}function n(a){return f(a)?(h.normalFill=a,P.find("svg").attr({fill:h.normalFill}),d):h.normalFill}function o(a){return f(a)?(h.ratedFill=a,Q.find("svg").attr({fill:h.ratedFill}),d):h.ratedFill}function p(b){if(!f(b))return h.numStars;h.numStars=b,I=h.maxValue/h.numStars,P.empty(),Q.empty();for(var c=0;ca&&E(a),i(),d):h.maxValue}function r(a){return f(a)?(h.precision=a,i(),d):h.precision}function s(a){return f(a)?(h.halfStar=a,d):h.halfStar}function t(a){return f(a)?(h.fullStar=a,d):h.fullStar}function u(a){var b=a%I,c=I/2,d=h.halfStar,e=h.fullStar;return e||d?(e||d&&b>c?a+=I-b:(a-=b,b>0&&(a+=c)),a):a}function v(a){var b=P.offset(),c=b.left,d=c+P.width(),e=h.maxValue,f=a.pageX,g=0;if(c>f)g=R;else if(f>d)g=e;else{var i=(f-c)/(d-c);if(L>0){i*=100;for(var j=i;j>0;)j>K?(g+=I,j-=K+M):(g+=j/K*I,j=0)}else g=i*h.maxValue;g=u(g)}return g}function w(a){var c=v(a).toFixed(h.precision),e=h.maxValue;c=b(parseFloat(c),R,e),i(c),d.trigger("rateyo.change",{rating:c})}function x(){i(),d.trigger("rateyo.change",{rating:h.rating})}function y(a){var b=v(a).toFixed(h.precision);b=parseFloat(b),H.rating(b)}function z(a,b){h.onChange&&"function"==typeof h.onChange&&h.onChange.apply(this,[b.rating,H])}function A(a,b){h.onSet&&"function"==typeof h.onSet&&h.onSet.apply(this,[b.rating,H])}function B(){d.on("mousemove",w).on("mouseenter",w).on("mouseleave",x).on("click",y).on("rateyo.change",z).on("rateyo.set",A)}function C(){d.off("mousemove",w).off("mouseenter",w).off("mouseleave",x).off("click",y).off("rateyo.change",z).off("rateyo.set",A)}function D(a){return f(a)?(h.readOnly=a,d.attr("readonly",!0),C(),a||(d.removeAttr("readonly"),B()),d):h.readOnly}function E(a){if(!f(a))return h.rating;var e=a,g=h.maxValue;return"string"==typeof e&&("%"===e[e.length-1]&&(e=e.substr(0,e.length-1),g=100,q(g)),e=parseFloat(e)),c(e,R,g),e=parseFloat(e.toFixed(h.precision)),b(parseFloat(e),R,g),h.rating=e,i(),d.trigger("rateyo.set",{rating:e}),d}function F(a){return f(a)?(h.onSet=a,d):h.onSet}function G(a){return f(a)?(h.onChange=a,d):h.onChange}this.$node=d,this.node=d.get(0);var H=this;d.addClass("jq-ry-container");var I,J,K,L,M,N,O=a("
").addClass("jq-ry-group-wrapper").appendTo(d),P=a("
").addClass("jq-ry-normal-group").addClass("jq-ry-group").appendTo(O),Q=a("
").addClass("jq-ry-rated-group").addClass("jq-ry-group").appendTo(O),R=0;this.rating=function(a){return f(a)?(E(a),d):h.rating},this.destroy=function(){return h.readOnly||C(),g.prototype.collection=e(d.get(0),this.collection),d.removeClass("jq-ry-container").children().remove(),d},this.method=function(a){if(!a)throw Error("Method name not specified!");if(!f(this[a]))throw Error("Method "+a+" doesn't exist!");var b=Array.prototype.slice.apply(arguments,[]),c=b.slice(1),d=this[a];return d.apply(this,c)},this.option=function(a,b){if(!f(a))return h;var c;switch(a){case"starWidth":c=l;break;case"numStars":c=p;break;case"normalFill":c=n;break;case"ratedFill":c=o;break;case"maxValue":c=q;break;case"precision":c=r;break;case"rating":c=E;break;case"halfStar":c=s;break;case"fullStar":c=t;break;case"readOnly":c=D;break;case"spacing":c=m;break;case"onSet":c=F;break;case"onChange":c=G;break;default:throw Error("No such option as "+a)}return c(b)},p(h.numStars),D(h.readOnly),this.collection.push(this),this.rating(h.rating)}function h(b){var c=g.prototype.collection,e=a(this);if(0===e.length)return e;var f=Array.prototype.slice.apply(arguments,[]);if(0===f.length)b=f[0]={};else{if(1!==f.length||"object"!=typeof f[0]){if(f.length>=1&&"string"==typeof f[0]){var h=f[0],i=f.slice(1),j=[];return a.each(e,function(a,b){var e=d(b,c);if(!e)throw Error("Trying to set options before even initialization");var f=e[h];if(!f)throw Error("Method "+h+" does not exist!");var g=f.apply(e,i);j.push(g)}),j=1===j.length?j[0]:a(j)}throw Error("Invalid Arguments")}b=f[0]}return b=a.extend(JSON.parse(JSON.stringify(k)),b),a.each(e,function(){var e=d(this,c);return e?void 0:new g(a(this),a.extend({},b))})}function i(){return h.apply(this,Array.prototype.slice.apply(arguments,[]))}var j='',k={starWidth:"32px",normalFill:"gray",ratedFill:"#f39c12",numStars:5,maxValue:5,precision:1,rating:0,fullStar:!1,halfStar:!1,readOnly:!1,spacing:"0px",onChange:null,onSet:null};g.prototype.collection=[],window.RateYo=g,a.fn.rateYo=i}(jQuery); +!function(a){"use strict";function b(a,b,c){return a===b?a=b:a===c&&(a=c),a}function c(a,b,c){var d=a>=b&&c>=a;if(!d)throw Error("Invalid Rating, expected value between "+b+" and "+c);return a}function d(b,c){var d;return a.each(c,function(){return b===this.node?(d=this,!1):void 0}),d}function e(b,c){return a.each(c,function(a){if(b===this.node){var d=c.slice(0,a),e=c.slice(a+1,c.length);return c=d.concat(e),!1}}),c}function f(a){return"undefined"!=typeof a}function g(a,b,c){var d=(b-a)*(c/100);return d=Math.round(a+d).toString(16),1===d.length&&(d="0"+d),d}function h(a,b,c){if(!a||!b)return null;c=f(c)?c:0,a=p(a),b=p(b);var d=g(a.r,b.r,c),e=g(a.b,b.b,c),h=g(a.g,b.g,c);return"#"+d+h+e}function i(d,g){function j(a){f(a)||(a=g.rating),X=a;var b=a/N,c=b*P;b>1&&(c+=(Math.ceil(b)-1)*R),q(g.ratedFill),V.css("width",c+"%")}function k(){S=O*g.numStars,S+=Q*(g.numStars-1),P=O/S*100,R=Q/S*100,d.width(S),j()}function m(a){return g.starWidth=g.starHeight=a,O=parseFloat(g.starWidth.replace("px","")),U.find("svg").attr({width:g.starWidth,height:g.starHeight}),V.find("svg").attr({width:g.starWidth,height:g.starHeight}),k(),d}function o(a){return g.spacing=a,Q=parseFloat(g.spacing.replace("px","")),U.find("svg:not(:first-child)").css({"margin-left":a}),V.find("svg:not(:first-child)").css({"margin-left":a}),k(),d}function p(a){return g.normalFill=a,U.find("svg").attr({fill:g.normalFill}),d}function q(a){if(g.multiColor){var b=X-g.minValue;b=b/g.maxValue*100;var c=g.multiColor,e=c.startColor||n.startColor,f=c.endColor||n.endColor;a=h(e,f,b)}return g.ratedFill=a,V.find("svg").attr({fill:g.ratedFill}),d}function r(a){a.multiColor=a}function s(b){g.numStars=b,N=g.maxValue/g.numStars,U.empty(),V.empty();for(var c=0;ca&&I(a),j(),d}function u(a){return g.precision=a,j(),d}function v(a){return g.halfStar=a,d}function w(a){return g.fullStar=a,d}function x(a){var b=a%N,c=N/2,d=g.halfStar,e=g.fullStar;return e||d?(e||d&&b>c?a+=N-b:(a-=b,b>0&&(a+=c)),a):a}function y(a){var b=U.offset(),c=b.left,d=c+U.width(),e=g.maxValue,f=a.pageX,h=0;if(c>f)h=W;else if(f>d)h=e;else{var i=(f-c)/(d-c);if(Q>0){i*=100;for(var j=i;j>0;)j>P?(h+=N,j-=P+R):(h+=j/P*N,j=0)}else h=i*g.maxValue;h=x(h)}return h}function z(a){var c=y(a).toFixed(g.precision),e=g.maxValue;c=b(parseFloat(c),W,e),j(c),d.trigger("rateyo.change",{rating:c})}function A(){j(),d.trigger("rateyo.change",{rating:g.rating})}function B(a){var b=y(a).toFixed(g.precision);b=parseFloat(b),M.rating(b)}function C(a,b){g.onInit&&"function"==typeof g.onInit&&g.onInit.apply(this,[b.rating,M])}function D(a,b){g.onChange&&"function"==typeof g.onChange&&g.onChange.apply(this,[b.rating,M])}function E(a,b){g.onSet&&"function"==typeof g.onSet&&g.onSet.apply(this,[b.rating,M])}function F(){d.on("mousemove",z).on("mouseenter",z).on("mouseleave",A).on("click",B).on("rateyo.init",C).on("rateyo.change",D).on("rateyo.set",E)}function G(){d.off("mousemove",z).off("mouseenter",z).off("mouseleave",A).off("click",B).off("rateyo.init",C).off("rateyo.change",D).off("rateyo.set",E)}function H(a){return g.readOnly=a,d.attr("readonly",!0),G(),a||(d.removeAttr("readonly"),F()),d}function I(a){var e=a,f=g.maxValue;return"string"==typeof e&&("%"===e[e.length-1]&&(e=e.substr(0,e.length-1),f=100,t(f)),e=parseFloat(e)),c(e,W,f),e=parseFloat(e.toFixed(g.precision)),b(parseFloat(e),W,f),g.rating=e,j(),Y&&d.trigger("rateyo.set",{rating:e}),d}function J(a){return g.onInit=a,d}function K(a){return g.onSet=a,d}function L(a){return g.onChange=a,d}this.$node=d,this.node=d.get(0);var M=this;d.addClass("jq-ry-container");var N,O,P,Q,R,S,T=a("
").addClass("jq-ry-group-wrapper").appendTo(d),U=a("
").addClass("jq-ry-normal-group").addClass("jq-ry-group").appendTo(T),V=a("
").addClass("jq-ry-rated-group").addClass("jq-ry-group").appendTo(T),W=0,X=g.rating,Y=!1;this.rating=function(a){return f(a)?(I(a),d):g.rating},this.destroy=function(){return g.readOnly||G(),i.prototype.collection=e(d.get(0),this.collection),d.removeClass("jq-ry-container").children().remove(),d},this.method=function(a){if(!a)throw Error("Method name not specified!");if(!f(this[a]))throw Error("Method "+a+" doesn't exist!");var b=Array.prototype.slice.apply(arguments,[]),c=b.slice(1),d=this[a];return d.apply(this,c)},this.option=function(a,b){if(!f(a))return g;var c;switch(a){case"starWidth":c=m;break;case"numStars":c=s;break;case"normalFill":c=p;break;case"ratedFill":c=q;break;case"multiColor":c=r;break;case"maxValue":c=t;break;case"precision":c=u;break;case"rating":c=I;break;case"halfStar":c=v;break;case"fullStar":c=w;break;case"readOnly":c=H;break;case"spacing":c=o;break;case"onInit":c=J;break;case"onSet":c=K;break;case"onChange":c=L;break;default:throw Error("No such option as "+a)}return f(b)?c(b):g[a]},s(g.numStars),H(g.readOnly),this.collection.push(this),this.rating(g.rating,!0),Y=!0,d.trigger("rateyo.init",{rating:g.rating})}function j(b){var c=i.prototype.collection,e=a(this);if(0===e.length)return e;var f=Array.prototype.slice.apply(arguments,[]);if(0===f.length)b=f[0]={};else{if(1!==f.length||"object"!=typeof f[0]){if(f.length>=1&&"string"==typeof f[0]){var g=f[0],h=f.slice(1),j=[];return a.each(e,function(a,b){var e=d(b,c);if(!e)throw Error("Trying to set options before even initialization");var f=e[g];if(!f)throw Error("Method "+g+" does not exist!");var i=f.apply(e,h);j.push(i)}),j=1===j.length?j[0]:a(j)}throw Error("Invalid Arguments")}b=f[0]}return b=a.extend({},m,b),a.each(e,function(){var e=d(this,c);return e?void 0:new i(a(this),a.extend({},b))})}function k(){return j.apply(this,Array.prototype.slice.apply(arguments,[]))}var l='',m={starWidth:"32px",normalFill:"gray",ratedFill:"#f39c12",numStars:5,maxValue:5,precision:1,rating:0,fullStar:!1,halfStar:!1,readOnly:!1,spacing:"0px",multiColor:null,onInit:null,onChange:null,onSet:null},n={startColor:"#c0392b",endColor:"#f1c40f"},o=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/,p=function(a){if(!o.test(a))return null;var b=o.exec(a),c=parseInt(b[1],16),d=parseInt(b[2],16),e=parseInt(b[3],16);return{r:c,g:d,b:e}};i.prototype.collection=[],window.RateYo=i,a.fn.rateYo=k}(jQuery); //# sourceMappingURL=jquery.rateyo.min.js.map \ No newline at end of file diff --git a/min/jquery.rateyo.min.js.map b/min/jquery.rateyo.min.js.map index 846b29e..7327024 100644 --- a/min/jquery.rateyo.min.js.map +++ b/min/jquery.rateyo.min.js.map @@ -1 +1 @@ -{"version":3,"file":"jquery.rateyo.min.js","sources":["../src/jquery.rateyo.js"],"names":["$","checkPrecision","value","minValue","maxValue","checkBounds","isValid","Error","getInstance","node","collection","instance","each","this","deleteInstance","index","firstPart","slice","secondPart","length","concat","isDefined","RateYo","$node","options","showRating","ratingVal","rating","numStarsToShow","step","percent","percentOfStar","Math","ceil","percentOfSpacing","$ratedGroup","css","setContainerWidth","containerWidth","starWidth","numStars","spacing","width","setStarWidth","newWidth","starHeight","parseFloat","replace","$normalGroup","find","attr","height","setSpacing","newSpacing","margin-left","setNormalFill","newFill","normalFill","fill","setRatedFill","ratedFill","setNumStars","newValue","empty","i","append","BASICSTAR","setMaxValue","setRating","setPrecision","precision","setHalfStar","halfStar","setFullStar","fullStar","round","remainder","halfStep","isHalfStar","isFullStar","calculateRating","e","position","offset","nodeStartX","left","nodeEndX","pageX","calculatedRating","calcPrcnt","remPrcnt","onMouseEnter","toFixed","trigger","onMouseLeave","onMouseClick","resultantRating","that","onChange","data","apply","onSet","bindEvents","on","unbindEvents","off","setReadOnly","readOnly","removeAttr","substr","setOnSet","method","setOnChange","get","addClass","$groupWrapper","appendTo","destroy","prototype","removeClass","children","remove","methodName","args","Array","arguments","params","option","optionName","param","push","_rateYo","rateYoInstances","$nodes","result","existingInstance","returnVal","extend","JSON","parse","stringify","DEFAULTS","rateYo","window","fn","jQuery"],"mappings":";;CAME,SAAUA,GACV,YAmCA,SAASC,GAAgBC,EAAOC,EAAUC,GAYxC,MATIF,KAAUC,EAEZD,EAAQC,EAEFD,IAAUE,IAEhBF,EAAQE,GAGHF,EAGT,QAASG,GAAaH,EAAOC,EAAUC,GAErC,GAAIE,GAAUJ,GAASC,GAAqBC,GAATF,CAEnC,KAAII,EAEA,KAAMC,OAAM,0CAA2CJ,EAC3C,QAAUC,EAG1B,OAAOF,GAGT,QAASM,GAAaC,EAAMC,GAE1B,GAAIC,EAWJ,OATAX,GAAEY,KAAKF,EAAY,WAEjB,MAAGD,KAASI,KAAKJ,MAEfE,EAAWE,MACJ,GAHT,SAOKF,EAGT,QAASG,GAAgBL,EAAMC,GAe7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KAAM/H,OAAM,qBAlCZiB,EAAUmG,EAAK,GAuCjB,MAFAnG,GAAUxB,EAAEyI,OAAOC,KAAKC,MAAMD,KAAKE,UAAUC,IAAYrH,GAElDxB,EAAEY,KAAKyH,EAAQ,WAEX,GAAIE,GAAmB/H,EAAYK,KAAMuH,EAEzC,OAAKG,GAAL,OAES,GAAIjH,GAAOtB,EAAEa,MAAOb,EAAEyI,UAAWjH,MAKvD,QAASsH,KAGP,MAAOX,GAAQ/B,MAAMvF,KAAM+G,MAAMN,UAAUrG,MAAMmF,MAAMyB,eApvBzD,GAAI3D,GAAY,2WAcZ2E,GAEFtG,UAAW,OACXkB,WAAY,OACZG,UAAW,UACXpB,SAAU,EACVpC,SAAU,EACVkE,UAAW,EACX3C,OAAQ,EACR+C,UAAU,EACVF,UAAU,EACVmC,UAAU,EACVlE,QAAS,MACTyD,SAAU,KACVG,MAAO,KA0oBT/E,GAAOgG,UAAU5G,cAEjBqI,OAAOzH,OAASA,EA+EhBtB,EAAEgJ,GAAGF,OAASA,GAEdG"} \ No newline at end of file +{"version":3,"sources":["../src/jquery.rateyo.js"],"names":["$","checkPrecision","value","minValue","maxValue","checkBounds","isValid","Error","getInstance","node","collection","instance","each","this","deleteInstance","index","firstPart","slice","secondPart","length","concat","isDefined","getPick","startVal","endVal","pick","newVal","Math","round","toString","pickColor","startColor","endColor","hexToRGB","r","b","g","RateYo","$node","options","showRating","ratingVal","rating","currentRating","numStarsToShow","step","percent","percentOfStar","ceil","percentOfSpacing","setRatedFill","ratedFill","$ratedGroup","css","setContainerWidth","containerWidth","starWidth","numStars","spacing","width","setStarWidth","newWidth","starHeight","parseFloat","replace","$normalGroup","find","attr","height","setSpacing","newSpacing","margin-left","setNormalFill","newFill","normalFill","fill","multiColor","percentCovered","colorOpts","MULTICOLOR_OPTIONS","setMultiColor","setNumStars","newValue","empty","i","append","BASICSTAR","setMaxValue","setRating","setPrecision","precision","setHalfStar","halfStar","setFullStar","fullStar","remainder","halfStep","isHalfStar","isFullStar","calculateRating","e","position","offset","nodeStartX","left","nodeEndX","pageX","calculatedRating","calcPrcnt","remPrcnt","onMouseEnter","toFixed","trigger","onMouseLeave","onMouseClick","resultantRating","that","onInit","data","apply","onChange","onSet","bindEvents","on","unbindEvents","off","setReadOnly","readOnly","removeAttr","substr","isInitialized","setOnInit","method","setOnSet","setOnChange","get","addClass","$groupWrapper","appendTo","destroy","prototype","removeClass","children","remove","methodName","args","Array","arguments","params","option","optionName","param","push","_rateYo","rateYoInstances","$nodes","result","existingInstance","returnVal","extend","DEFAULTS","rateYo","hexRegex","hex","test","hexValues","exec","parseInt","window","fn","jQuery"],"mappings":";;CAME,SAAUA,GACV,YA4CA,SAASC,GAAgBC,EAAOC,EAAUC,GAYxC,MATIF,KAAUC,EAEZD,EAAQC,EAEFD,IAAUE,IAEhBF,EAAQE,GAGHF,EAGT,QAASG,GAAaH,EAAOC,EAAUC,GAErC,GAAIE,GAAUJ,GAASC,GAAqBC,GAATF,CAEnC,KAAII,EAEA,KAAMC,OAAM,0CAA2CJ,EAC3C,QAAUC,EAG1B,OAAOF,GAGT,QAASM,GAAaC,EAAMC,GAE1B,GAAIC,EAWJ,OATAX,GAAEY,KAAKF,EAAY,WAEjB,MAAGD,KAASI,KAAKJ,MAEfE,EAAWE,MACJ,GAHT,SAOKF,EAGT,QAASG,GAAgBL,EAAMC,GAe7B,MAbAV,GAAEY,KAAKF,EAAY,SAAUK,GAE3B,GAAIN,IAASI,KAAKJ,KAAM,CAEtB,GAAIO,GAAYN,EAAWO,MAAM,EAAGF,GAChCG,EAAaR,EAAWO,MAAMF,EAAM,EAAGL,EAAWS,OAItD,OAFAT,GAAaM,EAAUI,OAAOF,IAEvB,KAIJR,EAGT,QAASW,GAAUnB,GAEjB,MAAwB,mBAAVA,GAoBhB,QAASoB,GAAQC,EAAUC,EAAQC,GAEjC,GAAIC,IAAUF,EAASD,IAAWE,EAAK,IASvC,OAPAC,GAASC,KAAKC,MAAML,EAAWG,GAAQG,SAAS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EAAU,GAAI,IAC3BjI,EAAImI,SAASF,EAAU,GAAI,IAC3BlI,EAAIoI,SAASF,EAAU,GAAI,GAExB,QAAQnI,EAAEA,EAAGE,EAAEA,EAAGD,EAAEA,GAgmBtBE,GAAOuG,UAAUlI,cAEjB8J,OAAOnI,OAASA,EA+EhBrC,EAAEyK,GAAGR,OAASA,GAEdS","file":"jquery.rateyo.min.js"} \ No newline at end of file diff --git a/src/jquery.rateyo.less b/src/jquery.rateyo.less index 861d10f..3689905 100644 --- a/src/jquery.rateyo.less +++ b/src/jquery.rateyo.less @@ -5,6 +5,9 @@ line-height: 0; display: block; cursor: pointer; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; &[readonly="readonly"] {