FumesAI
commited on
Update index.html
Browse files- 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(
|
206 |
|
207 |
// Set the innerHTML of the newMessage element
|
208 |
-
newMessage.innerHTML =
|
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 |
|