]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentyeleven/js/showcase.js
WordPress 3.5.1
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / js / showcase.js
1 (function($) {
2         $(document).ready( function() {
3             $('.feature-slider a').click(function(e) {
4                 $('.featured-posts section.featured-post').css({
5                     opacity: 0,
6                     visibility: 'hidden'
7                 });
8                 $(this.hash).css({
9                     opacity: 1,
10                     visibility: 'visible'
11                 });
12                 $('.feature-slider a').removeClass('active');
13                 $(this).addClass('active');
14                 e.preventDefault();
15             });
16         });
17 })(jQuery);