Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -2
index.html
CHANGED
|
@@ -675,7 +675,8 @@
|
|
| 675 |
historyItem.className = 'history-item';
|
| 676 |
historyItem.innerHTML = `
|
| 677 |
<div class="history-question">${truncateText(item.q, 70)}</div>
|
| 678 |
-
<div class="history-date">${
|
|
|
|
| 679 |
`;
|
| 680 |
historyItem.addEventListener('click', () => {
|
| 681 |
scrollToMessage(item.q);
|
|
@@ -811,7 +812,7 @@
|
|
| 811 |
messageDiv.innerHTML = `
|
| 812 |
<div class="message-header">
|
| 813 |
<span><i class="${sender === 'ai' ? 'fas fa-robot' : 'fas fa-user'}"></i> ${sender === 'ai' ? 'Legal Assistant' : 'You'}</span>
|
| 814 |
-
|
| 815 |
</div>
|
| 816 |
<div class="message-content">
|
| 817 |
${formatMessageContent(content)}
|
|
|
|
| 675 |
historyItem.className = 'history-item';
|
| 676 |
historyItem.innerHTML = `
|
| 677 |
<div class="history-question">${truncateText(item.q, 70)}</div>
|
| 678 |
+
<div class="history-date">${new Date(item.timestamp).toLocaleString()}</div>
|
| 679 |
+
|
| 680 |
`;
|
| 681 |
historyItem.addEventListener('click', () => {
|
| 682 |
scrollToMessage(item.q);
|
|
|
|
| 812 |
messageDiv.innerHTML = `
|
| 813 |
<div class="message-header">
|
| 814 |
<span><i class="${sender === 'ai' ? 'fas fa-robot' : 'fas fa-user'}"></i> ${sender === 'ai' ? 'Legal Assistant' : 'You'}</span>
|
| 815 |
+
<span>${timeString}</span>
|
| 816 |
</div>
|
| 817 |
<div class="message-content">
|
| 818 |
${formatMessageContent(content)}
|