mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-07 13:18:14 +02:00
Follow-up to [50001], [50270], [50367], [50383], [50410], [50420], [50429], [50547]. Props chaion07, Clorith, costdev, desrosj, malthert, peterwilsoncc, presskopp, promz, sabernhardt, SergeyBiryukov, toro_unit, wpnomad. Fixes #51519. Built from https://develop.svn.wordpress.org/trunk@52285 git-svn-id: http://core.svn.wordpress.org/trunk@51877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
18 lines
466 B
JavaScript
18 lines
466 B
JavaScript
(function($) {
|
|
$( function() {
|
|
$('.feature-slider a').on( '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);
|