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

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
  <!--
34
  <li class="nav-item">
35
  <a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
@@ -963,5 +968,42 @@
963
  _fObserver.observe(document.body, { childList: true, subtree: true });
964
  });
965
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
966
  </body>
967
  </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" class="fe-16"></i>
36
+ </a>
37
+ </li>
38
  <!--
39
  <li class="nav-item">
40
  <a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
 
968
  _fObserver.observe(document.body, { childList: true, subtree: true });
969
  });
970
  </script>
971
+ <script>
972
+ (function () {
973
+ const overlay = document.createElement('div');
974
+ overlay.id = 'theme-overlay';
975
+ overlay.style.cssText = [
976
+ 'position:fixed','inset:0','z-index:99999',
977
+ 'pointer-events:none','opacity:0',
978
+ 'transition:opacity 0.18s ease','background:#fff'
979
+ ].join(';');
980
+ document.body.appendChild(overlay);
981
+
982
+ function switchTheme() {
983
+ const lightTheme = document.getElementById('lightTheme');
984
+ const darkTheme = document.getElementById('darkTheme');
985
+ const goingDark = !darkTheme.disabled;
986
+ overlay.style.background = goingDark ? '#fff' : '#1a1a2e';
987
+ overlay.style.opacity = '1';
988
+ setTimeout(function () {
989
+ lightTheme.disabled = !lightTheme.disabled;
990
+ darkTheme.disabled = !darkTheme.disabled;
991
+ setTimeout(function () { overlay.style.opacity = '0'; }, 50);
992
+ }, 180);
993
+ }
994
+
995
+ document.addEventListener('DOMContentLoaded', function () {
996
+ const btn = document.getElementById('modeSwitcher');
997
+ if (!btn) return;
998
+ const newBtn = btn.cloneNode(true);
999
+ btn.parentNode.replaceChild(newBtn, btn);
1000
+ newBtn.addEventListener('click', function (e) {
1001
+ e.preventDefault();
1002
+ e.stopPropagation();
1003
+ switchTheme();
1004
+ });
1005
+ });
1006
+ })();
1007
+ </script>
1008
  </body>
1009
  </html>