fix
This commit is contained in:
parent
bc52127934
commit
e71f30b7fd
BIN
icon/term.png
BIN
icon/term.png
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 74 KiB |
@ -6,8 +6,8 @@
|
|||||||
<meta name="author" content="syui" />
|
<meta name="author" content="syui" />
|
||||||
<meta name="copyright" content="© syui" />
|
<meta name="copyright" content="© syui" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
<link rel="icon" href="/icon/ai.png" />
|
<link rel="icon" href="/icon/term.png" />
|
||||||
<link rel="shortcut icon" href="/icon/ai.png" />
|
<link rel="shortcut icon" href="/icon/term.png" />
|
||||||
<link rel="stylesheet" href="/pkg/jquery.terminal/css/jquery.terminal.css" />
|
<link rel="stylesheet" href="/pkg/jquery.terminal/css/jquery.terminal.css" />
|
||||||
<link rel="stylesheet" href="/css/terminal.css" />
|
<link rel="stylesheet" href="/css/terminal.css" />
|
||||||
<link rel="stylesheet" href="/css/terminal.mobile.css" />
|
<link rel="stylesheet" href="/css/terminal.mobile.css" />
|
||||||
|
@ -2,9 +2,10 @@ $(function() {
|
|||||||
var prompt = "[[b;#87cefa;]ai][[b;#FFFF00;]@aios] ~$ ";
|
var prompt = "[[b;#87cefa;]ai][[b;#FFFF00;]@aios] ~$ ";
|
||||||
|
|
||||||
let url = new URL(window.location.href);
|
let url = new URL(window.location.href);
|
||||||
let u = url.searchParams.get('u');
|
let user = url.searchParams.get('user');
|
||||||
if (u) {
|
let id = url.searchParams.get('id');
|
||||||
prompt = "[[b;#87cefa;]" + u + "][[b;#FFFF00;]@aios] ~$ ";
|
if (user) {
|
||||||
|
prompt = "[[b;#87cefa;]" + user + "][[b;#FFFF00;]@aios] ~$ ";
|
||||||
};
|
};
|
||||||
|
|
||||||
var tab = "[[b;#87cefa;]<tab>]";
|
var tab = "[[b;#87cefa;]<tab>]";
|
||||||
@ -59,9 +60,9 @@ $(function() {
|
|||||||
\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⢀⠎⢠⠎⣠⣿⣿⣿⣿⣿⣿⣦⠀⡯⠀⠐⠧⠻⠛⠛⢋⢋⠋⠙⠛⠿⣿⢿⣷⡿⣿⣽⡿⠀⣷⠃⠀⣿⡿⣿⡿⣿⣽⣯⣷⣿⣿⡿⣿⣻⡇⢀⠹⣆⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\
|
\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⢀⠎⢠⠎⣠⣿⣿⣿⣿⣿⣿⣦⠀⡯⠀⠐⠧⠻⠛⠛⢋⢋⠋⠙⠛⠿⣿⢿⣷⡿⣿⣽⡿⠀⣷⠃⠀⣿⡿⣿⡿⣿⣽⣯⣷⣿⣿⡿⣿⣻⡇⢀⠹⣆⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\
|
||||||
";
|
";
|
||||||
|
|
||||||
axios.get('https://card.syui.ai/json/card.json')
|
axios.get('https://api.syui.ai/users/' + id)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
all_card = JSON.stringify(response.data,null,"\t");
|
user_data = JSON.stringify(response.data,null,"\t");
|
||||||
})
|
})
|
||||||
|
|
||||||
axios.get('https://bsky.social/xrpc/com.atproto.repo.listRecords?repo=' + handle + '&collection=app.bsky.feed.post&limit=1')
|
axios.get('https://bsky.social/xrpc/com.atproto.repo.listRecords?repo=' + handle + '&collection=app.bsky.feed.post&limit=1')
|
||||||
@ -74,6 +75,7 @@ $(function() {
|
|||||||
user_profile = JSON.stringify(response.data,null,"\t");
|
user_profile = JSON.stringify(response.data,null,"\t");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
var aiten_rank = user_all.aiten
|
||||||
function print_slowly(term, paragraph, callback) {
|
function print_slowly(term, paragraph, callback) {
|
||||||
var foo, i, lines;
|
var foo, i, lines;
|
||||||
lines = paragraph.split("\n");
|
lines = paragraph.split("\n");
|
||||||
@ -110,12 +112,11 @@ $(function() {
|
|||||||
command = inputs[0];
|
command = inputs[0];
|
||||||
if (inputs[0] === 'ai') {
|
if (inputs[0] === 'ai') {
|
||||||
print_slowly(term, ascii_logo);
|
print_slowly(term, ascii_logo);
|
||||||
} else if (inputs[0] === 'w') {
|
|
||||||
term.echo(user_profile);
|
term.echo(user_profile);
|
||||||
|
} else if (inputs[0] === 'w') {
|
||||||
|
term.echo(user_data);
|
||||||
} else if (inputs[0] === 'bsky') {
|
} else if (inputs[0] === 'bsky') {
|
||||||
print_slowly(term, timeline);
|
print_slowly(term, timeline);
|
||||||
} else if (inputs[0] === 'card') {
|
|
||||||
term.echo(all_card);
|
|
||||||
} else {
|
} else {
|
||||||
term.error(command + " is not a valid command");
|
term.error(command + " is not a valid command");
|
||||||
term.echo(command_all);
|
term.echo(command_all);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user