mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
372e5fd8de
* Add full support for the featured slider powered by JS (except auto-slide) * Change the title hover state of large stickies to white * Prevent plain text posts from being displayed transparently over images * Update slider featured image size to 500x300 * Add comment blocks to showcase.php git-svn-id: http://svn.automattic.com/wordpress/trunk@17761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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); |