Skip to content

Commit 9dfa7ed

Browse files
Update index.html
1 parent 90f199c commit 9dfa7ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
<div id="typewriter"></div>
2828

2929
<script>
30-
const text = "I tried to talk to the Ishist... But he was debating with his clone.";
30+
const text = "I tried to talk to the Ishist. But he was debating with his clone.";
3131
const typewriter = document.getElementById('typewriter');
3232
let i = 0;
3333

3434
function getRandomDelay(min, max) {
35-
return Math.floor((Math.random() ** 10)* (max - min + 1)) + min;
35+
return Math.floor((Math.random() ** 20)* (max - min + 1)) + min;
3636
}
3737

3838
function type() {
3939
if (i < text.length) {
4040
typewriter.textContent += text.charAt(i);
4141
i++;
42-
setTimeout(type, getRandomDelay(30,2000)); // typing speed in ms
42+
setTimeout(type, getRandomDelay(20,1200)); // typing speed in ms
4343
} else {
4444
// Stop blinking cursor
4545
typewriter.style.borderRight = 'none';

0 commit comments

Comments
 (0)