From 44a9ccd7d0bbbd67a9e88b7bf3d6c6377f0e1561 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 23 Apr 2024 17:30:24 +0900 Subject: [PATCH] fix --- term/js/terminal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/term/js/terminal.js b/term/js/terminal.js index acf5645..367db0d 100755 --- a/term/js/terminal.js +++ b/term/js/terminal.js @@ -176,7 +176,9 @@ $(function() { });$.ajaxSetup({async: true}); } 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}); $.getJSON(url, function(data) { index_json = JSON.stringify(data,null,"\t"); @@ -186,6 +188,8 @@ $(function() { term.echo(s); }); });$.ajaxSetup({async: true}); + term.echo("-----"); + term.echo("$ hugo " + hugo_domain); } else if (/nyancat/.test(input)) { term.read("jump page?[y] : ", function(s) { if (s === "y") {