diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-16 23:00:41 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-16 23:00:41 +0200 |
commit | 846b8d0211197b5fb473647d535887ad4b750187 (patch) | |
tree | c81bea222f4903e48161e3005d425fc78d9c2d24 /website/logi/jQuery-all.js | |
parent | 08a7452f3ca40f4eaa29b430828d751e0adc96a8 (diff) | |
download | lombok-846b8d0211197b5fb473647d535887ad4b750187.tar.gz lombok-846b8d0211197b5fb473647d535887ad4b750187.tar.bz2 lombok-846b8d0211197b5fb473647d535887ad4b750187.zip |
Made the downloadinfo on the index page a bit smaller (it was overflowing its container), and removed the fun but unreliable glow effect.
Diffstat (limited to 'website/logi/jQuery-all.js')
-rw-r--r-- | website/logi/jQuery-all.js | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/website/logi/jQuery-all.js b/website/logi/jQuery-all.js index 44c9712a..9f8ffce7 100644 --- a/website/logi/jQuery-all.js +++ b/website/logi/jQuery-all.js @@ -141,78 +141,3 @@ }; })(jQuery); - -(function($) { - var currentRadius, multiplier; - - function parseOptions(options) { - return { - RADIUS: (options.radius || 20), - DURATION: (options.duration || 500), - TEXT_COLOR: (options.textColor || '#fff'), - HALO_COLOR: (options.haloColor || '#777') - } - } - - function currentRadius(elem) { - if (prop = elem.style['text-shadow']) { - return parseInt(prop.match(/0 0 (\d+)px/)); - } else { - return 0; - } - } - - function stepTextShadow(fx) { - if (fx.state == 0) { - fx.start = currentRadius(fx.elem); - } - - updatedRadius = fx.end.begin ? - parseInt(fx.end.radius * fx.pos) : - parseInt(fx.end.radius - (fx.end.radius * fx.pos)) - - if (fx.end.begin || (fx.state < 1)) { - $(fx.elem).css('text-shadow', fx.end.color + ' 0 0 ' + updatedRadius + 'px'); - } else { - $(fx.elem).css('text-shadow', $(fx.elem).data('glow.originalGlow')); - } - } - - function addGlow(opts) { - var opts = parseOptions(opts || { }); - - function startGlow() { - $(this).stop().animate({ - color: opts.TEXT_COLOR, - textShadow: { - begin: true, - color: opts.HALO_COLOR, - radius: opts.RADIUS - } - }, opts.DURATION); - } - - function startFade() { - $(this).stop().animate({ - color: $(this).data('glow.originColor'), - textShadow: { - begin: false, - color: opts.HALO_COLOR, - radius: opts.RADIUS - } - }, opts.DURATION); - } - - with($(this)) { - bind('mouseenter', startGlow); - bind('mouseleave', startFade); - data('glow.originColor', css('color')); - data('glow.originalGlow', (css('text-shadow') || 'none')); - } - - return this; - } - - $.fx.step['textShadow'] = stepTextShadow; - $.fn.addGlow = addGlow; -})(jQuery); |