-
-
+
+
@@ -41,14 +41,14 @@
// Historique supprimé
function updateRemaining() {
- document.getElementById('remaining').textContent = `Mots restants : ${remaining}`;
+ document.getElementById('remaining').textContent = `Remaining words : ${remaining}`;
}
async function startGame() {
const firstWord = document.getElementById('firstWord').value;
const firstScore = document.getElementById('firstScore').value;
if (!firstWord || !firstScore) {
- alert('Remplis le mot et le score de départ');
+ alert('Add a word and a score');
return;
}
document.getElementById('loading').style.display = '';
@@ -70,7 +70,7 @@
document.getElementById('game').style.display = '';
await nextWord();
} catch (e) {
- alert('Erreur lors du chargement : ' + e);
+ alert('Error while loading : ' + e);
} finally {
document.getElementById('loading').style.display = 'none';
}
@@ -107,7 +107,7 @@
document.getElementById('submitScoreBtn').onclick = async function() {
const score = document.getElementById('scoreInput').value;
if (score === '') {
- document.getElementById('result').textContent = 'Veuillez entrer un score.';
+ document.getElementById('result').textContent = 'Please enter a score';
return;
}
const resp = await fetch('/score', {