ViannyCruz commited on
Commit
e85a859
·
verified ·
1 Parent(s): 8affb21

Update web/historial-consultas.html

Browse files
Files changed (1) hide show
  1. web/historial-consultas.html +26 -5
web/historial-consultas.html CHANGED
@@ -71,11 +71,10 @@
71
  </a>
72
  <nav class="vertnav navbar navbar-light">
73
  <!-- nav bar -->
74
- <div class="w-100 mb-4 d-flex">
75
- <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
76
- <img src="assets/images/LOGO.png" alt="Logo">
77
- </a>
78
- </div>
79
 
80
 
81
  <ul class="navbar-nav flex-fill w-100 mb-2">
@@ -1098,6 +1097,28 @@
1098
  });
1099
  });
1100
  })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1101
  </script>
1102
  </body>
1103
  </html>
 
71
  </a>
72
  <nav class="vertnav navbar navbar-light">
73
  <!-- nav bar -->
74
+ <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
75
+ <img src="assets/images/RetinAILogo.png" alt="Logo" id="sidebarLogo" style="max-width:140px; transition: opacity 0.3s ease;">
76
+ <img src="assets/images/LogoMini.png" alt="Logo Mini" id="sidebarLogoMini" style="max-width:44px; display:none; transition: opacity 0.3s ease;">
77
+ </a>
 
78
 
79
 
80
  <ul class="navbar-nav flex-fill w-100 mb-2">
 
1097
  });
1098
  });
1099
  })();
1100
+
1101
+ (function() {
1102
+ var sidebar = document.getElementById('leftSidebar');
1103
+ var logo = document.getElementById('sidebarLogo');
1104
+ var logoMini = document.getElementById('sidebarLogoMini');
1105
+ if (!sidebar || !logo || !logoMini) return;
1106
+
1107
+ function updateLogo() {
1108
+ var isCollapsed = sidebar.classList.contains('collapsed')
1109
+ || document.body.classList.contains('collapsed')
1110
+ || sidebar.offsetWidth < 100;
1111
+
1112
+ logo.style.display = isCollapsed ? 'none' : '';
1113
+ logoMini.style.display = isCollapsed ? 'block' : 'none';
1114
+ }
1115
+
1116
+ var observer = new MutationObserver(updateLogo);
1117
+ observer.observe(sidebar, { attributes: true, attributeFilter: ['class', 'style'] });
1118
+ observer.observe(document.body, { attributes: true, attributeFilter: ['class'] });
1119
+
1120
+ updateLogo();
1121
+ })();
1122
  </script>
1123
  </body>
1124
  </html>