()
| 908 | } |
| 909 | |
| 910 | function populateModelFilter() { |
| 911 | const modelFilterList = document.getElementById("model-filter-list"); |
| 912 | if (!modelFilterList) return; |
| 913 | |
| 914 | // Clear existing options |
| 915 | modelFilterList.innerHTML = ""; |
| 916 | |
| 917 | // Add unique models as clickable options |
| 918 | Array.from(uniqueModels) |
| 919 | .sort() |
| 920 | .forEach((model) => { |
| 921 | const option = document.createElement("div"); |
| 922 | option.className = "model-filter-option"; |
| 923 | option.textContent = model; |
| 924 | option.onclick = (e) => toggleModelSelection(e, model); |
| 925 | modelFilterList.appendChild(option); |
| 926 | }); |
| 927 | } |
| 928 | |
| 929 | function applyFilters() { |
| 930 | // Get all game rows |
no test coverage detected