Spaces:
Sleeping
Sleeping
redfernstech
commited on
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -220,7 +220,7 @@ async function sendMessage() {
|
|
220 |
return `<a href="${url}" target="_blank">${linkText}</a>`;
|
221 |
});
|
222 |
messageElement.innerHTML = `<span class="${sender.toLowerCase()}-icon">
|
223 |
-
${sender === "User" ? '<i class="fas fa-user"></i>' : '<img src="https://
|
224 |
</span>${formattedMessage}<div class="timestamp">${new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}</div>`;
|
225 |
chatHistory.appendChild(messageElement);
|
226 |
chatHistory.scrollTop = chatHistory.scrollHeight; // Scroll to bottom
|
|
|
220 |
return `<a href="${url}" target="_blank">${linkText}</a>`;
|
221 |
});
|
222 |
messageElement.innerHTML = `<span class="${sender.toLowerCase()}-icon">
|
223 |
+
${sender === "User" ? '<i class="fas fa-user"></i>' : '<img src="https://i.ibb.co/khk6Ywx/bot.jpg" alt="Bot" style="width: 20px; height: 20px; border-radius: 50%;">'}
|
224 |
</span>${formattedMessage}<div class="timestamp">${new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}</div>`;
|
225 |
chatHistory.appendChild(messageElement);
|
226 |
chatHistory.scrollTop = chatHistory.scrollHeight; // Scroll to bottom
|