tools:akkordtrainer2
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| tools:akkordtrainer2 [07/11/2025 12:39] – angelegt Eric Weber | tools:akkordtrainer2 [19/01/2026 15:13] (aktuell) – Eric Weber | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| < | < | ||
| - | <html lang=" | ||
| < | < | ||
| <meta charset=" | <meta charset=" | ||
| Zeile 43: | Zeile 42: | ||
| button { | button { | ||
| padding: 10px 20px; | padding: 10px 20px; | ||
| - | border: | + | border: |
| border-radius: | border-radius: | ||
| cursor: pointer; | cursor: pointer; | ||
| font-size: 14px; | font-size: 14px; | ||
| - | transition: | + | transition: |
| + | font-weight: | ||
| } | } | ||
| .btn-primary { | .btn-primary { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| + | border-color: | ||
| } | } | ||
| .btn-primary: | .btn-primary: | ||
| background-color: | background-color: | ||
| + | border-color: | ||
| } | } | ||
| .btn-secondary { | .btn-secondary { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| + | border-color: | ||
| } | } | ||
| .btn-secondary: | .btn-secondary: | ||
| background-color: | background-color: | ||
| + | border-color: | ||
| } | } | ||
| .btn-success { | .btn-success { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| + | border-color: | ||
| } | } | ||
| .btn-success: | .btn-success: | ||
| background-color: | background-color: | ||
| + | border-color: | ||
| } | } | ||
| .radio-group { | .radio-group { | ||
| Zeile 158: | Zeile 164: | ||
| .play-sound-btn { | .play-sound-btn { | ||
| background-color: | background-color: | ||
| - | color: | + | color: |
| padding: 15px 30px; | padding: 15px 30px; | ||
| font-size: 18px; | font-size: 18px; | ||
| margin: 20px 0; | margin: 20px 0; | ||
| + | border: 2px solid #17a2b8; | ||
| } | } | ||
| .play-sound-btn: | .play-sound-btn: | ||
| background-color: | background-color: | ||
| + | border-color: | ||
| } | } | ||
| .error-message { | .error-message { | ||
| Zeile 186: | Zeile 194: | ||
| <div class=" | <div class=" | ||
| <div id=" | <div id=" | ||
| - | <h2> | + | <h1> |
| - | | + | <h2>Jetzt mit echten Hörbeispielen</h2> |
| - | <div class=" | + | |
| - | < | + | |
| - | Dies ist ein bekanntes Problem | + | |
| - | < | + | |
| - | < | + | |
| - | Dann öffne die Datei in deinem Browser - dort sollte der Audio-Player funktionieren. | + | |
| - | </div> | + | |
| | | ||
| + | |||
| <div class=" | <div class=" | ||
| < | < | ||
| Zeile 284: | Zeile 286: | ||
| <div class=" | <div class=" | ||
| <div class=" | <div class=" | ||
| - | <input type=" | + | <input type=" |
| - | <label for="simultaneous">Simultan | + | <label for="successive">Sukzessiv |
| </ | </ | ||
| <div class=" | <div class=" | ||
| - | <input type=" | + | <input type=" |
| - | <label for="successive">Sukzessiv | + | <label for="simultaneous">Simultan |
| </ | </ | ||
| </ | </ | ||
| Zeile 559: | Zeile 561: | ||
| function generateWrongAnswers(correctType, | function generateWrongAnswers(correctType, | ||
| const wrong = []; | const wrong = []; | ||
| - | const allTypes | + | const selectedTypes |
| - | const isTriad | + | const correctAnswer |
| | | ||
| - | | + | |
| - | const randomType | + | const allPossibleAnswers |
| - | const randomIsTriad | + | selectedTypes.forEach(type => { |
| - | | + | const isTriad |
| - | | + | |
| + | | ||
| + | maxInv = 2; | ||
| + | } else if (!isTriad && quizSettings.seventhInversion === ' | ||
| + | maxInv = 3; | ||
| + | } | ||
| | | ||
| - | | + | |
| - | const correctAnswer | + | const answer |
| - | + | if (answer !== correctAnswer) { | |
| - | | + | |
| - | wrong.push(answer); | + | } |
| } | } | ||
| - | } | + | }); |
| | | ||
| - | return | + | |
| + | const shuffled = allPossibleAnswers.sort(() => Math.random() - 0.5); | ||
| + | | ||
| } | } | ||
tools/akkordtrainer2.1762515599.txt.gz · Zuletzt geändert: von Eric Weber
