80ms > 100ms

This commit is contained in:
Thomas Smith 2023-02-28 13:12:46 -05:00
parent cec58acd30
commit d8366cf226
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
commandOutput2 += char; commandOutput2 += char;
command2.input = command2.input.slice(1); command2.input = command2.input.slice(1);
document.querySelector('#terminal-output-2').innerHTML = commandOutput2; document.querySelector('#terminal-output-2').innerHTML = commandOutput2;
setTimeout(typeCommand2, 100); setTimeout(typeCommand2, 80);
} }
const observer2 = new IntersectionObserver((entries) => { const observer2 = new IntersectionObserver((entries) => {

View file

@ -34,7 +34,7 @@
commandOutput3 += char; commandOutput3 += char;
command3.input = command3.input.slice(1); command3.input = command3.input.slice(1);
document.querySelector('#terminal-output-3').innerHTML = commandOutput3; document.querySelector('#terminal-output-3').innerHTML = commandOutput3;
setTimeout(typeCommand3, 100); setTimeout(typeCommand3, 80);
} }
const terminalOutput = document.querySelector('#terminal-output-3'); const terminalOutput = document.querySelector('#terminal-output-3');

View file

@ -36,7 +36,7 @@
commandOutput4 += char; commandOutput4 += char;
command4.input = command4.input.slice(1); command4.input = command4.input.slice(1);
document.querySelector('#terminal-output-4').innerHTML = commandOutput4; document.querySelector('#terminal-output-4').innerHTML = commandOutput4;
setTimeout(typeCommand4, 100); setTimeout(typeCommand4, 80);
} }
const terminalOutput4 = document.querySelector('#terminal-output-4'); const terminalOutput4 = document.querySelector('#terminal-output-4');

View file

@ -61,7 +61,7 @@
if (document.querySelector(".grid-gray").contains(document.createTextNode(currentChar))) { if (document.querySelector(".grid-gray").contains(document.createTextNode(currentChar))) {
setTimeout(typeCommand, 50); // Reduce timeout delay for '#' character for faster animation setTimeout(typeCommand, 50); // Reduce timeout delay for '#' character for faster animation
} else { } else {
setTimeout(typeCommand, 100); setTimeout(typeCommand, 80);
} }
document.querySelector("#terminal-output").innerHTML = commandOutput; document.querySelector("#terminal-output").innerHTML = commandOutput;