- add real stats and history game in profil page
    - search will send now request in lower case in profile page
    - add key enter in search bar in profile page
This commit is contained in:
Kum1ta
2024-09-28 20:31:43 +02:00
parent 10d14d8e60
commit 05b7c5b0b9
8 changed files with 82 additions and 26 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/25 00:00:21 by edbernar #+# #+# */
/* Updated: 2024/09/28 02:43:26 by edbernar ### ########.fr */
/* Updated: 2024/09/28 19:48:30 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -126,7 +126,7 @@ class Page
document.body.innerHTML = text;
this.actualPage = null;
document.title = 'METH - Page not found';
history.pushState({}, this.availablePages[i].title, this.availablePages[i].url);
history.pushState({}, document.title, window.location.pathname);
})
})
.catch(error => {