fix
This commit is contained in:
parent
456c4dacd3
commit
44a9ccd7d0
@ -176,7 +176,9 @@ $(function() {
|
|||||||
});$.ajaxSetup({async: true});
|
});$.ajaxSetup({async: true});
|
||||||
|
|
||||||
} else if (inputs[0] === 'hugo') {
|
} else if (inputs[0] === 'hugo') {
|
||||||
url = 'https://yui.syui.ai/index.json';
|
hugo_domain = 'yui.syui.ai';
|
||||||
|
if (inputs[1] != undefined) { hugo_domain = inputs[1]; }
|
||||||
|
url = 'https://' + hugo_domain + '/index.json';
|
||||||
$.ajaxSetup({async: false});
|
$.ajaxSetup({async: false});
|
||||||
$.getJSON(url, function(data) {
|
$.getJSON(url, function(data) {
|
||||||
index_json = JSON.stringify(data,null,"\t");
|
index_json = JSON.stringify(data,null,"\t");
|
||||||
@ -186,6 +188,8 @@ $(function() {
|
|||||||
term.echo(s);
|
term.echo(s);
|
||||||
});
|
});
|
||||||
});$.ajaxSetup({async: true});
|
});$.ajaxSetup({async: true});
|
||||||
|
term.echo("-----");
|
||||||
|
term.echo("$ hugo " + hugo_domain);
|
||||||
} else if (/nyancat/.test(input)) {
|
} else if (/nyancat/.test(input)) {
|
||||||
term.read("jump page?[y] : ", function(s) {
|
term.read("jump page?[y] : ", function(s) {
|
||||||
if (s === "y") {
|
if (s === "y") {
|
||||||
|
Loading…
Reference in New Issue
Block a user