-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>🔮Mystic Bot🔮</title> | ||
<title>Hispanic Galaxy</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:[email protected]&display=swap" rel="stylesheet"> | ||
<link rel="icon" type="image/x-icon" href="web/favicon.ico"> | ||
<link rel="stylesheet" href="web/estilo.css"> <!-- Para Cambiar el Estilo/Tema facilmente --> | ||
|
@@ -80,6 +80,9 @@ | |
if (target.tagName === 'A') { | ||
let href = target.getAttribute('href'); | ||
|
||
// Desplazar hacia arriba al hacer clic en un enlace | ||
window.scrollTo({ top: 0, behavior: 'smooth' }); | ||
|
||
if (href.startsWith('web/') || href.startsWith('./') || href.startsWith('/')) { | ||
event.preventDefault(); | ||
|
||
|
@@ -89,16 +92,19 @@ | |
|
||
loadContent(href); | ||
} else if (href.startsWith('http://') || href.startsWith('https://')) { | ||
|
||
event.preventDefault(); | ||
href = getLocalizedUrl(href); | ||
window.location.href = href; | ||
|
||
// Usar setTimeout para permitir que el desplazamiento a la parte superior se complete antes de redirigir | ||
setTimeout(() => { | ||
window.location.href = href; | ||
}, 300); // Ajusta el tiempo si es necesario | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<!-- Este es el Widget de Discord, se puede personalizar para tu Server --> | ||
<!-- Este es el Widget de Discord, se puede personalizar para tu Server --> | ||
<script src='https://cdn.jsdelivr.net/npm/@widgetbot/crate@3' async defer> | ||
new Crate({ | ||
server: '1278571215635877908', // Basu | ||
|