web/wp-content/themes/twentyeleven/js/showcase.js
changeset 194 32102edaa81b
--- /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