diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-content/themes/twentyeleven/js/showcase.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/twentyeleven/js/showcase.js Mon Nov 19 18:26:13 2012 +0100 @@ -0,0 +1,17 @@ +(function($) { + $(document).ready( function() { + $('.feature-slider a').click(function(e) { + $('.featured-posts section.featured-post').css({ + opacity: 0, + visibility: 'hidden' + }); + $(this.hash).css({ + opacity: 1, + visibility: 'visible' + }); + $('.feature-slider a').removeClass('active'); + $(this).addClass('active'); + e.preventDefault(); + }); + }); +})(jQuery); \ No newline at end of file