4,554
edits
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
Line 19: | Line 19: | ||
if (communityFeatured.length && filteredCards.length >= 2) { | if (communityFeatured.length && filteredCards.length >= 2) { | ||
communityFeatured.detach() | // Detach and insert the community featured element after the second card | ||
communityFeatured.detach(); | |||
filteredCards.eq(1).after(communityFeatured); | |||
// Show the community-featured element after positioning it | |||
communityFeatured.show(); | |||
} | } | ||
Line 28: | Line 33: | ||
if (communityListFeatured.length && filteredCards.length >= 4) { | if (communityListFeatured.length && filteredCards.length >= 4) { | ||
communityListFeatured.detach() | // Detach and insert the community featured element after the second card | ||
communityListFeatured.detach(); | |||
filteredCards.eq(3).after(communityListFeatured); | |||
// Show the community-featured element after positioning it | |||
communityListFeatured.show(); | |||
} | } | ||