Skip to content

Commit e860e6a

Browse files
committed
[FIX] errors where the text was in english instead of french
1 parent 5e1a272 commit e860e6a

File tree

12 files changed

+34
-29
lines changed

12 files changed

+34
-29
lines changed
35 Bytes
Binary file not shown.

html/assets/js/chatbot/chatbot.js

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/assets/js/image_checker.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
*/
77

88
async function checkImageExists(url) {
9-
return await new Promise((resolve) => {
9+
return new Promise((resolve) => {
1010
const img = new Image();
1111
img.onload = () => resolve(true);
1212
img.onerror = () => resolve(false);
1313
img.src = url;
14-
});
14+
15+
img.referrerPolicy = "no-referrer";
16+
}).catch(() => false);
1517
}
1618

19+

html/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@
150150
<p id="error_message">Hello world !</p>
151151
<aside class="form-container">
152152
<form id="loginForm">
153-
<h2>Login</h2><input type="email" id="loginEmail" placeholder="Email" required=""><input type="password" id="loginPassword" placeholder="Password" required=""><button type="submit">Connection</button>
153+
<h2>Connexion</h2><input type="email" id="loginEmail" placeholder="E-mail" required=""><input type="password" id="loginPassword" placeholder="Mot de passe" required=""><button type="submit">Connexion</button>
154154
<div class="reset_password"><a href="./reset-password">Mot de passe oublié ?</a></div>
155155
</form>
156156
<form id="registerForm">
157-
<h2>Register</h2><input type="text" id="registerUsername" placeholder="Username" required=""><input type="email" id="registerEmail" placeholder="Email" required=""><input type="password" id="registerPassword" placeholder="Password" required=""><input type="password" id="registerPasswordConfirmation" placeholder="Confirm Password" required=""><button type="submit">Register</button>
157+
<h2>S'Inscrire</h2><input type="text" id="registerUsername" placeholder="Nom d'utilisateur" required=""><input type="email" id="registerEmail" placeholder="E-mail" required=""><input type="password" id="registerPassword" placeholder="Mot de passe" required=""><input type="password" id="registerPasswordConfirmation" placeholder="Confirmer le mot de passe" required=""><button type="submit">S'Inscrire</button>
158158
</form>
159159
</aside>
160160
<aside class="sso_separator_box">
@@ -166,11 +166,7 @@ <h2>Register</h2><input type="text" id="registerUsername" placeholder="Username"
166166
</section>
167167
</section><i class="fas fa-paper-plane"></i>
168168
</main>
169-
<section id="chatbot_instance">
170-
<div class="chatBotAbstraction">
171-
<div class="chatbotButton"><button><img src="assets/img/AB-logo.png" width="50" height="49"></button></div>
172-
</div>
173-
</section>
169+
<section id="chatbot_instance"></section>
174170
<section id="cookie_banner"></section>
175171
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
176172
<script src="assets/js/modules/cookie_manager.mjs" type="module"></script>

html/professional.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@
145145
<p id="error_message">Hello world !</p>
146146
<aside class="form-container">
147147
<form id="loginForm">
148-
<h2>Login</h2><input type="email" id="loginEmail" placeholder="Email" required=""><input type="password" id="loginPassword" placeholder="Password" required=""><button type="submit_professional" onclick="event.preventDefault();log_user_in_professional();">Login</button>
148+
<h2>Connexion</h2><input type="email" id="loginEmail" placeholder="E-mail" required=""><input type="password" id="loginPassword" placeholder="Mot de passe" required=""><button type="submit_professional" onclick="event.preventDefault();log_user_in_professional();">Connexion</button>
149149
<div class="reset_password"><a href="./reset-password">Mot de passe oublié ?</a></div>
150150
</form>
151151
<form id="registerForm">
152-
<h2>Register</h2><input type="text" id="registerUsername" placeholder="Username" required=""><input type="email" id="registerEmail" placeholder="Email" required=""><input type="password" id="registerPassword" placeholder="Password" required=""><input type="password" id="registerPasswordConfirmation" placeholder="Confirm Password" required=""><button type="submit_professional" onclick="event.preventDefault();register_user_professional();">Register</button>
152+
<h2>S'Inscrire</h2><input type="text" id="registerUsername" placeholder="Nom d'utilisateur" required=""><input type="email" id="registerEmail" placeholder="E-mail" required=""><input type="password" id="registerPassword" placeholder="Mot de passe" required=""><input type="password" id="registerPasswordConfirmation" placeholder="Confirmer le mot de passe" required=""><button type="submit_professional">S'Inscrire</button>
153153
</form>
154154
</aside>
155155
<aside class="sso_separator_box">
@@ -161,7 +161,11 @@ <h2>Register</h2><input type="text" id="registerUsername" placeholder="Username"
161161
</section>
162162
</section><i class="fas fa-paper-plane"></i>
163163
</main>
164-
<section id="chatbot_instance"></section>
164+
<section id="chatbot_instance">
165+
<div class="chatBotAbstraction">
166+
<div class="chatbotButton"><button><img src="assets/img/AB-logo.png" width="50" height="49"></button></div>
167+
</div>
168+
</section>
165169
<section id="cookie_banner"></section>
166170
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
167171
<script src="assets/js/modules/cookie_manager.mjs" type="module"></script>

