ViannyCruz commited on
Commit
d038f91
·
verified ·
1 Parent(s): b80c671

Update web/patients.html

Browse files
Files changed (1) hide show
  1. web/patients.html +27 -5
web/patients.html CHANGED
@@ -291,11 +291,10 @@
291
  </a>
292
  <nav class="vertnav navbar navbar-light">
293
  <!-- nav bar -->
294
- <div class="w-100 mb-4 d-flex">
295
- <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
296
- <img src="assets/images/LOGO.png" alt="Logo">
297
- </a>
298
- </div>
299
 
300
 
301
  <ul class="navbar-nav flex-fill w-100 mb-2">
@@ -1444,6 +1443,29 @@ function createPatientCard(patient) {
1444
  });
1445
  });
1446
  })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1447
  </script>
1448
  </body>
1449
  </html>
 
291
  </a>
292
  <nav class="vertnav navbar navbar-light">
293
  <!-- nav bar -->
294
+ <a class="navbar-brand mx-auto mt-2 flex-fill text-center">
295
+ <img src="assets/images/RetinAILogo.png" alt="Logo" id="sidebarLogo" style="max-width:140px; transition: opacity 0.3s ease;">
296
+ <img src="assets/images/LogoMini.png" alt="Logo Mini" id="sidebarLogoMini" style="max-width:44px; display:none; transition: opacity 0.3s ease;">
297
+ </a>
 
298
 
299
 
300
  <ul class="navbar-nav flex-fill w-100 mb-2">
 
1443
  });
1444
  });
1445
  })();
1446
+
1447
+
1448
+ (function() {
1449
+ var sidebar = document.getElementById('leftSidebar');
1450
+ var logo = document.getElementById('sidebarLogo');
1451
+ var logoMini = document.getElementById('sidebarLogoMini');
1452
+ if (!sidebar || !logo || !logoMini) return;
1453
+
1454
+ function updateLogo() {
1455
+ var isCollapsed = sidebar.classList.contains('collapsed')
1456
+ || document.body.classList.contains('collapsed')
1457
+ || sidebar.offsetWidth < 100;
1458
+
1459
+ logo.style.display = isCollapsed ? 'none' : '';
1460
+ logoMini.style.display = isCollapsed ? 'block' : 'none';
1461
+ }
1462
+
1463
+ var observer = new MutationObserver(updateLogo);
1464
+ observer.observe(sidebar, { attributes: true, attributeFilter: ['class', 'style'] });
1465
+ observer.observe(document.body, { attributes: true, attributeFilter: ['class'] });
1466
+
1467
+ updateLogo();
1468
+ })();
1469
  </script>
1470
  </body>
1471
  </html>