-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.js
160 lines (145 loc) · 5.06 KB
/
commands.js
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
var email = "mailto:[email protected]";
var linkedin = "https://www.linkedin.com/in/fabian-sucholas-8547b7262/";
var twitter = "https://twitter.com/Fejbien1";
var instagram = "https://www.instagram.com/fabianiutki/";
var github = "https://github.com/Fejbien";
var steam = "https://steamcommunity.com/profiles/76561198201677078";
var imgtoascii = "./subSites/imgToAscii.html";
var cv = "./subSites/cv/index.html";
var thisProject = "https://github.com/Fejbien/Fejbien.github.io";
// All commands that are opening a new tab
urlsDirect = {
linkedin: linkedin,
twitter: twitter,
instagram: instagram,
github: github,
steam: steam,
imgtoascii: imgtoascii,
cv: cv,
this: thisProject,
};
games = {
tictactoe: "",
};
commands = {
help: {
style: "color2 margin",
text: [
"<br>",
"<span class='command'>about me</span> About me",
"<span class='command'>socials</span> Social links",
"<span class='command'>help</span> Shows list of available commands",
"<span class='command'>email</span> It is just my mail",
"<span class='command'>welcome</span> Shows welcome message",
"<span class='command'>clear</span> Clears the terminal",
"<span class='command'>error</span> Shows error message",
"<span class='command'>linkedin</span> Opens new tab of my linkedin profile",
"<span class='command'>twitter</span> Opens new tab of my twitter profile",
"<span class='command'>instagram</span> Opens new tab of my instagram profile",
"<span class='command'>github</span> Opens new tab of my github profile",
"<span class='command'>steam</span> Opens new tab of my steam profile",
"<span class='command'>this</span> Opens new tab of this site's project on Github",
"<span class='command'>tic tac toe</span> Starts a game of tic tac toe vs computer",
"<span class='command'>CV</span> Opens subsite of my CV",
"<span class='command'>img to ascii</span> Opens subsite with an img to ascii converter (Under construction)",
"<br>",
"Not case sensetive nor space sensetive :D",
],
},
aboutme: {
style: "color2 margin",
text: [
"<br>",
"Hey, I'm Fabian!",
"Currently I'm a student at PUT ",
"Love programming, learning new things and the last but not least, watching low budget movies :D",
"<br>",
],
},
socials: {
style: "color2 margin",
text: [
"<br>",
'linkedin <a href="' +
linkedin +
'" target="_blank">linkedin/FabianSucholas' +
"</a>",
'twitter <a href="' +
twitter +
'" target="_blank">twitter/Fejbien1' +
"</a>",
'instagram <a href="' +
instagram +
'" target="_blank">instagram/Fabianiutki' +
"</a>",
'github <a href="' +
github +
'" target="_blank">github/Fejbien' +
"</a>",
'Steam :D <a href="' +
steam +
'" target="_blank">steam/Fabian' +
"</a>",
"<br>",
],
},
email: {
style: "color2 margin",
text: [
"<br>",
"Email me @ <a href=" + email + ">[email protected]</a>",
"<br>",
],
},
welcome: {
style: "color2",
text: ["Welcome to my web terminal :D", "Type help if lost"],
},
error: {
style: "error",
text: [
"<span class='inherit'>Command not found. List of available commands: <span class='command'>'help'</span>.</span>",
],
},
urlDirect: {
style: "color2",
text: ["Opening new tab of "],
},
gameStart: {
style: "color2",
text: ["Starts now. The game of "],
},
clear: {
style: "color2",
text: ["Clearing..."],
},
// "Secret commands"
fuckyou: {
style: "error margin",
text: ["<span class='inherit'>Do not swear at me :c</span>"],
},
fuck: {
style: "error margin",
text: ["<span class='inherit'>Do not swear!</span>"],
},
isthereasecret: {
style: "margin color2",
text: ["WoW you asked! Sadly there is no secret here :c"],
},
arethereanysecrets: {
style: "margin color2",
text: ["WoW you asked! Sadly there are no secrets here :c"],
},
secret: {
style: "margin color2",
text: [
"Maybe ask first? <span class='command'>is there a secret</span>",
],
},
secrets: {
style: "margin color2",
text: [
"Maybe ask first? <span class='command'>are there any secrets</span>",
],
},
};