Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaradhya committed Jul 28, 2024
1 parent afb443e commit 743b221
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

const fileSystem = {
'/': {
'README': 'Welcome to my little funny spot on the internet!',
'README': 'Welcome to my little funny spot on the internet',
'projects': {
'updates.txt': 'coming soon!',
},
Expand All @@ -89,12 +89,6 @@
const args = cmd.split(' ');
const command = args[0].toLowerCase();

// Check for potential code injection
if (cmd.includes('<script') || cmd.includes('javascript:')) {
printToTerminal("Nice try! But I won't execute that. 😉");
return;
}

switch(command) {
case 'ls':
const items = Object.keys(currentDir).map(item => {
Expand Down Expand Up @@ -138,6 +132,11 @@
case 'clear':
terminal.innerHTML = '';
break;
case 'bruh':
terminal.innerHTML = 'bruh';
break;
case 'sudo':
printToTerminal('who dares to wield this power?')
case 'help':
printToTerminal('Available commands: ls, cd, cat, echo, pwd, clear, help');
break;
Expand Down Expand Up @@ -179,7 +178,7 @@
});

updatePrompt();
printToTerminal('Hello! Type "help" for available commands.');
printToTerminal("Hello! I'm Aaradhya. Webpage is work in progress :) Type help for available commands!");
</script>
</body>
</html>

0 comments on commit 743b221

Please sign in to comment.