Spaces:
Sleeping
Sleeping
Update templates/chat.html
Browse files- templates/chat.html +3 -6
templates/chat.html
CHANGED
@@ -5,8 +5,9 @@
|
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
<title>JUIT AI Assist</title>
|
8 |
-
<link rel="shortcut icon" href="/static/images/
|
9 |
|
|
|
10 |
|
11 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
|
12 |
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
|
@@ -20,7 +21,7 @@
|
|
20 |
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
|
21 |
</script>
|
22 |
<script defer src="/_vercel/insights/script.js"></script>
|
23 |
-
<link rel="stylesheet" type="text/css" href="
|
24 |
|
25 |
<style>
|
26 |
|
@@ -229,7 +230,6 @@
|
|
229 |
// --- Typewriter effect for bot response START ---
|
230 |
var lines = data.split("**");
|
231 |
var fullText = lines.join(' ');
|
232 |
-
|
233 |
// Create the container for the bot message
|
234 |
var botContainer = $('<div class="d-flex justify-content-start mb-4"></div>');
|
235 |
var imgDiv = $('<div class="img_cont_msg"><img src="/static/images/juit.png" class="rounded-circle user_img_msg"></div>');
|
@@ -237,16 +237,13 @@
|
|
237 |
botContainer.append(imgDiv);
|
238 |
botContainer.append(msgDiv);
|
239 |
$("#messageFormeight").append(botContainer);
|
240 |
-
|
241 |
var i = 0;
|
242 |
-
|
243 |
function typeWriter() {
|
244 |
if (i < fullText.length) {
|
245 |
var charSpan = $('<span style="opacity: 0;">' + fullText.charAt(i) + '</span>');
|
246 |
msgDiv.append(charSpan); // Append the character
|
247 |
|
248 |
charSpan.animate({ opacity: 1 }, 150); // Fade-in effect
|
249 |
-
|
250 |
i++;
|
251 |
setTimeout(typeWriter, 15); // Adjust delay as needed
|
252 |
} else {
|
|
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
<title>JUIT AI Assist</title>
|
8 |
+
<link rel="shortcut icon" href="/static/images/juit.png" type="image/x-icon">
|
9 |
|
10 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11 |
|
12 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
|
13 |
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
|
|
|
21 |
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
|
22 |
</script>
|
23 |
<script defer src="/_vercel/insights/script.js"></script>
|
24 |
+
<link rel="stylesheet" type="text/css" href="static/style.css" />
|
25 |
|
26 |
<style>
|
27 |
|
|
|
230 |
// --- Typewriter effect for bot response START ---
|
231 |
var lines = data.split("**");
|
232 |
var fullText = lines.join(' ');
|
|
|
233 |
// Create the container for the bot message
|
234 |
var botContainer = $('<div class="d-flex justify-content-start mb-4"></div>');
|
235 |
var imgDiv = $('<div class="img_cont_msg"><img src="/static/images/juit.png" class="rounded-circle user_img_msg"></div>');
|
|
|
237 |
botContainer.append(imgDiv);
|
238 |
botContainer.append(msgDiv);
|
239 |
$("#messageFormeight").append(botContainer);
|
|
|
240 |
var i = 0;
|
|
|
241 |
function typeWriter() {
|
242 |
if (i < fullText.length) {
|
243 |
var charSpan = $('<span style="opacity: 0;">' + fullText.charAt(i) + '</span>');
|
244 |
msgDiv.append(charSpan); // Append the character
|
245 |
|
246 |
charSpan.animate({ opacity: 1 }, 150); // Fade-in effect
|
|
|
247 |
i++;
|
248 |
setTimeout(typeWriter, 15); // Adjust delay as needed
|
249 |
} else {
|