MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / setStatsLine

Function setStatsLine

assets/js/WikiSearch.js:132–139  ·  view source on GitHub ↗
(numberOfResults)

Source from the content-addressed store, hash-verified

130};
131
132const setStatsLine = (numberOfResults) => {
133 const statLine = document.getElementById("stats");
134 if (numberOfResults) {
135 statLine.textContent = `Displaying ${numberOfResults} results.`;
136 } else {
137 statLine.textContent = "Sorry, no results.";
138 }
139};
140
141const getSearchTerm = () => {
142 const rawSearchTerm = document.getElementById("search").value.trim();

Callers 1

processTheSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected