1 line
385 B
JavaScript
1 line
385 B
JavaScript
|
const corsUrl="https://cors.weboasis.workers.dev/corsproxy/?apiurl=",selectedUrl="https://duckduckgo.com/ac/?q=",searchTerm=searchInput.placeholder;let AutoComp=[];async function fetchAutoComp(a){AutoComp=[];let b=await fetch(corsUrl+selectedUrl+a);data=await b.json(),await data.map(a=>{AutoComp.push(a.phrase)}),selectedIndex=-1,buildHelp()}function handleSearchReset2(){buildHelp()}
|