(card: HTMLElement)
| 9 | const activeTags = new Set<string>() |
| 10 | |
| 11 | function cardText(card: HTMLElement) { |
| 12 | return [ |
| 13 | card.dataset.title, |
| 14 | card.dataset.description, |
| 15 | card.dataset.repository, |
| 16 | card.dataset.tags |
| 17 | ].join(' ') |
| 18 | } |
| 19 | |
| 20 | function matchesSearch(card: HTMLElement, query: string) { |
| 21 | if (!query) return true |