From e100cdd346a77a073875c3ee43f36c3145be00a5 Mon Sep 17 00:00:00 2001 From: jamulix Date: Tue, 21 Oct 2025 20:42:17 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Fehlerquote=20zu=20Fehler=20in=20%=20mi?= =?UTF-8?q?t=20Nachkommastelle=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (deepseek/deepseek-reasoner) --- static/js/script.js | 2 +- templates/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/script.js b/static/js/script.js index b00194e..7e3fe6c 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -179,7 +179,7 @@ document.addEventListener('DOMContentLoaded', function() { .then(data => { // Aktualisiere die Anzeige speedElement.textContent = data.typing_speed; - errorRateElement.textContent = data.error_rate + '%'; + errorRateElement.textContent = data.error_rate.toFixed(1); correctElement.textContent = data.correct_chars; incorrectElement.textContent = data.incorrect_chars; totalElement.textContent = data.total_chars; diff --git a/templates/index.html b/templates/index.html index 823a581..8a05068 100644 --- a/templates/index.html +++ b/templates/index.html @@ -51,8 +51,8 @@ 0
  • - Fehlerquote - 0% + Fehler in % + 0
  • Wörter pro Minute (WPM)