dylanglenister commited on
Commit
e8cda17
·
1 Parent(s): e70300d

Added hidden button to access system-status

Browse files
Files changed (3) hide show
  1. static/css/styles.css +37 -0
  2. static/index.html +8 -1
  3. static/js/app.js +23 -0
static/css/styles.css CHANGED
@@ -926,6 +926,43 @@ body {
926
  background-color: var(--border-color);
927
  }
928
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
929
  /* Loading Overlay */
930
  .loading-overlay {
931
  display: none;
 
926
  background-color: var(--border-color);
927
  }
928
 
929
+ /* Hidden system access styling */
930
+ .system-access {
931
+ position: absolute;
932
+ bottom: var(--spacing-md);
933
+ left: var(--spacing-md);
934
+ opacity: 0.1;
935
+ }
936
+
937
+ .system-access:hover {
938
+ opacity: 0.2;
939
+ }
940
+
941
+ .system-access-btn {
942
+ background: none;
943
+ border: none;
944
+ color: var(--bg-primary);
945
+ cursor: pointer;
946
+ padding: 0;
947
+ font-size: 0.8rem;
948
+ }
949
+
950
+ .system-access-input {
951
+ display: none;
952
+ background: none;
953
+ border: none;
954
+ border-bottom: 1px solid var(--border-color);
955
+ color: var(--text-muted);
956
+ font-size: 0.8rem;
957
+ padding: 2px;
958
+ margin-left: var(--spacing-sm);
959
+ width: 100px;
960
+ }
961
+
962
+ .system-access-input:focus {
963
+ outline: none;
964
+ }
965
+
966
  /* Loading Overlay */
967
  .loading-overlay {
968
  display: none;
static/index.html CHANGED
@@ -218,7 +218,14 @@
218
  </label>
219
  </div>
220
  </div>
221
- <div class="modal-footer"></div>
 
 
 
 
 
 
 
222
  </div>
223
  </div>
224
 
 
218
  </label>
219
  </div>
220
  </div>
221
+ <div class="modal-footer">
222
+ <button class="btn btn-secondary" id="settingsModalCancel">Cancel</button>
223
+ <button class="btn btn-primary" id="settingsModalSave">Save</button>
224
+ </div>
225
+ <div class="system-access">
226
+ <button class="system-access-btn" id="systemAccessBtn">System</button>
227
+ <input type="text" class="system-access-input" id="systemAccessInput" placeholder="Enter code" style="display: none;">
228
+ </div>
229
  </div>
230
  </div>
231
 
static/js/app.js CHANGED
@@ -313,6 +313,29 @@ class MedicalChatbotApp {
313
  });
314
  }
315
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  }
317
 
318
  initializeUser() {
 
313
  });
314
  }
315
  }
316
+
317
+ // System access button handler
318
+ const systemBtn = document.getElementById('systemAccessBtn');
319
+ const systemInput = document.getElementById('systemAccessInput');
320
+
321
+ if (systemBtn && systemInput) {
322
+ systemBtn.addEventListener('click', () => {
323
+ systemInput.style.display = systemInput.style.display === 'none' ? 'inline' : 'none';
324
+ if (systemInput.style.display === 'inline') {
325
+ systemInput.focus();
326
+ }
327
+ });
328
+
329
+ systemInput.addEventListener('keydown', (e) => {
330
+ if (e.key === 'Enter') {
331
+ if (systemInput.value === 'system-status') {
332
+ window.location.href = '/system-status';
333
+ }
334
+ systemInput.value = '';
335
+ systemInput.style.display = 'none';
336
+ }
337
+ });
338
+ }
339
  }
340
 
341
  initializeUser() {