()
| 60 | |
| 61 | // Function to type text slowly |
| 62 | function type() { |
| 63 | if (index < text.length) { |
| 64 | textBox.textContent += text.charAt(index); // Append the current character |
| 65 | index++; |
| 66 | setTimeout(type, 50); // Schedule the next character typing |
| 67 | } else { |
| 68 | isTyping = false; // Reset flag when typing is done |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | type(); // Start typing the text |
| 73 | } |
no outgoing calls
no test coverage detected