| 890 | } |
| 891 | |
| 892 | function populateGameFilter() { |
| 893 | const gameFilter = document.getElementById("game-filter"); |
| 894 | if (!gameFilter) return; |
| 895 | |
| 896 | // Clear existing options except "All Games" |
| 897 | gameFilter.innerHTML = '<option value="">All Games</option>'; |
| 898 | |
| 899 | // Add unique games |
| 900 | Array.from(uniqueGames) |
| 901 | .sort() |
| 902 | .forEach((game) => { |
| 903 | const option = document.createElement("option"); |
| 904 | option.value = game; |
| 905 | option.textContent = game; |
| 906 | gameFilter.appendChild(option); |
| 907 | }); |
| 908 | } |
| 909 | |
| 910 | function populateModelFilter() { |
| 911 | const modelFilterList = document.getElementById("model-filter-list"); |