* Update results count display
()
| 322 | * Update results count display |
| 323 | */ |
| 324 | function updateResultsCount(): void { |
| 325 | const resultsCount = document.getElementById("results-count"); |
| 326 | if (!resultsCount || !samplesData) return; |
| 327 | |
| 328 | const filtered = getFilteredRecipes(); |
| 329 | const total = samplesData.totalRecipes; |
| 330 | resultsCount.textContent = getRecipeResultsCountText(filtered.length, total); |
| 331 | } |
| 332 | |
| 333 | // Auto-initialize when DOM is ready |
| 334 | if (typeof document !== "undefined") { |
no test coverage detected