Oh awesome, thanks for the tip!
Sorry, I’m pretty new to the programming area in Anki…how do I proceed to integrate this code?
I tried it now by cloning the card type “simple” card and then copied the corresponding code from you to the front and back side.
How do I now have to select the corresponding cloze fields, which it should then show me one after the other?
I made a sample notetype for you. You can download it here..
By default, it acts like any other question and answer notetype, but if you put a list (ordered or unordered, doesn’t matter) into the answer field and underline the words you want to cloze, it will look like this:
Use Tab or click the screen to reveal the clozes. On desktop, it will automatically flip the card on the last reveal.
Fantastic! It is exactly as I imagined! Thank you so much for the help!
Would there still be a way to use these flashcards with the iPad? Here the “tab” doesn’t work… the cards are all revealed at the same time.
If that’s too complicated, no problem…I use the desktop version on the PC 95% of the time anyway.
Ah, I forgot to make the dummy-button - which only exists for AnkiMobile support - an actual <button> element. AnkiMobile suppresses all clicking input except that of <button>s.
I also made some other adjustments. It should now flip to the backside for the last reveal on both platforms. I used globalThis.ankiPlatform to discern between the two (For AnkiMobile, this variable is undefined. If this changes in the future, a slight adjustment will have to be made).
once again I have a question about the flashcard type you created for me @kleinerpirat:
At the moment, the front of the card guesses how many answers there should be (or you can see that there is more than one answer) based on the line spacing. Is there a way to change that so that it is displayed, for example, even with 4 key points only one line in the question?