MCPcopy Create free account
hub / github.com/Marketscrape/marketscrape-web / clearTable

Function clearTable

scraper/static/hideTable.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function 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
11document.addEventListener('DOMContentLoaded', function() {
12 // Hide the table header, search bar, and clear button if there are no search results

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected