mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 15:31:04 +01:00
17 lines
473 B
JavaScript
17 lines
473 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);
|