Hello,
I am quizzing on declinations of nouns (or verbs) and use a table with the different forms.
On one row, I have the declination, on the next I show an example of how it is used in a sentence.
I want to hide the example without quizzing on the example.
The back of the card use AwesomeTTS to pronounce only the answer. I want for it pronounce the answer and the example.
Is there an addon or some code I can use to hide some of the clozes that are on the same card?
First c1 → quizz
Second/Subsequent c1 → Hide, reveal with answer.
I also use the Hide All/Show One code I found on the forum to hide cloze on other cards (c2, c3… when c1 is shown).
Thanks for your help.
The front looks like this:
{{Explanation}}
{{cloze:Text}}
{{type:cloze:Text}}
<script>
inactiveClozes = document.getElementsByClassName("cloze-inactive");
for (i = 0; i<inactiveClozes.length; i++){
inactiveClozes[i].classList.add("cloze");
inactiveClozes[i].innerHTML = "[...]";
}
</script>
The back:
{{Explanation}}
<br> <br>
{{cloze:Text}}
{{type:cloze:Text}}
<br><br>
{{Back Extra}}
<br>
<script>
inactiveClozes = document.getElementsByClassName("cloze-inactive");
for (i = 0; i<inactiveClozes.length; i++){
inactiveClozes[i].classList.add("cloze");
}
</script>
{{tts nb_NO voices=AwesomeTTS:cloze-only:Text}}
Styling:
.cloze.cloze-inactive {
color: #BDBDBD !important;
}