* Setup the file dropdown change handler
()
| 40 | * Setup the file dropdown change handler |
| 41 | */ |
| 42 | function setupFileDropdown() { |
| 43 | const dropdown = document.getElementById("file-dropdown"); |
| 44 | if (!dropdown) return; |
| 45 | |
| 46 | dropdown.addEventListener("change", function () { |
| 47 | const selectedFile = this.value; |
| 48 | if (selectedFile && lineCountChart) { |
| 49 | updateLineCountChart(selectedFile); |
| 50 | } |
| 51 | }); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Create the line count chart for a specific file |
no test coverage detected