micymike commited on
Commit
a8c146f
Β·
1 Parent(s): 077b5b9

"Removed image files and replaced img tags with font awesome icons in chat.html"

Browse files
templates/chat.html CHANGED
@@ -27,7 +27,7 @@
27
 
28
  body {
29
  font-family: Arial, sans-serif;
30
- background-image: url('./image/starlets.jpg');
31
  background-size: cover;
32
  background-position: center;
33
  background-repeat: no-repeat;
@@ -210,7 +210,7 @@
210
  <div class="card">
211
  <div class="card-header">
212
  <div>
213
- <img src="/image/starlets.jpg" class="user_img_msg mr-2" alt="Chatbot Avatar">
214
  <span>Elderly Companion-Chatbot</span>
215
  </div>
216
  <div id="darkModeToggle">
@@ -221,7 +221,7 @@
221
  <!-- Initial message -->
222
  <div class="message d-flex justify-content-start mb-4">
223
  <div class="img_cont_msg">
224
- <img src="/image/med.jpg" class="user_img_msg" alt="Bot Avatar">
225
  </div>
226
  <div class="msg_cotainer">
227
  Hello πŸ‘‹ I'm here to help you with questions related to Your Health! Please feel free to interact 😊
@@ -294,18 +294,15 @@
294
  $("#messageArea").on("submit", function(event) {
295
  event.preventDefault();
296
 
297
- const msg = $("#text").val().trim();
298
- if (msg === "") return;
299
-
300
  const currentTime = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
301
-
302
  const userHtml = `<div class="message d-flex justify-content-end mb-4">
303
  <div class="msg_cotainer_send">
304
  ${msg}
305
  <span class="msg_time">${currentTime}</span>
306
  </div>
307
  <div class="img_cont_msg">
308
- <img src="/image/user.webp" class="user_img_msg" alt="User Avatar">
309
  </div>
310
  </div>`;
311
  appendMessage(userHtml);
@@ -320,7 +317,7 @@
320
  hideTypingIndicator();
321
  const botHtml = `<div class="message d-flex justify-content-start mb-4">
322
  <div class="img_cont_msg">
323
- <img src="/image/med.jpg" class="user_img_msg" alt="Bot Avatar">
324
  </div>
325
  <div class="msg_cotainer">
326
  ${data.response}
@@ -346,7 +343,7 @@
346
  const currentTime = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
347
  appendMessage(`<div class="message d-flex justify-content-start mb-4">
348
  <div class="img_cont_msg">
349
- <img src="/image/med.jpg" class="user_img_msg" alt="Bot Avatar">
350
  </div>
351
  <div class="msg_cotainer">
352
  Hello πŸ‘‹ I'm here to help you with questions related to Your Health! Please feel free to interact 😊
@@ -365,4 +362,4 @@
365
  });
366
  </script>
367
  </body>
368
- </html>
 
27
 
28
  body {
29
  font-family: Arial, sans-serif;
30
+ background-image: url('image/starlets.jpg');
31
  background-size: cover;
32
  background-position: center;
33
  background-repeat: no-repeat;
 
210
  <div class="card">
211
  <div class="card-header">
212
  <div>
213
+ <i class="fas fa-robot fa-2x user_img_msg mr-2"></i>
214
  <span>Elderly Companion-Chatbot</span>
215
  </div>
216
  <div id="darkModeToggle">
 
221
  <!-- Initial message -->
222
  <div class="message d-flex justify-content-start mb-4">
223
  <div class="img_cont_msg">
224
+ <i class="fas fa-robot fa-2x user_img_msg"></i>
225
  </div>
226
  <div class="msg_cotainer">
227
  Hello πŸ‘‹ I'm here to help you with questions related to Your Health! Please feel free to interact 😊
 
294
  $("#messageArea").on("submit", function(event) {
295
  event.preventDefault();
296
 
297
+ const msg = $("#text").val();
 
 
298
  const currentTime = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
 
299
  const userHtml = `<div class="message d-flex justify-content-end mb-4">
300
  <div class="msg_cotainer_send">
301
  ${msg}
302
  <span class="msg_time">${currentTime}</span>
303
  </div>
304
  <div class="img_cont_msg">
305
+ <i class="fas fa-user fa-2x user_img_msg"></i>
306
  </div>
307
  </div>`;
308
  appendMessage(userHtml);
 
317
  hideTypingIndicator();
318
  const botHtml = `<div class="message d-flex justify-content-start mb-4">
319
  <div class="img_cont_msg">
320
+ <i class="fas fa-robot fa-2x user_img_msg"></i>
321
  </div>
322
  <div class="msg_cotainer">
323
  ${data.response}
 
343
  const currentTime = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
344
  appendMessage(`<div class="message d-flex justify-content-start mb-4">
345
  <div class="img_cont_msg">
346
+ <i class="fas fa-robot fa-2x user_img_msg"></i>
347
  </div>
348
  <div class="msg_cotainer">
349
  Hello πŸ‘‹ I'm here to help you with questions related to Your Health! Please feel free to interact 😊
 
362
  });
363
  </script>
364
  </body>
365
+ </html>
image/med.jpg β†’ templates/image/med.png RENAMED
File without changes
image/starlets.jpg β†’ templates/image/starlets.png RENAMED
File without changes
image/user.webp β†’ templates/image/user.png RENAMED
File without changes