()
| 369 | |
| 370 | // 文件切换功能 |
| 371 | function onFileSelect() { |
| 372 | const selectedOption = elements.fileSelect.options[elements.fileSelect.selectedIndex]; |
| 373 | if (selectedOption && selectedOption.dataset.index !== undefined) { |
| 374 | currentFileIndex = parseInt(selectedOption.dataset.index); |
| 375 | updateNavigationButtons(); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | function gotoPrevFile() { |
| 380 | if (currentFileIndex > 0) { |
nothing calls this directly
no test coverage detected