ViannyCruz commited on
Commit
3a0fdbe
·
verified ·
1 Parent(s): cb3a130

Update web/index.html

Browse files
Files changed (1) hide show
  1. web/index.html +0 -36
web/index.html CHANGED
@@ -1986,43 +1986,7 @@
1986
  _fObserver.observe(document.body, { childList: true, subtree: true });
1987
  });
1988
  </script>
1989
- <script>
1990
- (function () {
1991
-
1992
- // Crea un overlay negro/blanco que hace fade sobre toda la página
1993
- const overlay = document.createElement('div');
1994
- overlay.id = 'theme-overlay';
1995
- overlay.style.cssText = [
1996
- 'position:fixed',
1997
- 'inset:0',
1998
- 'z-index:99999',
1999
- 'pointer-events:none',
2000
- 'opacity:0',
2001
- 'transition:opacity 0.18s ease',
2002
- 'background:#fff'
2003
- ].join(';');
2004
- document.body.appendChild(overlay);
2005
-
2006
-
2007
-
2008
- // Reemplaza el comportamiento del botón existente
2009
- document.addEventListener('DOMContentLoaded', function () {
2010
- const btn = document.getElementById('modeSwitcher');
2011
- if (!btn) return;
2012
 
2013
- // Clona el botón para eliminar listeners anteriores de apps.js
2014
- const newBtn = btn.cloneNode(true);
2015
- btn.parentNode.replaceChild(newBtn, btn);
2016
-
2017
- newBtn.addEventListener('click', function (e) {
2018
- e.preventDefault();
2019
- e.stopPropagation();
2020
- switchTheme();
2021
- });
2022
- });
2023
-
2024
- })();
2025
- </script>
2026
  <script>
2027
  (function () {
2028
  // 1. Aplicar tema guardado inmediatamente
 
1986
  _fObserver.observe(document.body, { childList: true, subtree: true });
1987
  });
1988
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1989
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1990
  <script>
1991
  (function () {
1992
  // 1. Aplicar tema guardado inmediatamente