diff options
| author | Rémi Prévost | 2010-03-13 13:08:54 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2011-11-02 19:21:04 -0500 | 
| commit | 7cca8b8cd7d722d1620f2884987425deff4bb609 (patch) | |
| tree | 4b2fcb08992cb67b282e4fd03424f66ac10d3830 /js/global.js | |
| parent | 0f953357ed8f55c43899c445fa57926807a30c5c (diff) | |
| download | homebrew-7cca8b8cd7d722d1620f2884987425deff4bb609.tar.bz2 | |
Add visible overflow on mouseover
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'js/global.js')
| -rw-r--r-- | js/global.js | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/js/global.js b/js/global.js new file mode 100644 index 000000000..5a5515420 --- /dev/null +++ b/js/global.js @@ -0,0 +1,15 @@ +(function($) { +	$(function() { +		$('pre.overflow').bind('mouseover', function() { +			$(this).css({ +				'overflow' : 'auto', +				'padding-bottom' : '8px' +			}); +		}).bind('mouseout', function() { +			$(this).css({ +				'overflow' : 'hidden', +				'padding-bottom' : '23px' +			}); +		}).trigger('mouseout'); +	}); +})(jQuery); | 
