()
| 714 | } |
| 715 | |
| 716 | function enableAllButtons(): void { |
| 717 | const buttons = ['btnGenerate', 'btnStream', 'btnClear']; |
| 718 | buttons.forEach(id => { |
| 719 | const btn = document.getElementById(id) as HTMLButtonElement; |
| 720 | if (btn) btn.disabled = false; |
| 721 | }); |
| 722 | } |
| 723 | |
| 724 | // ============================================================================ |
| 725 | // Initialization |