modified: static/css/styles.css
modified: templates/projects.html modified: versions/version.json
This commit is contained in:
@@ -186,11 +186,13 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
card.style.display = 'block';
|
||||
} else {
|
||||
const category = card.getAttribute('data-category');
|
||||
if (category.includes(filter)) {
|
||||
card.style.display = 'block';
|
||||
} else {
|
||||
card.style.display = 'none';
|
||||
}
|
||||
// Match 'minecraft' to both 'minecraft-plugin' and 'velocity-plugin'
|
||||
// Match 'discord' to 'discord-bot'
|
||||
const matches = (filter === 'minecraft' && (category.includes('minecraft') || category.includes('velocity'))) ||
|
||||
(filter === 'discord' && category.includes('discord')) ||
|
||||
(filter !== 'minecraft' && filter !== 'discord' && category.includes(filter));
|
||||
|
||||
card.style.display = matches ? 'block' : 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user