This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
258 lines (235 loc) · 53.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--来源: https://axton.cc/-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="https://fonts.loli.net/css?family=Cutive+Mono" rel="stylesheet">
<title itemprop="name">HFIProgramming 华附(国际部)编程社</title>
<meta name="theme-color" content="#212121">
<style>
* {
cursor: text;
-webkit-tap-highlight-color: transparent
}
body ::selection {
background-color: #000;
color: #fff
}
body.root-mode ::selection {
background-color: #fff;
color: #000
}
body {
font-family: Cutive Mono, Courier New, Consolas, monospace;
font-weight: 700;
font-size: 17px;
background-color: #fff;
padding: 5px;
margin: 0
}
body.root-mode {
background-color: #000
}
.input-text {
display: inline-block;
background-color: transparent;
border: none;
-moz-appearance: none;
-webkit-appearance: none;
outline: 0;
box-sizing: border-box;
font-size: 17px;
font-family: Cutive Mono, Courier New, Consolas, monospace;
font-weight: 700;
padding-block-end: 0
}
body.root-mode .input-text {
color: #fff
}
#main {
line-height: 23px;
word-wrap: break-word
}
body.root-mode #main {
color: #fff
}
.ls-dir {
color: #4682b4
}
body.root-mode .prefix {
color: #fff
}
#main a {
color: #000
}
#main a:hover {
text-decoration: none
}
body.root-mode #main a {
color: #fff
}
</style>
</head>
<body>
<div id="main">Hi, We are from HFIProgramming Club. Nice to meet you!
<br>Try to find more information about us!
<br>Type 'help' to get help.
<br>Have fun :-)
<br>
<br>
</div>
<span class="prefix">[<span id='usr'>usr</span>@hfiprogramming.club ~]# </span>
<input class="input-text" type="text">
<script src="https://cdnjs.loli.net/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>console.log('随便写写滴,来源写在页面顶部啦,有时间再看看咯QVQ')</script>
<script>var nowPosition = "~",
commandList = "cd ls cat logout php-is-the-best uname hey hi hello help clear ~ / ./".split(" "), hisCommand = [],
isInHis = 0, cour = 0, inputCache = "", isInCat = 0, isInPhp = 0, usrName = "usr", temp = "", tabTw = 0;
$(function () {
$(".input-text").width($(document).width() - $(".prefix").width() - 57);
$(".input-text").focus()
});
function mainFunc(b) {
var e = 0, d = 0, c = "";
if ("" == b) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# <br>"), $("body,html").animate({scrollTop: $(document).height()}, 0); else {
hisCommand[hisCommand.length] = b;
isInPhp && (temp = b, b = "sudo " + b);
var a = b.split(" ");
isInPhp && (b = temp);
$(".prefix,.input-text").hide();
if ("sudo" == b || "sudo " == b) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# sudo<br>usage: sudo -h | -K | -k | -V<br>usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]<br>usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]<br>usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>]<br>usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ...<br>"), $(".prefix,.input-text").show(), $("body,html").animate({scrollTop: $(document).height()}, 0), $(".input-text").val(""); else {
"sudo" == a[0] && (d = 1);
for (var f = 0; f < commandList.length; f++) if (d) {
if (a[1] == commandList[f]) {
e = 1;
c = commandList[f];
break
}
} else if (a[0] == commandList[f]) {
e = 1;
c = commandList[f];
break
}
e ? "hi" == c ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hey!<br>"), $(".input-text").val("")) : "hey" == c || "hello" == c ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hi~<br>"), $(".input-text").val("")) : "~" == c || "/" == c || "./" == c ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: " + b + ": Is a directory<br>"), $(".input-text").val("")) : "help" == c ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>[sudo ]command[ Options...]<br>You can use following commands:<br><br>cd<br>ls<br>cat<br>uname<br>clear<br>logout<br>help<br><br>Besides, there are some hidden commands, try to find them!<br>"), $(".input-text").val("")) : "clear" == c ? ($("#main").html("Hi, I'm hfiprogramming, a secondary school student from China.<br>Try to find more infomation about me!<br>Type 'help' to get help.<br>Have fun :-)<br><br>"), $(".input-text").val("")) : "php-is-the-best" == c ? (isInPhp ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>You have exited the root mode.<br>"), isInPhp = 0, usrName = "usr", $("body").removeClass("root-mode")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Boom! You are now in the root mode. Type this command angain to exit.<br>In addition, I don't think PHP is the best;-)<br>"), isInPhp = 1, usrName = "root", $("body").addClass("root-mode")), $("#usr").html(usrName), $(".input-text").val("")) : "uname" == c ? (a[1 + d] && "-s" != a[1 + d] && "-o" != a[1 + d] ? "-a" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>hfiprogrammingOS hfiprogramming.club 7.10.0-693.2.2.el7.x86_64 #1 SMP Tue May 23 22:26:13 UTC 2017-2018 x86_64 x86_64 x86_64 HFIProgrammingOS<br>") : "-m" == a[1 + d] || "-p" == a[1 + d] || "-i" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>x86_64<br>") : "-n" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>hfiprogramming.club<br>") : "-r" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>7.10.0-693.2.2.el7.x86_64<br>") : "-r" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>7.10.0-693.2.2.el7.x86_64<br>") : "-v" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>#1 SMP Tue Sep 12 22:26:13 UTC 2017<br>") : "--help" == a[1 + d] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + '<br>Usage: uname [OPTION]...<br>Print certain system information. With no OPTION, same as -s.<br><br> -a, print all information<br> -s, print the kernel name<br> -n, print the network node hostname<br> -r, print the kernel release<br> -v, print the kernel version<br> -m, print the machine hardware name<br> -p, print the processor type or "unknown"<br> -i, print the hardware platform or "unknown"<br> -o, print the operating system<br> --help display this help and exit<br>') : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>uname: extra operand \u2018" + a[1 + d] + "\u2019<br>Try 'uname --help' for more information.<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>HFIProgrammingOS<br>"), $(".input-text").val("")) : "~" == nowPosition ? d ? "ls" == c ? (a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[2] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + '<br><span class="ls-dir">blog</span> <span class="ls-dir">contact</span> <span class="ls-dir">projects</span> introduction.md<br>'), $(".input-text").val("")) : "cd" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "blog" == a[2] || "contact" == a[2] || "projects" == a[2] || "~" == a[2] || "/" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "introduction.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] || "contact/README.md" == a[2] || "projects/README.md" == a[2] || "blog/post_list.md" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[2] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "introduction.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] || "contact/README.md" == a[2] || "projects/README.md" == a[2] || "blog/post_list.md" == a[2] ? catCont(a[2], d, nowPosition, b) : ("blog" == a[2] || "contact" == a[2] || "projects" == a[2] || "~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] || "/" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": Is a directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out, even use 'sudo'. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "ls" == c ? (a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[1] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + '<br><span class="ls-dir">blog</span> <span class="ls-dir">contact</span> <span class="ls-dir">projects</span> introduction.md<br>'), $(".input-text").val("")) : "cd" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "blog" == a[1] || "contact" == a[1] || "projects" == a[1] || "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "introduction.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "contact/README.md" == a[1] || "projects/README.md" == a[1] || "blog/post_list.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "/" == a[1] || "/README.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[1] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "introduction.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "contact/README.md" == a[1] || "projects/README.md" == a[1] || "blog/post_list.md" == a[1] ? catCont(a[1], d, nowPosition, b) : ("blog" == a[1] || "contact" == a[1] || "projects" == a[1] || "~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": Is a directory<br>") : "/" == a[1] || "/README.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "/" == nowPosition ? d ? "ls" == c ? (a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[2] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>README.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "README.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~" == a[2] || "/" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[2] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "README.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] ? catCont(a[2], d, nowPosition, b) : ("~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] || "~" == a[2] || "/" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": Is a directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out, even use 'sudo'. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "ls" == c ? (a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[1] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>README.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "/" == a[1] || "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "README.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "/README.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] || "~" == a[1] || "/" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[1] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "README.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "/README.md" == a[1] ? catCont(a[1], d, nowPosition, b) : ("~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] || "~" == a[1] || "/" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": Is a directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "contact" == nowPosition || "projects" == nowPosition ? d ? "ls" == c ? (a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[2] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>README.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "README.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "../introduction.md" == a[2] || "../contact/README.md" == a[2] || "../projects/README.md" == a[2] || "../blog/post_list.md" == a[2] || "/README.md" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "blog" == a[2] || "contact" == a[2] || "projects" == a[2] || "~" == a[2] || "/" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../blog" == a[2] || "../contact" == a[2] || "../projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(3), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../" == a[2] || "~" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = "~", $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[2] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "README.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] || "../introduction.md" == a[2] || "../contact/README.md" == a[2] || "../projects/README.md" == a[2] || "../blog/post_list.md" == a[2] ? catCont(a[2], d, nowPosition, b) : ("~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] || "~" == a[2] || "/" == a[2] || "../" == a[2] || "../contact" == a[2] || "../blog" == a[2] || "../projects" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": Is a directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out, even use 'sudo'. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "ls" == c ? (a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[1] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>README.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "README.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "../introduction.md" == a[1] || "../contact/README.md" == a[1] || "../projects/README.md" == a[1] || "../blog/post_list.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../blog" == a[1] || "../contact" == a[1] || "../projects" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(3), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../" == a[1] || "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = "~", $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "/" == a[1] || "/README.md" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>"), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[1] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "README.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "../introduction.md" == a[1] || "../contact/README.md" == a[1] || "../projects/README.md" == a[1] || "../blog/post_list.md" == a[1] ? catCont(a[1], d, nowPosition, b) : ("~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] || "~" == a[1] || "../" == a[1] || "../contact" == a[1] || "../blog" == a[1] || "../projects" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": Is a directory<br>") : "/" == a[1] || "/README.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "blog" == nowPosition && (d ? "ls" == c ? (a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[2] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>post_list.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "post_list.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "../introduction.md" == a[2] || "../contact/README.md" == a[2] || "../projects/README.md" == a[2] || "../blog/post_list.md" == a[2] || "/README.md" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "blog" == a[2] || "contact" == a[2] || "projects" == a[2] || "~" == a[2] || "/" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../blog" == a[2] || "../contact" == a[2] || "../projects" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[2].substring(3), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../" == a[2] || "~" == a[2] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = "~", $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[2] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[2] = prePosi(a[2], nowPosition), a[2] ? "post_list.md" == a[2] || "~/introduction.md" == a[2] || "~/contact/README.md" == a[2] || "~/projects/README.md" == a[2] || "~/blog/post_list.md" == a[2] || "/README.md" == a[2] || "../introduction.md" == a[2] || "../contact/README.md" == a[2] || "../projects/README.md" == a[2] || "../blog/post_list.md" == a[2] ? catCont(a[2], d, nowPosition, b) : ("~/blog" == a[2] || "~/contact" == a[2] || "~/projects" == a[2] || "~" == a[2] || "/" == a[2] || "../" == a[2] || "../contact" == a[2] || "../blog" == a[2] || "../projects" == a[2] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": Is a directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[2] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out, even use 'sudo'. Anyway, close this page is 'logout'<br>"), $(".input-text").val("")) : "ls" == c ? (a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls: cannot access " + a[1] + ": Can not use filter<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>post_list.md<br>"), $(".input-text").val("")) : "cd" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "post_list.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "../introduction.md" == a[1] || "../contact/README.md" == a[1] || "../projects/README.md" == a[1] || "../blog/post_list.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Not a directory<br>") : "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1], $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(2), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../blog" == a[1] || "../contact" == a[1] || "../projects" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = a[1].substring(3), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "../" == a[1] || "~" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), nowPosition = "~", $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : "/" == a[1] || "/README.md" == a[1] ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>"), $(".prefix").html('[<span id="usr">' + usrName + "</span>@hfiprogramming.club " + nowPosition + "]# "), $(".input-text").width($(document).width() - $(".prefix").width() - 57)) : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: " + a[1] + ": No such file or directory<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), $(".input-text").val("")) : "cat" == c ? (a[1] = prePosi(a[1], nowPosition), a[1] ? "post_list.md" == a[1] || "~/introduction.md" == a[1] || "~/contact/README.md" == a[1] || "~/projects/README.md" == a[1] || "~/blog/post_list.md" == a[1] || "../introduction.md" == a[1] || "../contact/README.md" == a[1] || "../projects/README.md" == a[1] || "../blog/post_list.md" == a[1] ? catCont(a[1], d, nowPosition, b) : ("~/blog" == a[1] || "~/contact" == a[1] || "~/projects" == a[1] || "~" == a[1] || "../" == a[1] || "../contact" == a[1] || "../blog" == a[1] || "../projects" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": Is a directory<br>") : "/" == a[1] || "/README.md" == a[1] ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: cd: Access denied<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat: " + a[1] + ": No such file or directory<br>"), $(".input-text").val("")) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>"), isInCat = 1, $(".input-text").val(""))) : "logout" == c && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>Hahaha, you can not log out. Anyway, close this page is 'logout'<br>"), $(".input-text").val(""))) : (d ? $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: " + a[1] + ": command not found<br>") : $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>-bash: " + a[0] + ": command not found<br>"), $(".input-text").val(""));
isInCat || $(".prefix,.input-text").show();
$("body,html").animate({scrollTop: $(document).height()}, 0);
$(".input-text").focus()
}
}
}
function prePosi(b, e) {
return b ? "" == b || "/" == b ? b : "~" == e ? b.replace(/contact\/\.\.\//g, "").replace(/blog\/\.\.\//g, "").replace(/projects\/\.\.\//g, "").replace(/^\.\//g, "").replace(/\/$/g, "").replace(/\.\.$/g, "../").replace(/contact\/\.\.\//g, "").replace(/blog\/\.\.\//g, "").replace(/projects\/\.\.\//g, "").replace(/^\.\//g, "").replace(/\/$/g, "").replace(/\.\.$/g, "../") : b.replace(/\/contact\/\.\.\//g, "/").replace(/\/blog\/\.\.\//g, "/").replace(/\/projects\/\.\.\//g, "/").replace(/^\.\//g, "").replace(/\/$/g, "").replace(/\.\.$/g, "../").replace(/\/contact\/\.\.\//g, "/").replace(/\/blog\/\.\.\//g, "/").replace(/\/projects\/\.\.\//g, "/").replace(/^\.\//g, "").replace(/\/$/g, "").replace(/\.\.$/g, "../") : b
}
function listBlog(b) {
c = "Our Blog is now under construction, please check it out later :(";
$("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>" + c + "<br>");
$("body,html").animate({scrollTop: $(document).height()}, 0);
$(".input-text").val("")
}
function catCont(b, e, d, c) {
var introduceme = "<br># Introduction<br><br>" +
"- 我们是来自华附国际部的社团,全称是华附(国际部)编程社。<br>" +
"- 我们涉猎的范围很广:语言包含PHP,Python,Golang,TypeScript,etc.<br>" +
"- 前后端运维通吃,团队合作才是最棒的XD<br>" +
"- 机器学习?硬件当然不会缺的。<br>" +
"- 与学校大部分社团和管理层均有合作,大大小小的活动都有我们的身影<br>" +
"- 竞赛?当然也有!NOIP和CCC都是我们的菜<br>" +
"- 从来不缺新鲜事,每天都不一样!<br>" +
"- 新人友好,欢迎留步👏<br>" +
"<br><strong>真的不考虑一下吗?0.0</strong><br>那至少关注一个公众号吧。<del>别说你找不到-=-</del><br><br>";
var contactme = "<br># Contact Us<br>" +
"<br>" +
"- [Email](<a href='mailto:[email protected]'>[email protected]</a>)<br>" +
"- [Github](<a href='https://github.com/HFIProgramming'>https://github.com/HFIProgramming</a>)<br>" +
"- [Gitlab](<a href='https://gitlab.com/HFIProgramming'>https://gitlab.com/HFIProgramming</a>)<br>" +
"- [私有Git]<br>" +
"- 博客正在搭建……<br>" +
"- 微信公众号:" +
'<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAIAAAAI7H7bAAAFPElEQVR4nO3dUW4bOxAAQSt497+ycwMi4GuNZ+Wq38DetaIGPwYkX9/f31/A//Pnp18APoGQICAkCAgJAkKCgJAgICQICAkC/x3+7fV6jb1HLh80Hz6Nu2flv/DuWbnDy3/wN8qKBAEhQUBIEBASBIQEASFBQEgQEBIETgPZgyX7avMB3+SQdHKMmw9Jl3wauetvlBUJAkKCgJAgICQICAkCQoKAkCAgJAhcDmQP8iHpL9zrevcZTs5qH7299x3DXysSBIQEASFBQEgQEBIEhAQBIUFASBDoB7L73Y0gJ/efTtr/ho9gRYKAkCAgJAgICQJCgoCQICAkCAgJAr9xILvEkt24+Xj6d7IiQUBIEBASBIQEASFBQEgQEBIEhASBfiD76FHdkr2u++/G3X/Z7jArEgSEBAEhQUBIEBASBIQEASFBQEgQuBzIPvqc2yWbTO/kG1rzn7rz6G/UlxUJEkKCgJAgICQICAkCQoKAkCAgJAicBrKP2Jk4Zv8kdP/hwx/8jbIiQUBIEBASBIQEASFBQEgQEBIEhASB00B2ye7O/Zb8XZPnEuc/lc9qh2fQViQICAkCQoKAkCAgJAgICQJCgoCQIPDaf5jt5DDx7jXyEeTkJz85Cc1fY8/duFYkCAgJAkKCgJAgICQICAkCQoKAkCBweYfsQT4I+9QJb27/gcBLhtrvYEWCgJAgICQICAkCQoKAkCAgJAgICQKXO2QPlpw9u2ST6f6Nup9q+EZdKxIEhAQBIUFASBAQEgSEBAEhQUBIEOiPLD49bP0vvHvWwf5598GSo5gPlozdv6xIkBASBIQEASFBQEgQEBIEhAQBIUGgP7J4ckj66HFn/vL5J3/3hks26g7fgGxFgoCQICAkCAgJAkKCgJAgICQICAkCD7hDdtL+Me7B/mnykn3Q7/iyWZEgICQICAkCQoKAkCAgJAgICQJCgsDpyOLTj60fut09K+e+2p/iDll4HiFBQEgQEBIEhAQBIUFASBAQEgT6O2SXzBkn9076NN5qyUTeHbLwdkKCgJAgICQICAkCQoKAkCAgJAj0O2TvTB63O3y7aPus4Y2f7bM++A2tSBAQEgSEBAEhQUBIEBASBIQEASFB4HSH7JLx2RKPPr833xO6/wsw/P9lRYKAkCAgJAgICQJCgoCQICAkCAgJAlt2yB7s3zx79wsPHr159s6Sgaw7ZOEnCQkCQoKAkCAgJAgICQJCgoCQINDvkM1/av9MM3+N3P4NrXfu/q53zKCtSBAQEgSEBAEhQUBIEBASBIQEASFB4DSQnZx2LdmnebBktHqwZGS8ZPg7fM2xFQkCQoKAkCAgJAgICQJCgoCQICAkCFzukN1vciyYz6D3nzB8Z/JEaHfIwvMICQJCgoCQICAkCAgJAkKCgJAgcBrIHiwZC+aTtXwzZj4WXHLQ8ZLNs5Oj8DMrEgSEBAEhQUBIEBASBIQEASFBQEgQuBzIHgwfFbv8WZOfxpIh6eTIeHLb8pkVCQJCgoCQICAkCAgJAkKCgJAgICQI9APZ/T51BLnkWfnhw494lhUJAkKCgJAgICQICAkCQoKAkCAgJAj8xoHsp96NO3nz7JLXuHuWI4thKSFBQEgQEBIEhAQBIUFASBAQEgT6geyS62UnTR4jnN9XO7nJ9GDya/OOkbEVCQJCgoCQICAkCAgJAkKCgJAgICQIvN6xW3CDyZnmnSXPurPku+HIYvgoQoKAkCAgJAgICQJCgoCQICAkCJwGssA/siJBQEgQEBIEhAQBIUFASBAQEgSEBAEhQeAv30dFP2LZvDsAAAAASUVORK5CYII=" alt="QR CODE" /><br><br>';
var projects = "<br># Projects<br>" +
"<br>" +
"## 大部分项目都已经开源,请移步Github<br>" +
"<br>" +
"- NoticeBoard<br>" +
"- [mikutap](<a href='https://github.com/HFIProgramming/mikutap'>https://github.com/HFIProgramming/mikutap</a>)<br>" +
"- [WhatIP](<a href='https://github.com/HFIProgramming/whatip'>https://github.com/HFIProgramming/whatip</a>)<br>" +
"- Vote System (A Single Page Application)<br>" +
"- More...<br><br>";
e = "";
"../" == b.substring(0, 3) ? (b = b.substring(3), e = "up") : "~/" == b.substring(0, 2) ? (b = b.substring(2), e = "~") : "/" == b.substring(0, 1) && (b = b.substring(1), e = "/");
"/" == d && "" == e ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + "<br>Guess what? Nothing here :-)<br>"), $(".input-text").val("")) : "/" == e && "README.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + "<br>Guess what? Nothing here :-)<br>"), $(".input-text").val("")) : "~" == e && "introduction.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + introduceme), $(".input-text").val("")) : "~" == e || "up" == e ? "blog/post_list.md" == b ? listBlog(c) : "contact/README.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + contactme), $(".input-text").val("")) : "projects/README.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + projects), $(".input-text").val("")) : "introduction.md" == b && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + introduceme), $(".input-text").val("")) : "" == e && ("~" == d ? "introduction.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + introduceme), $(".input-text").val("")) : "blog/post_list.md" == b ? listBlog(c) : "contact/README.md" == b ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + contactme), $(".input-text").val(""), $(".input-text").val("")) : "projects/README.md" == b && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + projects), $(".input-text").val("")) : "blog" == d ? listBlog(c) : "contact" == d ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + contactme), $(".input-text").val("")) : "projects" == d && ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + c + projects), $(".input-text").val("")))
}
function hisComm(b) {
$("body,html").animate({scrollTop: $(document).height()}, 0);
"up" != b || isInHis ? "up" == b && isInHis ? 0 <= cour - 1 && (cour-- , $(".input-text").val(hisCommand[cour])) : "down" == b && isInHis && (cour + 1 <= hisCommand.length - 1 ? (cour++ , $(".input-text").val(hisCommand[cour])) : cour + 1 == hisCommand.length && ($(".input-text").val(inputCache), isInHis = 0)) : 0 < hisCommand.length && (inputCache = $(".input-text").val(), $(".input-text").val(hisCommand[hisCommand.length - 1]), cour = hisCommand.length - 1, isInHis = 1)
}
function pressTab(b) {
if ("" != b) {
var e = b.split(" "), d = 0;
if ("s" == b || "su" == b || "sud" == b) $(".input-text").val("sudo "); else if ("sudo" == e[0] && (d = 1), "ca" == e[d]) d ? $(".input-text").val("sudo cat ") : $(".input-text").val("cat "); else if ("c" == e[d] && tabTw) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>cat cd clear<br>"); else if ("c" == e[d] && !tabTw) tabTw = 1; else if ("p" == e[d] || "ph" == e[d] || "php" == e[d] || "php-" == e[d] || "php-i" == e[d] || "php-is" == e[d] || "php-is-" == e[d] || "php-is-t" == e[d] || "php-is-th" == e[d] || "php-is-the" == e[d] || "php-is-the-" == e[d] || "php-is-the-b" == e[d] || "php-is-the-be" == e[d] || "php-is-the-bes" == e[d]) d ? $(".input-text").val("sudo php-is-the-best") : $(".input-text").val("php-is-the-best"); else if ("cl" == e[d] || "cle" == e[d] || "clea" == e[d]) d ? $(".input-text").val("sudo clear") : $(".input-text").val("clear"); else if ("hell" == e[d]) d ? $(".input-text").val("sudo hello") : $(".input-text").val("hello"); else if ("u" == e[d] || "un" == e[d] || "una" == e[d] || "unam" == e[d]) d ? $(".input-text").val("sudo uname ") : $(".input-text").val("uname "); else if ("lo" == e[d] || "log" == e[d] || "logo" == e[d] || "logou" == e[d]) d ? $(".input-text").val("sudo logout") : $(".input-text").val("logout"); else if ("l" == e[d] && tabTw) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>ls logout<br>"); else if ("l" == e[d] && !tabTw) tabTw = 1; else if ("h" == e[d] && tabTw) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>hello help hey<br>hi<br>"); else if ("h" == e[d] && !tabTw) tabTw = 1; else if ("he" == e[d] && tabTw) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>hello help hey<br>"); else if ("he" == e[d] && !tabTw) tabTw = 1; else if ("hel" == e[d] && tabTw) $("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>hello help<br>"); else if ("hel" == e[d] && !tabTw) tabTw = 1; else if (e[1 + d]) if (b = e[1 + d].split("/"), "b" == b[b.length - 1] || "bl" == b[b.length - 1] || "blo" == b[b.length - 1]) {
var c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "blog") : $(".input-text").val(e[d] + " " + c + "blog")
} else if ("c" == b[b.length - 1] || "co" == b[b.length - 1] || "con" == b[b.length - 1] || "cont" == b[b.length - 1] || "conta" == b[b.length - 1] || "contac" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "contact") : $(".input-text").val(e[d] + " " + c + "contact")
} else if ("pr" == b[b.length - 1] || "pro" == b[b.length - 1] || "proj" == b[b.length - 1] || "project" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "projects") : $(".input-text").val(e[d] + " " + c + "projects")
} else if ("R" == b[b.length - 1] || "RE" == b[b.length - 1] || "REA" == b[b.length - 1] || "READ" == b[b.length - 1] || "READM" == b[b.length - 1] || "README" == b[b.length - 1] || "README." == b[b.length - 1] || "README.m" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "README.md") : $(".input-text").val(e[d] + " " + c + "README.md")
} else if ("po" == b[b.length - 1] || "pos" == b[b.length - 1] || "post" == b[b.length - 1] || "post_" == b[b.length - 1] || "post_l" == b[b.length - 1] || "post_li" == b[b.length - 1] || "post_lis" == b[b.length - 1] || "post_list" == b[b.length - 1] || "post_list." == b[b.length - 1] || "post_list.m" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "post_list.md") : $(".input-text").val(e[d] + " " + c + "post_list.md")
} else if ("i" == b[b.length - 1] || "in" == b[b.length - 1] || "int" == b[b.length - 1] || "intr" == b[b.length - 1] || "intro" == b[b.length - 1] || "introd" == b[b.length - 1] || "introdu" == b[b.length - 1] || "introduc" == b[b.length - 1] || "introduct" == b[b.length - 1] || "introducti" == b[b.length - 1] || "introductio" == b[b.length - 1] || "introduction" == b[b.length - 1] || "introduction." == b[b.length - 1] || "introduction.m" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
d ? $(".input-text").val("sudo " + e[d] + " " + c + "introduction.md") : $(".input-text").val(e[d] + " " + c + "introduction.md")
} else if ("p" == b[b.length - 1]) {
c = "";
if (2 == b.length) c = b[0] + "/"; else if (2 < b.length) {
for (i in b) 0 == i ? c = b[i] : i < b.length - 1 && (c = c + "/" + b[i]);
c += "/"
}
"cd" == e[d] ? d ? $(".input-text").val("sudo " + e[d] + " " + c + "projects") : $(".input-text").val(e[d] + " " + c + "projects") : d ? $(".input-text").val("sudo " + e[d] + " " + c + "post_list.md") : $(".input-text").val(e[d] + " " + c + "post_list.md")
}
} else tabTw ? ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + b + "<br>./ cat cd<br>clear hello help<br>hey hi logout<br>ls php-is-the-best<br>uname<br>"), tabTw = 0) : tabTw = 1
}
window.onresize = function () {
$(".input-text").width($(document).width() - $(".prefix").width() - 57)
};
$(document).bind("keydown", function (b) {
$(".input-text").focus();
13 == b.keyCode && (isInCat ? ($("#main").html($("#main").html() + "<br>"), $("body,html").animate({scrollTop: $(document).height()}, 0)) : (mainFunc($(".input-text").val()), isInHis = 0), tabTw = 0);
38 == b.keyCode && (hisComm("up"), tabTw = 0);
40 == b.keyCode && (hisComm("down"), tabTw = 0);
9 == b.keyCode && (pressTab($(".input-text").val()), b.preventDefault(), $("body,html").animate({scrollTop: $(document).height()}, 0), $(".input-text").focus());
1 == b.ctrlKey && 67 == b.keyCode && (isInCat ? ($("#main").html($("#main").html() + "^C<br>"), $(".prefix,.input-text").show(), isInCat = 0) : ($("#main").html($("#main").html() + "[" + usrName + "@hfiprogramming.club " + nowPosition + "]# " + $(".input-text").val() + "^C<br>"), $(".input-text").val("")), $("body,html").animate({scrollTop: $(document).height()}, 0), $(".input-text").focus(), tabTw = b.keyCode = 0)
});</script>
</body>
</html>