MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 9: Line 9:
var originalWidths = listLists.map(function(list) {
var originalWidths = listLists.map(function(list) {
    return list.width();
    return list.width();
}); // Store original widths in an array
});
      
      
     // Insert the community featured element after the second card
     // Insert the community featured element after the second card
Line 17: Line 17:
         communityFeatured.show();
         communityFeatured.show();
     }
     }
// Format community card, when in the Community Entries page
if ($('.community-card').length) {
    formatCommunityCardDescriptions();
}


     // Check if the specific element exists on the page
     // Check if the specific element exists on the page
Line 71: Line 66:
}
}
    // Format community card, when in the Community Entries page
if ($('.community-card').length) {
    formatCommunityCardDescriptions();
}
   
function formatCommunityCardDescriptions() {
function formatCommunityCardDescriptions() {
    console.log("Formatting community card descriptions");
    console.log("Formatting community card descriptions");

Navigation menu