Update web/index.html
Browse files1984 unmodified lines1985198619871988198919901984 unmodified linesdocument.addEventListener('DOMContentLoaded', function() {_fObserver.observe(document.body, { childList: true, subtree: true });});</script></body></html>1984 unmodified lines19851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620271984 unmodified linesdocument.addEventListener('DOMContentLoaded', function() {_fObserver.observe(document.body, { childList: true, subtree: true });});</script><script>(function () {// Inyecta el CSS de transición en el <head>const style = document.createElement('style');style.textContent = ['.theme-transitioning *,','.theme-transitioning *::before,','.theme-transitioning *::after {',' transition:',' background-color 0.25s ease,',' color 0.20s ease,',' border-color 0.20s ease,',' box-shadow 0.20s ease !important;','}'].join('\n');document.head.appendChild(style);// Activa la transición durante el cambio de temafunction smoothThemeSwitch() {document.body.classList.add('theme-transitioning');setTimeout(function () {document.body.classList.remove('theme-transitioning');}, 400);}// Intercepta el botón #modeSwitcher que ya existe en tu HTMLdocument.addEventListener('DOMContentLoaded', function () {const btn = document.getElementById('modeSwitcher');if (btn) {btn.addEventListener('click', smoothThemeSwitch, true);// true = capture phase: se ejecuta antes que el listener de apps.js}});})();</script></body></html>
web/index.html+37