From e52ed75ea3b0d0a4d897964e44986b11c90c70eb Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 11 Aug 2022 00:12:52 +0200 Subject: [PATCH] update profile wip --- web/html/user.html | 29 ++++++++++++++++++++++++- web/js/library.js | 13 +++++++++++ web/js/login.js | 13 ++--------- web/js/user.js | 54 +++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 96 insertions(+), 13 deletions(-) diff --git a/web/html/user.html b/web/html/user.html index aa9f1cf..a24d985 100644 --- a/web/html/user.html +++ b/web/html/user.html @@ -117,6 +117,28 @@
+ + + + + + + + + +

Utilisateur

@@ -128,7 +150,12 @@
Pseudo - + +
+ +
+ Mot de passe +
diff --git a/web/js/library.js b/web/js/library.js index 739aff5..d46f51f 100644 --- a/web/js/library.js +++ b/web/js/library.js @@ -27,6 +27,19 @@ function signOut(){ }); } +function closeButton(){ + var btnclose = document.getElementsByClassName("btn-close"); + for (var i = 0; i 0){ @@ -98,7 +99,58 @@ if(id.length > 0){ }); - + + document.getElementById("updateUserButton").addEventListener("click", function(){ + var updateProfil = ["id", "pseudo", "email", "firstName", "birth"]; + var updateOk = true; + for (var i=0; i