ViannyCruz commited on
Commit
a082e89
·
verified ·
1 Parent(s): 6e7c1d6

Update web/index.html

Browse files
Files changed (1) hide show
  1. web/index.html +18 -11
web/index.html CHANGED
@@ -83,7 +83,7 @@
83
  <!-- nav bar -->
84
  <div class="w-100 mb-4 d-flex">
85
  <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
86
- <img src="assets/images/LOGO.png" alt="Logo" id="sidebarLogo" style="max-width:140px; transition: all 0.3s ease;">
87
  </a>
88
  </div>
89
 
@@ -663,23 +663,27 @@
663
 
664
  function initializeDashboard() {
665
  console.log('Inicializando dashboard...');
666
-
667
  checkAuthentication();
668
-
669
  loadSystemStatus();
670
-
671
  loadDashboardStats();
672
-
673
- // loadRecentAnalysis() - handled by loadRecentConsultations
674
-
675
  updateChartData(7);
676
-
677
  loadAgeRangesData();
678
-
679
  setupDateRangePicker();
680
-
681
  updateDateTime();
682
- setInterval(updateDateTime, 60000); // Actualizar cada minuto
 
 
 
 
 
 
683
  }
684
 
685
  async function checkAuthentication() {
@@ -2079,6 +2083,9 @@
2079
  var newTheme = darkTheme.disabled ? 'dark' : 'light';
2080
  applyTheme(newTheme);
2081
  localStorage.setItem('theme', newTheme);
 
 
 
2082
  }
2083
 
2084
  document.addEventListener('DOMContentLoaded', function () {
 
83
  <!-- nav bar -->
84
  <div class="w-100 mb-4 d-flex">
85
  <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
86
+ <img src="assets/images/RetinAILogo.png" alt="Logo" id="sidebarLogo" style="max-width:140px; transition: all 0.3s ease;">
87
  </a>
88
  </div>
89
 
 
663
 
664
  function initializeDashboard() {
665
  console.log('Inicializando dashboard...');
666
+
667
  checkAuthentication();
668
+
669
  loadSystemStatus();
670
+
671
  loadDashboardStats();
672
+
 
 
673
  updateChartData(7);
674
+
675
  loadAgeRangesData();
676
+
677
  setupDateRangePicker();
678
+
679
  updateDateTime();
680
+ setInterval(updateDateTime, 60000);
681
+
682
+ window.addEventListener('storage', function(e) {
683
+ if (e.key === 'theme') {
684
+ updateChartData(7);
685
+ }
686
+ });
687
  }
688
 
689
  async function checkAuthentication() {
 
2083
  var newTheme = darkTheme.disabled ? 'dark' : 'light';
2084
  applyTheme(newTheme);
2085
  localStorage.setItem('theme', newTheme);
2086
+ if (typeof updateChartData === 'function') {
2087
+ updateChartData(7);
2088
+ }
2089
  }
2090
 
2091
  document.addEventListener('DOMContentLoaded', function () {