Mark-Lasfar
commited on
Commit
·
a1a7a58
1
Parent(s):
19bd628
add chat
Browse files- static/js/chat.js +1 -1
- templates/chat.html +0 -10
static/js/chat.js
CHANGED
|
@@ -889,7 +889,7 @@ async function submitMessage() {
|
|
| 889 |
}
|
| 890 |
}
|
| 891 |
|
| 892 |
-
const endTime =
|
| 893 |
const thinkingTime = Math.round((endTime - startTime) / 1000); // حساب الوقت بالثواني
|
| 894 |
streamMsg.dataset.text += `\n\n*Processed in ${thinkingTime} seconds.*`;
|
| 895 |
if (streamMsg) {
|
|
|
|
| 889 |
}
|
| 890 |
}
|
| 891 |
|
| 892 |
+
const endTime = Date.now();
|
| 893 |
const thinkingTime = Math.round((endTime - startTime) / 1000); // حساب الوقت بالثواني
|
| 894 |
streamMsg.dataset.text += `\n\n*Processed in ${thinkingTime} seconds.*`;
|
| 895 |
if (streamMsg) {
|
templates/chat.html
CHANGED
|
@@ -471,16 +471,6 @@
|
|
| 471 |
document.getElementById('pwa-instructions').classList.remove('hidden');
|
| 472 |
localStorage.setItem('pwa-instructions-shown', 'true');
|
| 473 |
}
|
| 474 |
-
|
| 475 |
-
// Enhance touch gestures for sidebar
|
| 476 |
-
const sidebar = document.getElementById('sidebar');
|
| 477 |
-
const hammer = new Hammer(sidebar);
|
| 478 |
-
hammer.on('swipeleft', () => {
|
| 479 |
-
sidebar.classList.remove('open');
|
| 480 |
-
});
|
| 481 |
-
hammer.on('swiperight', () => {
|
| 482 |
-
sidebar.classList.add('open');
|
| 483 |
-
});
|
| 484 |
</script>
|
| 485 |
|
| 486 |
</body>
|
|
|
|
| 471 |
document.getElementById('pwa-instructions').classList.remove('hidden');
|
| 472 |
localStorage.setItem('pwa-instructions-shown', 'true');
|
| 473 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
</script>
|
| 475 |
|
| 476 |
</body>
|