mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
feat: dev-web - translation
This commit is contained in:
@@ -24,9 +24,14 @@ loginForm.addEventListener("submit", (event) => {
|
||||
;
|
||||
});
|
||||
|
||||
//Récupération de mot de passe réussie = redirection vers la page de connexion + message d'alerte
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const succes = urlParams.get('succes');
|
||||
if (succes != null) {
|
||||
window.alert(succes);
|
||||
window.onload = function (){
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
if (urlParams.has('success')) {
|
||||
if (urlParams.get('success') === "account-created") {
|
||||
window.alert("Compte créé avec succès.");
|
||||
}
|
||||
if (urlParams.get('success') === "password-reseted") {
|
||||
window.alert("Mot de passe réinitialisé avec succès.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<body>
|
||||
|
||||
<main>
|
||||
<section id="title"> Titre du jeu </section>
|
||||
<section id="title"> Cards Rush - Connexion </section>
|
||||
<section id="form">
|
||||
<div class="border-left"></div>
|
||||
<div class="flex-column login-gap">
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Main Menu</title>
|
||||
<title>Cards Rush</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
<jsp:include page="../components/navbar.jsp"/>
|
||||
|
||||
<section id="main">
|
||||
<h1 id="Title">Titre du jeu</h1>
|
||||
<div class="main-button">
|
||||
|
||||
Reference in New Issue
Block a user