MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 36: Line 36:
    });
    });
}
}
    // Check if the community featured and cards are present
    if ($('#community-featured').length && $('.card').length >= 2) {
        // Select the community featured element
        var communityFeatured = $('#community-featured').detach();
        // Place the community featured after the second card
        $('.card').eq(1).after(communityFeatured);
    }
// Check if we are on a page that requires community card formatting
// Check if we are on a page that requires community card formatting

Navigation menu