ViannyCruz commited on
Commit
c95779d
·
verified ·
1 Parent(s): f421273

Update web/historial-consultas.html

Browse files
Files changed (1) hide show
  1. web/historial-consultas.html +42 -0
web/historial-consultas.html CHANGED
@@ -30,6 +30,11 @@
30
  </button>
31
 
32
  <ul class="nav">
 
 
 
 
 
33
  <li class="nav-item">
34
  <a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
35
  <i data-feather="sun" class="fe-16"></i>
@@ -1005,5 +1010,42 @@
1005
  });
1006
  })();
1007
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1008
  </body>
1009
  </html>
 
30
  </button>
31
 
32
  <ul class="nav">
33
+ <li class="nav-item">
34
+ <a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
35
+ <i data-feather="sun"></i>
36
+ </a>
37
+ </li>
38
  <li class="nav-item">
39
  <a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
40
  <i data-feather="sun" class="fe-16"></i>
 
1010
  });
1011
  })();
1012
  </script>
1013
+ <script>
1014
+ (function () {
1015
+ const overlay = document.createElement('div');
1016
+ overlay.id = 'theme-overlay';
1017
+ overlay.style.cssText = [
1018
+ 'position:fixed','inset:0','z-index:99999',
1019
+ 'pointer-events:none','opacity:0',
1020
+ 'transition:opacity 0.18s ease','background:#fff'
1021
+ ].join(';');
1022
+ document.body.appendChild(overlay);
1023
+
1024
+ function switchTheme() {
1025
+ const lightTheme = document.getElementById('lightTheme');
1026
+ const darkTheme = document.getElementById('darkTheme');
1027
+ const goingDark = !darkTheme.disabled;
1028
+ overlay.style.background = goingDark ? '#fff' : '#1a1a2e';
1029
+ overlay.style.opacity = '1';
1030
+ setTimeout(function () {
1031
+ lightTheme.disabled = !lightTheme.disabled;
1032
+ darkTheme.disabled = !darkTheme.disabled;
1033
+ setTimeout(function () { overlay.style.opacity = '0'; }, 50);
1034
+ }, 180);
1035
+ }
1036
+
1037
+ document.addEventListener('DOMContentLoaded', function () {
1038
+ const btn = document.getElementById('modeSwitcher');
1039
+ if (!btn) return;
1040
+ const newBtn = btn.cloneNode(true);
1041
+ btn.parentNode.replaceChild(newBtn, btn);
1042
+ newBtn.addEventListener('click', function (e) {
1043
+ e.preventDefault();
1044
+ e.stopPropagation();
1045
+ switchTheme();
1046
+ });
1047
+ });
1048
+ })();
1049
+ </script>
1050
  </body>
1051
  </html>