diff --git a/buscadorSala.php b/buscadorSala.php index f4d33d8..fdfa0e6 100644 --- a/buscadorSala.php +++ b/buscadorSala.php @@ -10,11 +10,12 @@ + - +
@@ -99,7 +100,7 @@ - + diff --git a/cabecera.html b/cabecera.html new file mode 100644 index 0000000..d427f3a --- /dev/null +++ b/cabecera.html @@ -0,0 +1,96 @@ + + + + + + + + \ No newline at end of file diff --git a/cabecera.php b/cabecera.php deleted file mode 100644 index 8ea7501..0000000 --- a/cabecera.php +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/img/avatars/avatar_11.jpg b/img/avatars/avatar_11.jpg index b0107ec..868868f 100644 Binary files a/img/avatars/avatar_11.jpg and b/img/avatars/avatar_11.jpg differ diff --git a/index.php b/index.php index 8eaed56..bab2e06 100644 --- a/index.php +++ b/index.php @@ -6,11 +6,20 @@ Triviagmático + + + + + + + + + - +
@@ -46,6 +55,7 @@ + \ No newline at end of file diff --git a/js/cabecera.js b/js/cabecera.js index 09eb81b..e67d17c 100644 --- a/js/cabecera.js +++ b/js/cabecera.js @@ -1,8 +1,14 @@ let idUsuarioSesion = null; $(document).ready(function () { - comprobarSesion(); -}); + comprobarSesion(); + // Carga la cabecera html + $("#cabecera-container").load("cabecera.html", function () { + // Después de cargar cabecera comprobamos sesión + comprobarSesion(); + }); + }); + // Función auxiliar para escapar texto HTML function escapeHTML(str) { diff --git a/perfil.php b/perfil.php index 41c530d..9093d4e 100644 --- a/perfil.php +++ b/perfil.php @@ -41,7 +41,7 @@ $avatarUsuario = htmlspecialchars($_SESSION['avatar'] ?? 'img/avatars/defaultPro - +
@@ -310,6 +310,7 @@ $avatarUsuario = htmlspecialchars($_SESSION['avatar'] ?? 'img/avatars/defaultPro +