html/reset-password/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<body>
130130
<main class="login_register_box">
131131
<p style="background-color:yellow;color:black;">Ceci est un site de <strong>démonstration</strong>, vos données personnelles ne seront enregistré que sur votre ordinateur. Quel que soit l'e-mail <strong>et/ou</strong> le mot de passe la connexion <strong>fonctionnera</strong>.</p>
132-
<section><select id="fontSelector"></select>
132+
<section><select id="fontSelector" onchange="updateFont(this);"></select>
133133
<div class="theme-switcher dropdown" id="themeToggler"><button class="btn btn-link dropdown-toggle" aria-expanded="false" data-bs-toggle="dropdown" style="color:var(--bs-body-color);" type="button"><svg class="bi bi-sun-fill mb-1" fill="currentColor" height="1em" viewbox="0 0 16 16" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path></svg></button>
134134
<div class="dropdown-menu"><a class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" href="#"><svg class="bi bi-sun-fill opacity-50 me-2" fill="currentColor" height="1em" viewbox="0 0 16 16" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path></svg>Light </a><a class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" href="#"><svg class="bi bi-moon-stars-fill opacity-50 me-2" fill="currentColor" height="1em" viewbox="0 0 16 16" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278"></path><path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"></path></svg>Dark </a><a class="dropdown-item d-flex align-items-center" data-bs-theme-value="auto" href="#"><svg class="bi bi-circle-half opacity-50 me-2" fill="currentColor" height="1em" viewbox="0 0 16 16" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 15A7 7 0 1 0 8 1zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16"></path></svg>Auto </a></div>
135135
</div>

html/routes/pro/creation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<path d="M8 15A7 7 0 1 0 8 1zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16"></path>
150150
</svg>Auto</a></div>
151151
</div><select id="fontSelector" onchange="updateFont(this);"></select>
152-
<aside><button class="button_desing" type="button" onclick="logout_pro();">Logout</button></aside>
152+
<aside><button class="button_desing" type="button" onclick="logout_pro();">Déconnexion</button></aside>
153153
</section><!-- End: Header -->
154154
<p style="background-color:yellow;color:black;">Ceci est un site de <strong>démonstration</strong>, vos données personnelles ne seront enregistré que sur votre ordinateur.<br>Le concepteur fourni est à titre d'exemple, ce n'est qu'un <strong>apperçu</strong> d'une des fonctionnalités de cette page.</p><!-- Start: controls -->
155155
<section>

html/routes/pro/discuter/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<path d="M8 15A7 7 0 1 0 8 1zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16"></path>
151151
</svg>Auto</a></div>
152152
</div><select id="fontSelector" onchange="updateFont(this);"></select>
153-
<aside><button class="button_desing" type="button" onclick="logout_pro();">Logout</button></aside>
153+
<aside><button class="button_desing" type="button" onclick="logout_pro();">Déconnexion</button></aside>
154154
</section>
155155
<section class="forumFrame">
156156
<aside class="aside-left">

html/routes/pro/suivi/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<path d="M8 15A7 7 0 1 0 8 1zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16"></path>
151151
</svg>Auto</a></div>
152152
</div><select id="fontSelector" onchange="updateFont(this);"></select>
153-
<aside><button class="button_desing" type="button" onclick="logout_pro();">Logout</button></aside>
153+
<aside><button class="button_desing" type="button" onclick="logout_pro();">Déconnexion</button></aside>
154154
</section>
155155
<section class="forumFrame">
156156
<aside class="aside-left">

html/routes/user/dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
<path d="M8 15A7 7 0 1 0 8 1zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16"></path>
148148
</svg>Auto</a></div>
149149
</div><select id="fontSelector" onchange="updateFont(this);"></select>
150-
<aside><button class="button_desing" type="button" onclick="logout();">Logout</button></aside>
150+
<aside><button class="button_desing" type="button" onclick="logout();">Déconnexion</button></aside>
151151
</section><!-- Start: createdGames -->
152152
<section>
153153
<aside class="widget">

0 commit comments

Comments
 (0)