Update web/index.html
Browse files- web/index.html +40 -0
web/index.html
CHANGED
|
@@ -2061,6 +2061,46 @@
|
|
| 2061 |
});
|
| 2062 |
});
|
| 2063 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2064 |
</script>
|
| 2065 |
|
| 2066 |
</body>
|
|
|
|
| 2061 |
});
|
| 2062 |
});
|
| 2063 |
})();
|
| 2064 |
+
</script>
|
| 2065 |
+
<script>
|
| 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>
|