Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>
This commit is contained in:
Luke Smith 2022-05-26 23:32:52 +00:00 committed by GitHub
parent 6fff64138e
commit 98ef1758d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,12 @@ document.addEventListener('DOMContentLoaded', () => {
el.hidden = !isMatch
el.classList.toggle('matched-recipe', isMatch && searchText.length !== 0);
artlist.classList.add('list-searched');
if (hasFilter && isMatch) {
matchCount++;
}
})
ul.classList.toggle('is-filtered', matchCount > 0);
})
clearSearch.addEventListener('click', e => {