wordpress/php-fpm/wordpress_files/themes/twentyeleven/js/showcase.js
2020-05-22 01:40:23 +00:00

17 lines
489 B
JavaScript

(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);