mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 07:21:46 +00:00
Update console.html
This commit is contained in:
parent
7810e85dec
commit
ff381b8e3e
|
@ -400,10 +400,18 @@
|
|||
}
|
||||
},
|
||||
search: function(...args) {
|
||||
set_default_env({
|
||||
"page": 1
|
||||
});
|
||||
|
||||
var term = this;
|
||||
var q = encodeURIComponent(args.join(' '));
|
||||
var url = "https://serp.catswords.net/api.php?q=" + q;
|
||||
|
||||
if (env.page > 1) {
|
||||
url += "&p=" + env.page + "&t=0";
|
||||
}
|
||||
|
||||
$.get(url, function(data) {
|
||||
if ("error" in data) {
|
||||
term.echo(data.error.message);
|
||||
|
|
Loading…
Reference in New Issue
Block a user