MCPcopy Create free account
hub / github.com/zhongsp/TypeScript / showSearch

Function showSearch

docs/searcher.js:367–379  ·  view source on GitHub ↗
(yes)

Source from the content-addressed store, hash-verified

365 }
366
367 function showSearch(yes) {
368 if (yes) {
369 search_wrap.classList.remove('hidden');
370 searchicon.setAttribute('aria-expanded', 'true');
371 } else {
372 search_wrap.classList.add('hidden');
373 searchicon.setAttribute('aria-expanded', 'false');
374 var results = searchresults.children;
375 for (var i = 0; i < results.length; i++) {
376 results[i].classList.remove("focus");
377 }
378 }
379 }
380
381 function showResults(yes) {
382 if (yes) {

Callers 3

doSearchOrMarkFromUrlFunction · 0.85
globalKeyHandlerFunction · 0.85
searchIconClickHandlerFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected