bmen-wordpress/wp-themes/twentyeleven/js/showcase.js

17 lines
473 B
JavaScript
Raw Normal View History

2019-09-22 13:50:07 +00:00
(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);