tools:tonhoehentrainer
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung | |||
| tools:tonhoehentrainer [19/05/2025 17:57] – Eric Weber | tools:tonhoehentrainer [20/05/2025 08:42] (aktuell) – Eric Weber | ||
|---|---|---|---|
| Zeile 41: | Zeile 41: | ||
| font-weight: | font-weight: | ||
| transition: background-color 0.3s; | transition: background-color 0.3s; | ||
| + | background-color: | ||
| } | } | ||
| .ear-training-app .difficulty-btn.active { | .ear-training-app .difficulty-btn.active { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| } | } | ||
| .ear-training-app .start-btn { | .ear-training-app .start-btn { | ||
| Zeile 92: | Zeile 93: | ||
| } | } | ||
| .ear-training-app .correct { | .ear-training-app .correct { | ||
| - | background-color: | + | background-color: |
| - | color: | + | color: |
| } | } | ||
| .ear-training-app .incorrect { | .ear-training-app .incorrect { | ||
| - | background-color: | + | background-color: |
| - | color: | + | color: |
| } | } | ||
| .ear-training-app .progress { | .ear-training-app .progress { | ||
| Zeile 116: | Zeile 117: | ||
| } | } | ||
| .ear-training-app .dot.correct { | .ear-training-app .dot.correct { | ||
| - | background-color: | + | background-color: |
| } | } | ||
| .ear-training-app .dot.incorrect { | .ear-training-app .dot.incorrect { | ||
| - | background-color: | + | background-color: |
| } | } | ||
| .ear-training-app .dot.current { | .ear-training-app .dot.current { | ||
| Zeile 604: | Zeile 605: | ||
| correctAnswers++; | correctAnswers++; | ||
| higherBtn.classList.add(' | higherBtn.classList.add(' | ||
| + | lowerBtn.classList.remove(' | ||
| | | ||
| // Bei richtiger Antwort nach 1 Sekunde automatisch zur nächsten Frage | // Bei richtiger Antwort nach 1 Sekunde automatisch zur nächsten Frage | ||
| Zeile 609: | Zeile 611: | ||
| } else { | } else { | ||
| higherBtn.classList.add(' | higherBtn.classList.add(' | ||
| + | lowerBtn.classList.add(' | ||
| | | ||
| // Bei falscher Antwort Optionen anzeigen | // Bei falscher Antwort Optionen anzeigen | ||
| retryNextDiv.classList.remove(' | retryNextDiv.classList.remove(' | ||
| } | } | ||
| + | | ||
| + | // Buttons deaktivieren nach Antwort | ||
| + | higherBtn.disabled = true; | ||
| + | lowerBtn.disabled = true; | ||
| | | ||
| // Fortschritt aktualisieren | // Fortschritt aktualisieren | ||
| Zeile 629: | Zeile 636: | ||
| correctAnswers++; | correctAnswers++; | ||
| lowerBtn.classList.add(' | lowerBtn.classList.add(' | ||
| + | higherBtn.classList.remove(' | ||
| | | ||
| // Bei richtiger Antwort nach 1 Sekunde automatisch zur nächsten Frage | // Bei richtiger Antwort nach 1 Sekunde automatisch zur nächsten Frage | ||
| Zeile 634: | Zeile 642: | ||
| } else { | } else { | ||
| lowerBtn.classList.add(' | lowerBtn.classList.add(' | ||
| + | higherBtn.classList.add(' | ||
| | | ||
| // Bei falscher Antwort Optionen anzeigen | // Bei falscher Antwort Optionen anzeigen | ||
| retryNextDiv.classList.remove(' | retryNextDiv.classList.remove(' | ||
| } | } | ||
| + | | ||
| + | // Buttons deaktivieren nach Antwort | ||
| + | higherBtn.disabled = true; | ||
| + | lowerBtn.disabled = true; | ||
| | | ||
| // Fortschritt aktualisieren | // Fortschritt aktualisieren | ||
tools/tonhoehentrainer.1747670265.txt.gz · Zuletzt geändert: von Eric Weber
