diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /resources/jquery/jquery.color.js | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'resources/jquery/jquery.color.js')
-rw-r--r-- | resources/jquery/jquery.color.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/resources/jquery/jquery.color.js b/resources/jquery/jquery.color.js deleted file mode 100644 index 8bc45c97..00000000 --- a/resources/jquery/jquery.color.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * jQuery Color Animations - * - * @author John Resig, 2007 - * @author Krinkle, 2011 - * Released under the MIT and GPL licenses. - * - * - 2011-01-05: Forked for MediaWiki. See also jQuery.colorUtil plugin - */ -( function ( $ ) { - - function getColor( elem, attr ) { - /*jshint boss:true */ - var color; - - do { - color = $.curCSS( elem, attr ); - - // Keep going until we find an element that has color, or we hit the body - if ( color !== '' && color !== 'transparent' || $.nodeName( elem, 'body' ) ) { - break; - } - - attr = 'backgroundColor'; - } while ( elem = elem.parentNode ); - - return $.colorUtil.getRGB( color ); - } - - // We override the animation for all of these color styles - $.each([ - 'backgroundColor', - 'borderBottomColor', - 'borderLeftColor', - 'borderRightColor', - 'borderTopColor', - 'color', - 'outlineColor' - ], function ( i, attr ) { - $.fx.step[attr] = function ( fx ) { - if ( fx.state === 0 ) { - fx.start = getColor( fx.elem, attr ); - fx.end = $.colorUtil.getRGB( fx.end ); - } - - fx.elem.style[attr] = 'rgb(' + [ - Math.max( Math.min( parseInt( (fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0], 10 ), 255 ), 0 ), - Math.max( Math.min( parseInt( (fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1], 10 ), 255 ), 0 ), - Math.max( Math.min( parseInt( (fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2], 10 ), 255 ), 0 ) - ].join( ',' ) + ')'; - }; - } ); - -}( jQuery ) ); |