4,554
edits
No edit summary |
No edit summary |
||
Line 586: | Line 586: | ||
}); | }); | ||
function | function logTitlesForEntity(entityValue) { | ||
$('.card').each(function() { | $('.card').each(function() { | ||
var entityText = $(this).find('.entity').text().trim(); | var entityText = $(this).find('.entity').text().trim(); | ||
if (entityText === entityValue) { | |||
var titleText = $(this).find('.title').text().trim(); | |||
if ( | console.log('Title: ' + titleText); | ||
} | } | ||
}); | }); | ||
} | } | ||
// Call the function to log | // Call the function to log titles for cards with the entity "Collective" | ||
logTitlesForEntity('Collective'); | |||
}); | }); |