()
| 442 | p.scrollIntoView({ behavior: 'smooth' }); |
| 443 | let index = 0; |
| 444 | async function writeCode() { |
| 445 | while (index < code.length) { |
| 446 | span.innerHTML += code[index++]; |
| 447 | await new Promise((writeCode) => setTimeout(writeCode, typingSpeed)); |
| 448 | } |
| 449 | return; |
| 450 | } |
| 451 | await writeCode(); |
| 452 | |
| 453 | p.innerHTML += " " |