ikraamkb commited on
Commit
08ee300
·
verified ·
1 Parent(s): d867421

Update static/application.js

Browse files
Files changed (1) hide show
  1. static/application.js +1 -18
static/application.js CHANGED
@@ -113,7 +113,7 @@ document.addEventListener("DOMContentLoaded", () => {
113
  createMessageBubble(question, "You", null, selectedFile.name);
114
 
115
  // Aidan is thinking...
116
- const thinkingBubble = createMessageBubble("Wait, Let me think 🤔...<div class="loader"></div>", "Aidan");
117
 
118
  const formData = new FormData();
119
  formData.append("question", question);
@@ -188,21 +188,4 @@ document.addEventListener("DOMContentLoaded", () => {
188
  backarrow.addEventListener('click', function () {
189
  window.location.href = '/';
190
  });
191
- const style = document.createElement('style');
192
- style.textContent = `
193
- .loader {
194
- display: inline-block;
195
- border: 2px solid #f3f3f3;
196
- border-top: 2px solid #3b82f6;
197
- border-radius: 50%;
198
- width: 16px;
199
- height: 16px;
200
- animation: spin 1s linear infinite;
201
- }
202
- @keyframes spin {
203
- 0% { transform: rotate(0deg); }
204
- 100% { transform: rotate(360deg); }
205
- }
206
- `;
207
- document.head.appendChild(style);
208
  });
 
113
  createMessageBubble(question, "You", null, selectedFile.name);
114
 
115
  // Aidan is thinking...
116
+ const thinkingBubble = createMessageBubble("Wait, Let me think 🤔...", "Aidan");
117
 
118
  const formData = new FormData();
119
  formData.append("question", question);
 
188
  backarrow.addEventListener('click', function () {
189
  window.location.href = '/';
190
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  });