tools:tonhoehentrainer
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| tools:tonhoehentrainer [19/05/2025 17:51] – Eric Weber | tools:tonhoehentrainer [20/05/2025 08:42] (aktuell) – Eric Weber | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | <!DOCTYPE | + | < |
| - | <html lang=" | + | |
| < | < | ||
| <meta charset=" | <meta charset=" | ||
| Zeile 42: | 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 { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| padding: 12px 20px; | padding: 12px 20px; | ||
| border: none; | border: none; | ||
| Zeile 61: | Zeile 61: | ||
| .ear-training-app .play-tones-btn { | .ear-training-app .play-tones-btn { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| padding: 12px 20px; | padding: 12px 20px; | ||
| border: none; | border: none; | ||
| Zeile 93: | 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 135: | Zeile 135: | ||
| .ear-training-app .cancel-btn { | .ear-training-app .cancel-btn { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| padding: 10px 15px; | padding: 10px 15px; | ||
| border: none; | border: none; | ||
| Zeile 166: | Zeile 166: | ||
| .ear-training-app .next-btn { | .ear-training-app .next-btn { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| padding: 10px 15px; | padding: 10px 15px; | ||
| border: none; | border: none; | ||
| Zeile 194: | Zeile 194: | ||
| </ | </ | ||
| <div class=" | <div class=" | ||
| - | | + | Große Terz (maximal 4 Halbtöne Unterschied) |
| </ | </ | ||
| </ | </ | ||
| Zeile 286: | Zeile 286: | ||
| // Schwierigkeitsgradbeschreibungen | // Schwierigkeitsgradbeschreibungen | ||
| const difficultyDescriptions = { | const difficultyDescriptions = { | ||
| - | ' | + | ' |
| - | ' | + | ' |
| - | ' | + | ' |
| }; | }; | ||
| | | ||
| Zeile 605: | 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 610: | 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 630: | 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 635: | 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.1747669918.txt.gz · Zuletzt geändert: von Eric Weber
