From f5570cea25367cde23686906a7b4c3c6c00576a6 Mon Sep 17 00:00:00 2001 From: Christophe Date: Sun, 12 Apr 2026 19:57:57 +0200 Subject: [PATCH] Clarifie le libelle du temps de Block en mode Time --- app.js | 7 +++++++ application.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index c2fc12c..f9bbe45 100644 --- a/app.js +++ b/app.js @@ -116,6 +116,7 @@ function initSetupPage() { const resumeCard = document.querySelector("#resumeCard"); const moveSecondsField = document.querySelector("#moveSecondsField"); const timeInitialField = document.querySelector("#timeInitialField"); + const blockSecondsLabel = document.querySelector("#blockSecondsLabel"); const moveSecondsInput = form?.querySelector('[name="moveSeconds"]'); const timeInitialInput = form?.querySelector('[name="timeInitialMinutes"]'); @@ -130,6 +131,7 @@ function initSetupPage() { const blockDurationMs = getDurationInputMs(form, "blockSeconds", DEFAULT_BLOCK_DURATION_MS); const moveLimitMs = getDurationInputMs(form, "moveSeconds", DEFAULT_MOVE_LIMIT_MS); const timeInitialMs = getMinuteInputMs(form, "timeInitialMinutes", TIME_MODE_INITIAL_CLOCK_MS); + const blockLabel = getBlockLabel(mode); const moveLimitActive = usesMoveLimit(mode); const timeImpact = mode === "time" @@ -158,6 +160,11 @@ function initSetupPage() { timeInitialInput.disabled = moveLimitActive; } + if (blockSecondsLabel instanceof HTMLElement) { + blockSecondsLabel.textContent = + blockLabel === "Block" ? "Temps du Block (secondes)" : "Temps partie (secondes)"; + } + summary.innerHTML = ` ${MODES[mode].label} ${PRESETS[preset].description} diff --git a/application.html b/application.html index 1ada991..2a61de4 100644 --- a/application.html +++ b/application.html @@ -122,7 +122,7 @@ Temps personnalisés