ViannyCruz commited on
Commit
93ec4de
·
verified ·
1 Parent(s): 68fb491

Update web/diagnosis.html

Browse files
Files changed (1) hide show
  1. web/diagnosis.html +40 -0
web/diagnosis.html CHANGED
@@ -1519,6 +1519,46 @@ if (false) { /* removed */ }
1519
  });
1520
  });
1521
  })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1522
  </script>
1523
  </body>
1524
  </html>
 
1519
  });
1520
  });
1521
  })();
1522
+ </script
1523
+ <script>
1524
+ (function() {
1525
+ // Overlay de transición entre páginas
1526
+ const pageOverlay = document.createElement('div');
1527
+ pageOverlay.style.cssText = [
1528
+ 'position:fixed','inset:0','z-index:999999',
1529
+ 'pointer-events:none','opacity:0',
1530
+ 'transition:opacity 0.3s ease',
1531
+ 'background:' + (localStorage.getItem('theme') === 'dark' ? '#1a1a2e' : '#fff')
1532
+ ].join(';');
1533
+ document.body.appendChild(pageOverlay);
1534
+
1535
+ // Fade in al cargar la página
1536
+ document.addEventListener('DOMContentLoaded', function() {
1537
+ setTimeout(function() {
1538
+ pageOverlay.style.opacity = '0';
1539
+ }, 50);
1540
+ });
1541
+
1542
+ // Fade out al salir
1543
+ document.addEventListener('click', function(e) {
1544
+ const link = e.target.closest('a');
1545
+ if (!link) return;
1546
+ const href = link.getAttribute('href');
1547
+ if (!href || href === '#' || href.startsWith('javascript') || href.startsWith('mailto')) return;
1548
+ if (link.target === '_blank') return;
1549
+ if (e.ctrlKey || e.metaKey || e.shiftKey) return;
1550
+
1551
+ e.preventDefault();
1552
+ pageOverlay.style.background = localStorage.getItem('theme') === 'dark' ? '#1a1a2e' : '#fff';
1553
+ pageOverlay.style.opacity = '1';
1554
+ setTimeout(function() {
1555
+ window.location.href = href;
1556
+ }, 300);
1557
+ });
1558
+
1559
+ // Mostrar overlay inmediatamente al cargar para hacer fade in
1560
+ pageOverlay.style.opacity = '1';
1561
+ })();
1562
  </script>
1563
  </body>
1564
  </html>