MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 592: Line 592:
             var typeText = $(this).find('.type').text().trim();
             var typeText = $(this).find('.type').text().trim();
      
      
             // Logging the values to the console for debugging
             // Logging the values to the console for debugging, using string concatenation
             console.log(`Card entity: ${entityText}, Card type: ${typeText}`);
             console.log('Card entity: ' + entityText + ', Card type: ' + typeText);
      
      
             // Check if the card matches both the entity and type filters
             // Check if the card matches both the entity and type filters
Line 605: Line 605:
      
      
     // Example usage: filter cards by 'Collective' entity and 'Image' type
     // Example usage: filter cards by 'Collective' entity and 'Image' type
     filterCards('Collective', 'Image');
     filterCards('Collective', 'Image');  
      
      
});
});

Navigation menu