FumesAI commited on
Commit
aa1ad9e
·
verified ·
1 Parent(s): c891fe9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -202,10 +202,10 @@
202
  userName.style.fontSize = '20px';
203
 
204
  // Check if the message contains "X [BOT]" and wrap it in a span
205
- var messageContent = data.message.replace('X [BOT]', '<span style="color: green;">X [BOT]</span>');
206
 
207
  // Set the innerHTML of the newMessage element
208
- newMessage.innerHTML = `${userName.outerHTML}<br>${messageContent}`;
209
 
210
  newMessage.classList.add('user-message');
211
 
 
202
  userName.style.fontSize = '20px';
203
 
204
  // Check if the message contains "X [BOT]" and wrap it in a span
205
+ var messageContent = data.message.replace(/X \[BOT\]/g, '<span style="color: green;">X [BOT]</span>');
206
 
207
  // Set the innerHTML of the newMessage element
208
+ newMessage.innerHTML = `<strong style="color: pink; font-size: 20px;">${data.user}</strong><br>${messageContent}`;
209
 
210
  newMessage.classList.add('user-message');
211