()
| 1 | function clearTable() { |
| 2 | let resultTable = document.getElementById("result-table"); |
| 3 | resultTable.innerHTML = ""; |
| 4 | document.getElementById("emptyMessage").style.display = "block"; |
| 5 | // Hide the table header, search bar, and clear button |
| 6 | document.getElementById('table-header').style.display = 'none'; |
| 7 | document.getElementById('searchBar').style.display = 'none'; |
| 8 | document.getElementById('clearResultsBtn').style.display = 'none'; |
| 9 | } |
| 10 | |
| 11 | document.addEventListener('DOMContentLoaded', function() { |
| 12 | // Hide the table header, search bar, and clear button if there are no search results |
nothing calls this directly
no outgoing calls
no test coverage detected