Update web/index.html
Browse files- web/index.html +2 -48
web/index.html
CHANGED
|
@@ -3,13 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
| 6 |
-
|
| 7 |
-
(function() {
|
| 8 |
-
const isDark = localStorage.getItem('theme') === 'dark';
|
| 9 |
-
document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'light');
|
| 10 |
-
if (isDark) document.documentElement.style.backgroundColor = '#1a1a2e';
|
| 11 |
-
})();
|
| 12 |
-
</script>
|
| 13 |
<meta name="description" content="">
|
| 14 |
<meta name="author" content="">
|
| 15 |
|
|
@@ -2062,46 +2056,6 @@
|
|
| 2062 |
});
|
| 2063 |
})();
|
| 2064 |
</script>
|
| 2065 |
-
|
| 2066 |
-
(function() {
|
| 2067 |
-
// Overlay de transición entre páginas
|
| 2068 |
-
const pageOverlay = document.createElement('div');
|
| 2069 |
-
pageOverlay.style.cssText = [
|
| 2070 |
-
'position:fixed','inset:0','z-index:999999',
|
| 2071 |
-
'pointer-events:none','opacity:0',
|
| 2072 |
-
'transition:opacity 0.3s ease',
|
| 2073 |
-
'background:' + (localStorage.getItem('theme') === 'dark' ? '#1a1a2e' : '#fff')
|
| 2074 |
-
].join(';');
|
| 2075 |
-
document.body.appendChild(pageOverlay);
|
| 2076 |
-
|
| 2077 |
-
// Fade in al cargar la página
|
| 2078 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 2079 |
-
setTimeout(function() {
|
| 2080 |
-
pageOverlay.style.opacity = '0';
|
| 2081 |
-
}, 50);
|
| 2082 |
-
});
|
| 2083 |
-
|
| 2084 |
-
// Fade out al salir
|
| 2085 |
-
document.addEventListener('click', function(e) {
|
| 2086 |
-
const link = e.target.closest('a');
|
| 2087 |
-
if (!link) return;
|
| 2088 |
-
const href = link.getAttribute('href');
|
| 2089 |
-
if (!href || href === '#' || href.startsWith('javascript') || href.startsWith('mailto')) return;
|
| 2090 |
-
if (link.target === '_blank') return;
|
| 2091 |
-
if (e.ctrlKey || e.metaKey || e.shiftKey) return;
|
| 2092 |
-
|
| 2093 |
-
e.preventDefault();
|
| 2094 |
-
pageOverlay.style.background = localStorage.getItem('theme') === 'dark' ? '#1a1a2e' : '#fff';
|
| 2095 |
-
pageOverlay.style.opacity = '1';
|
| 2096 |
-
setTimeout(function() {
|
| 2097 |
-
window.location.href = href;
|
| 2098 |
-
}, 300);
|
| 2099 |
-
});
|
| 2100 |
-
|
| 2101 |
-
// Mostrar overlay inmediatamente al cargar para hacer fade in
|
| 2102 |
-
pageOverlay.style.opacity = '1';
|
| 2103 |
-
})();
|
| 2104 |
-
</script>
|
| 2105 |
-
|
| 2106 |
</body>
|
| 2107 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
| 6 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
<meta name="description" content="">
|
| 8 |
<meta name="author" content="">
|
| 9 |
|
|
|
|
| 2056 |
});
|
| 2057 |
})();
|
| 2058 |
</script>
|
| 2059 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2060 |
</body>
|
| 2061 |
</html>
|