Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function search() {
if (isSearching()) return;
$("#search-result").html("loading...");
var searchString = $("#search-box").val();
console.log($("#search-box").val());
// --- s.sfacg.com ---
request(
{ method: 'GET'
, uri: 'http://s.sfacg.com/?Key=' + searchString.toUnicode() + '&S=0&SS=0'
}
, handleResponse);
searchFlagDict["s.sfacg.com"] = true;
// --- others ---
// $("#search-result").html(tmp.html());
}