File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' ;
You can’t perform that action at this time.
0 commit comments