feat: Fehlerquote zu Fehler in % mit Nachkommastelle ändern
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
parent
e1baaf7490
commit
e100cdd346
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@
|
|||
<span id="speed" class="badge bg-primary rounded-pill">0</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Fehlerquote
|
||||
<span id="error-rate" class="badge bg-danger rounded-pill">0%</span>
|
||||
Fehler in %
|
||||
<span id="error-rate" class="badge bg-danger rounded-pill">0</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Wörter pro Minute (WPM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue