()
| 148 | } |
| 149 | |
| 150 | createInputField() { |
| 151 | const input = document.createElement('input'); |
| 152 | input.type = 'text'; |
| 153 | input.id = 'message-input'; |
| 154 | input.placeholder = 'Type your message...'; |
| 155 | const footer = document.querySelector('.chat-footer') || document.getElementById('chat-container'); |
| 156 | footer.appendChild(input); |
| 157 | return input; |
| 158 | } |
| 159 | |
| 160 | setupEventListeners() { |
| 161 | if (this.sendButton) { |