GitHub Copilot commited on
Commit
4d8e202
·
1 Parent(s): 393473c

Fix mojibake/noisy UI text encoding in frontend

Browse files
Files changed (1) hide show
  1. static/index.html +11 -11
static/index.html CHANGED
@@ -638,7 +638,7 @@
638
 
639
  /* Typing effect */
640
  .typing-cursor::after {
641
- content: 'â–‹';
642
  animation: blink 1s infinite;
643
  color: var(--accent);
644
  }
@@ -1040,7 +1040,7 @@
1040
  </div>
1041
  <div class="header-actions">
1042
  <button class="icon-btn" onclick="toggleTheme()" title="Toggle theme">
1043
- <span id="themeIcon">🌙</span>
1044
  </button>
1045
  <button class="icon-btn" onclick="showConnectModal()" title="Settings">
1046
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
@@ -1062,19 +1062,19 @@
1062
  <p class="welcome-subtitle">Your AI assistant, developed by Krish CS</p>
1063
  <div class="suggestions-grid">
1064
  <div class="suggestion-card" onclick="sendSuggestion('Explain quantum computing in simple terms')">
1065
- <div class="suggestion-icon">💡</div>
1066
  <div class="suggestion-text">Explain quantum computing in simple terms</div>
1067
  </div>
1068
  <div class="suggestion-card" onclick="sendSuggestion('Write a Python function to sort a list')">
1069
- <div class="suggestion-icon">💻</div>
1070
  <div class="suggestion-text">Write a Python function to sort a list</div>
1071
  </div>
1072
  <div class="suggestion-card" onclick="sendSuggestion('What makes you different from other AIs?')">
1073
- <div class="suggestion-icon">✨</div>
1074
  <div class="suggestion-text">What makes you different from other AIs?</div>
1075
  </div>
1076
  <div class="suggestion-card" onclick="sendSuggestion('Help me learn a new programming language')">
1077
- <div class="suggestion-icon">📚</div>
1078
  <div class="suggestion-text">Help me learn a new programming language</div>
1079
  </div>
1080
  </div>
@@ -1116,7 +1116,7 @@
1116
  </button>
1117
  </div>
1118
  <div class="input-footer">
1119
- <span class="input-footer-text">Krish Mind AI • Developed by Krish CS</span>
1120
  </div>
1121
  </div>
1122
  </div>
@@ -1195,7 +1195,7 @@
1195
 
1196
  function updateThemeIcon() {
1197
  const theme = document.documentElement.getAttribute('data-theme');
1198
- document.getElementById('themeIcon').textContent = theme === 'dark' ? '☀️' : '🌙';
1199
  }
1200
 
1201
  // Sidebar toggle
@@ -1223,10 +1223,10 @@
1223
  }
1224
 
1225
  // Backend root serves HTML in this app; avoid forcing JSON parse.
1226
- console.log("✅ Connected to Local Server");
1227
  } catch (err) {
1228
- console.error("❌ Local Server Not Found. Run: python scripts/server_local.py");
1229
- addMessage('assistant', '**⚠️ Local Server Not Running!**\n\nPlease run this command in your terminal:\n`python scripts/server_local.py`');
1230
  }
1231
  }
1232
 
 
638
 
639
  /* Typing effect */
640
  .typing-cursor::after {
641
+ content: '|';
642
  animation: blink 1s infinite;
643
  color: var(--accent);
644
  }
 
1040
  </div>
1041
  <div class="header-actions">
1042
  <button class="icon-btn" onclick="toggleTheme()" title="Toggle theme">
1043
+ <span id="themeIcon">&#127769;</span>
1044
  </button>
1045
  <button class="icon-btn" onclick="showConnectModal()" title="Settings">
1046
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
 
1062
  <p class="welcome-subtitle">Your AI assistant, developed by Krish CS</p>
1063
  <div class="suggestions-grid">
1064
  <div class="suggestion-card" onclick="sendSuggestion('Explain quantum computing in simple terms')">
1065
+ <div class="suggestion-icon">&#128161;</div>
1066
  <div class="suggestion-text">Explain quantum computing in simple terms</div>
1067
  </div>
1068
  <div class="suggestion-card" onclick="sendSuggestion('Write a Python function to sort a list')">
1069
+ <div class="suggestion-icon">&#128187;</div>
1070
  <div class="suggestion-text">Write a Python function to sort a list</div>
1071
  </div>
1072
  <div class="suggestion-card" onclick="sendSuggestion('What makes you different from other AIs?')">
1073
+ <div class="suggestion-icon">&#10024;</div>
1074
  <div class="suggestion-text">What makes you different from other AIs?</div>
1075
  </div>
1076
  <div class="suggestion-card" onclick="sendSuggestion('Help me learn a new programming language')">
1077
+ <div class="suggestion-icon">&#128218;</div>
1078
  <div class="suggestion-text">Help me learn a new programming language</div>
1079
  </div>
1080
  </div>
 
1116
  </button>
1117
  </div>
1118
  <div class="input-footer">
1119
+ <span class="input-footer-text">Krish Mind AI &bull; Developed by Krish CS</span>
1120
  </div>
1121
  </div>
1122
  </div>
 
1195
 
1196
  function updateThemeIcon() {
1197
  const theme = document.documentElement.getAttribute('data-theme');
1198
+ document.getElementById('themeIcon').innerHTML = theme === 'dark' ? '&#9728;' : '&#127769;';
1199
  }
1200
 
1201
  // Sidebar toggle
 
1223
  }
1224
 
1225
  // Backend root serves HTML in this app; avoid forcing JSON parse.
1226
+ console.log("Connected to Local Server");
1227
  } catch (err) {
1228
+ console.error("Local Server Not Found. Run: python scripts/server_local.py");
1229
+ addMessage('assistant', '**Local Server Not Running!**\n\nPlease run this command in your terminal:\n`python scripts/server_local.py`');
1230
  }
1231
  }
1232