theWitcher commited on
Commit
59c4a20
·
1 Parent(s): da113c8

update tools title

Browse files
Files changed (2) hide show
  1. chatbot.html +14 -0
  2. index.html +15 -2
chatbot.html CHANGED
@@ -88,7 +88,9 @@
88
  <div class="chat-container">
89
  <div class="chat-header">
90
  צ'אט עם הבינה של שגיא
 
91
  </div>
 
92
  <div class="chat-messages" id="chatMessages">
93
  <div class="chat-bubble bot-bubble">שלום! איך אפשר לעזור לך היום?</div>
94
  </div>
@@ -99,6 +101,18 @@
99
  </div>
100
 
101
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
102
  function sendMessage() {
103
  const input = document.getElementById('chatInput');
104
  const message = input.value.trim();
 
88
  <div class="chat-container">
89
  <div class="chat-header">
90
  צ'אט עם הבינה של שגיא
91
+ <span id="toolsCount" class="ml-2 text-sm bg-white text-purple-600 font-semibold px-2 py-1 rounded-full shadow-sm"></span>
92
  </div>
93
+
94
  <div class="chat-messages" id="chatMessages">
95
  <div class="chat-bubble bot-bubble">שלום! איך אפשר לעזור לך היום?</div>
96
  </div>
 
101
  </div>
102
 
103
  <script>
104
+ // קריאת tools.json ועדכון כמות הכלים
105
+ fetch('tools.json')
106
+ .then(res => res.json())
107
+ .then(tools => {
108
+ const count = tools.length;
109
+ document.getElementById('toolsCount').textContent = `${count} כלים זמינים`;
110
+ })
111
+ .catch(err => {
112
+ console.error("שגיאה בטעינת כמות הכלים:", err);
113
+ document.getElementById('toolsCount').textContent = 'טעינה נכשלה';
114
+ });
115
+
116
  function sendMessage() {
117
  const input = document.getElementById('chatInput');
118
  const message = input.value.trim();
index.html CHANGED
@@ -462,7 +462,11 @@ https://chatgpt.com/c/67efa5ae-ab80-8005-a7d4-de3ced6ccec4
462
  <button onclick="toggleChatWindow()" class="text-white">
463
  <i class="fas fa-times"></i>
464
  </button>
465
- <div class="font-medium">עוזר AI של שגיא</div>
 
 
 
 
466
  <div class="w-6"></div> <!-- Spacer for balance -->
467
  </div>
468
 
@@ -1160,7 +1164,16 @@ https://chatgpt.com/c/67efa5ae-ab80-8005-a7d4-de3ced6ccec4
1160
  iframe.src = "";
1161
  modal.classList.add('hidden');
1162
  };
1163
-
 
 
 
 
 
 
 
 
 
1164
  </script>
1165
  <!-- /* --------------------------------- */
1166
  /* ------- END OF JAVASCRIPT ------- */
 
462
  <button onclick="toggleChatWindow()" class="text-white">
463
  <i class="fas fa-times"></i>
464
  </button>
465
+ <div class="chat-header">
466
+ צ'אט עם הבינה של שגיא
467
+ <span id="toolsCount" class="ml-2 text-sm bg-white text-purple-600 font-semibold px-2 py-1 rounded-full shadow-sm"></span>
468
+ </div>
469
+ <!-- <div class="font-medium">עוזר AI של שגיא</div> -->
470
  <div class="w-6"></div> <!-- Spacer for balance -->
471
  </div>
472
 
 
1164
  iframe.src = "";
1165
  modal.classList.add('hidden');
1166
  };
1167
+ fetch('tools.json')
1168
+ .then(res => res.json())
1169
+ .then(tools => {
1170
+ const count = tools.length;
1171
+ document.getElementById('toolsCount').textContent = `${count} כלים זמינים`;
1172
+ })
1173
+ .catch(err => {
1174
+ console.error("שגיאה בטעינת כמות הכלים:", err);
1175
+ document.getElementById('toolsCount').textContent = 'טעינה נכשלה';
1176
+ });
1177
  </script>
1178
  <!-- /* --------------------------------- */
1179
  /* ------- END OF JAVASCRIPT ------- */