Last animation adjustment

This commit is contained in:
Thomas Smith 2023-02-28 16:36:20 -05:00
parent 0efa2e5dcd
commit 153d0f2581

View file

@ -36,7 +36,8 @@
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, 80); const delay = Math.floor(Math.random() * 100) + 50; // random delay between 50 and 150 ms
setTimeout(typeCommand4, delay);
} }
const terminalOutput4 = document.querySelector('#terminal-output-4'); const terminalOutput4 = document.querySelector('#terminal-output-4');