reforma da interface da página de projetos
Deploy / Deploy (push) Successful in 1m35s
Details
Deploy / Deploy (push) Successful in 1m35s
Details
This commit is contained in:
parent
e9c9fd5875
commit
3c8e17ab80
|
|
@ -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';
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue