-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Feature request: add card state and properties to card.html #5587
Description
There is currently no information about the card state (i.e. "is:new", "is:learning") and card properties (i.e. "prop:lapses", "prop:reps") within the card.html. That means, users are not able to retrieve this information during reviews in order to dynamically change the card template.
This information could be used in several ways, for example:
- show or hide different fields on new cards and learning cards (most other SRS I know show additional information and mnemonics for new cards, but only the basic question-answer fields for review cards)
- change the background color or other styling elements for new cards, so that users in fullscreen (who don't see the numbers in the top left) can distinguish the card state
- change the appearance of hard cards (low ease) or easy cards in order to give visual hints
- change the appearance of cards that were failed recently
- etc. etc.
Suggestion:
In the card.html there's a section where you load all the external JS. Within this script section you could add a function with an array or an object containing the card information. Ex.:
...
var card-state = {due:"1", new:"0", learn:"0", review:"1"};
var card-prop = {ivl:"10", reps:"3", lapses:"0", ease:"2.5"};
...
Users could then easily retrieve this information using JS in the card template.
Research
Enter an [ x ] character to confirm the points below:
[X ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
[ x ] I have checked the manual and the FAQ and could not find a solution to my issue
[ x ] I have searched for similar existing issues here and on the user forum