- fix color infinite wall on home page
    - fix bug click tv on home page
    - reworked on back arrow on profil page
This commit is contained in:
Kum1ta
2024-10-07 00:03:32 +02:00
parent 8cc46036e4
commit a6743616e3
3 changed files with 17 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/25 00:00:21 by edbernar #+# #+# */
/* Updated: 2024/10/06 15:31:59 by edbernar ### ########.fr */
/* Updated: 2024/10/06 23:49:15 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -91,6 +91,11 @@ class Page
.then(data => {
data.text().then(text => {
document.body.innerHTML = text;
for (let i = 0; i < this.availablePages.length; i++)
{
if (this.actualPage === this.availablePages[i].class)
document.precedentPage = this.availablePages[i].name;
}
this.actualPage = this.availablePages[i].class;
document.title = this.availablePages[i].title;
if (!isBack && !this.wasRefresh)