modified: static/css/styles.css

modified:   templates/projects.html
	modified:   versions/version.json
This commit is contained in:
SimolZimol
2026-01-07 02:34:36 +01:00
parent 7ecdde83cc
commit 3dd524bd84
3 changed files with 36 additions and 43 deletions

View File

@@ -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';
}
});
});