├── README.md ├── pxgradient-1.0.3.min.js └── pxgradient-1.0.3.js /README.md: -------------------------------------------------------------------------------- 1 | # pxgradient 2 | Text Gradient jQuery 3 | 4 | Check out the archived article: http://web.archive.org/web/20160314113256/http://mrnix.ru/pxgradient/ 5 | -------------------------------------------------------------------------------- /pxgradient-1.0.3.min.js: -------------------------------------------------------------------------------- 1 | (function(e){e("head").append('');e.fn.pxgradient=function(t){function r(e){if("#"==e.substr(0,1)){e=e.substr(1)}if(3==e.length){e=e.substr(0,1)+e.substr(0,1)+e.substr(1,1)+e.substr(1,1)+e.substr(2,1)+e.substr(2,1)}return[parseInt(e.substr(0,2),16),parseInt(e.substr(2,2),16),parseInt(e.substr(4,2),16)]}function i(e){var t="0123456789abcdef";return"#"+t.charAt(parseInt(e[0]/16))+t.charAt(e[0]%16)+t.charAt(parseInt(e[1]/16))+t.charAt(e[1]%16)+t.charAt(parseInt(e[2]/16))+t.charAt(e[2]%16)}function s(e,n){var r=e>0?e/n:0;for(var i=0;i0?(i-1)/(t.colors.length-1):0;if(r==fStopPosition){return t.colors[i]}else if(r