Skip to content

Commit

Permalink
Updated cli string parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cillustrisimo authored Nov 11, 2023
1 parent 8247adc commit b7fdfbd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function myFunction() {

(function($){
$('#terminal').terminal(function(command, term) {
command = command.replace(/\s+/g,'');

if (command == 'sudo') {
try {
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
Expand Down Expand Up @@ -49,7 +51,7 @@ function myFunction() {
}
} else
term.echo('');
if (command == 'cd about') {
if (command == 'cdabout') {
try {
window.location.href = "https://illustrisimo.dev/pages/about.html";
if (result !== undefined)
Expand All @@ -59,7 +61,7 @@ function myFunction() {
}
} else
term.echo('');
if (command == 'cd resume') {
if (command == 'cdresume') {
try {
window.location.href = "https://illustrisimo.dev/pages/resume.html";
if (result !== undefined)
Expand All @@ -69,7 +71,7 @@ function myFunction() {
}
} else
term.echo('');
if (command == 'cd projects') {
if (command == 'cdprojects') {
try {
window.location.href = "https://illustrisimo.dev/pages/projects.html";
if (result !== undefined)
Expand Down

0 comments on commit b7fdfbd

Please sign in to comment.