reforma da interface da página de projetos
This commit is contained in:
1 parent
b7cea61d33
commit
197134ac3c
1 file changed
+1
-5
+1
-5
@@ -619,13 +619,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const s = parseInt(c.dataset.stars || 0);
|
||||
const k = c.dataset.key; // Pega o que salvamos ("Ab", "Cm", etc)
|
||||
|
||||
const matchG = (currentGenre === 'all' || g === currentGenre);
|
||||
const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars)); // Lembra do === da resposta anterior
|
||||
// Novo Match de Tom
|
||||
// A lógica aqui é simples: se for 'all', passa. Se não, tem que ser igual.
|
||||
const matchK = (currentKey === 'all' || k === currentKey);
|
||||
const matchG = (currentGenre === 'all' || g === currentGenre);
|
||||
const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars));
|
||||
const matchK = (currentKey === 'all' || k === currentKey);
|
||||
|
||||
col.style.display = (matchG && matchS && matchK) ? 'block' : 'none';
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user