MCPcopy Index your code
hub / github.com/github/awesome-copilot / setupSearch

Function setupSearch

website/src/scripts/pages/samples.ts:158–171  ·  view source on GitHub ↗

* Setup search functionality

()

Source from the content-addressed store, hash-verified

156 * Setup search functionality
157 */
158function setupSearch(): void {
159 const searchInput = document.getElementById(
160 "search-input"
161 ) as HTMLInputElement;
162 if (!searchInput) return;
163
164 searchInput.addEventListener(
165 "input",
166 debounce(() => {
167 renderCookbooks();
168 updateResultsCount();
169 }, 200)
170 );
171}
172
173/**
174 * Clear all filters

Callers 1

initSamplesPageFunction · 0.85

Calls 4

debounceFunction · 0.90
renderCookbooksFunction · 0.85
updateResultsCountFunction · 0.85
addEventListenerMethod · 0.80

Tested by

no test coverage detected