Skip to content

Commit 6d39495

Browse files
authored
Update terminal.js
1 parent bc7e435 commit 6d39495

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

terminal.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let history = []
22
let theme_for_terminal = "dark"
33
$('body').terminal({
44
help: function () {
5-
this.echo('<h1 style="color:red;">© 2024 Thecode764 Portfolio Website</h1><p style="color:yellowgreen;">Welcome to Thecode764 terminal portfolio<br>Here is <b>Help section</b></p><br><p style="color:blue;">pwd: Show the dir<br>socials: My social media<br>neofetch: The neofetch command<br>clear: Clear the screen<br>reboot: Restart the terminal<br>whoami: The whoami command<br>about: About me<br>history: Command history<br>search: Search in google for space use %20<br>poweroff: Power off this terminal<br>echo: Print text<br>themeset --help: Set a theme for terminal</p>', { typing: true, delay: 30, raw:true });
5+
this.echo('<h1 style="color:red;">© 2024 Thecode764 Portfolio Website</h1><p style="color:yellowgreen;">Welcome to Thecode764 terminal portfolio<br>Here is <b>Help section</b></p><br><p style="color:blue;">pwd: Show the dir<br>socials: My social media<br>neofetch: The neofetch command<br>clear: Clear the screen<br>reboot: Restart the terminal<br>whoami: The whoami command<br>about: About me<br>history: Command history<br>search: Search in google for space use %20<br>poweroff: Power off this terminal<br>echo: Print text<br>themeset --help: Set a theme for terminal<br>snk: Snake game for my github profile</p>', { typing: true, delay: 30, raw:true });
66
history.push("help")
77
},
88
pwd: function () {
@@ -92,6 +92,13 @@ $('body').terminal({
9292
this.echo(`<h1 style="color:red;">Theme not found! 🔇</h1>`,{raw:true})
9393
history.push(`themeset ${theme}`)
9494
}
95+
},
96+
snk: function () {
97+
this.echo(`<picture>
98+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kian-ahmadian/kian-ahmadian/output/github-contribution-grid-snake-dark.svg">
99+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/kian-ahmadian/kian-ahmadian/output/github-contribution-grid-snake.svg">
100+
<img alt="Kian Ahmadian contribution" src="https://raw.githubusercontent.com/kian-ahmadian/kian-ahmadian/output/github-contribution-grid-snake.svg">
101+
</picture>`, {raw:true})
95102
}
96103
}, {
97104
greetings: '<h1 style="color:red;">Welcome to Thecode764 Portfolio website</h1><p style="color:yellowgreen;">The three version of my website was created in 2024 for best design this terminal created with jquery.terminal type "help" for start 🔍️</p><p style="color:red;">⚡️ Wait for command output please! i used writer effects</p><p style="color:blue;">The terminal is fast ⚡️</p><p style="color:orange;">✅ Have auto complete with TAB</p>',
@@ -101,4 +108,4 @@ $('body').terminal({
101108
term.echo(`<h1 style="color:red;">Command error</h1><p>Command <b>${command} Not Found!</b><br><p style="color:green;"><b>Type :help: for view commands 🔧</b></p>`, {raw: true, typing: true, delay: 30})
102109
},
103110
completion: true
104-
});
111+
});

0 commit comments

Comments
 (0)