diff --git a/jquery.tabs.min.js b/jquery.tabs.min.js new file mode 100644 index 0000000..fdd65b1 --- /dev/null +++ b/jquery.tabs.min.js @@ -0,0 +1 @@ +(function(a){a.fn.tabs=function(){this.each(function(){var c=a(this);c.addClass('enhance');var b=c.height();c.find('dd').hide();var d=c.find('dt:first').addClass('current');var e=d.next('dd').show().height();c.css('height',b+e)});a('dl.enhance dt a').click(function(d){d.preventDefault();a(this).parents('dl').find('.current').removeClass('current').next('dd').hide();var c=a(this).parent('dt').addClass('current');var f=c.next('dd').show().height();var b=a(this).parents('dl').removeAttr('style').height();a(this).parents('dl').css('height',b+f)})}})(jQuery); \ No newline at end of file