Skip to content

Anki JavaScript API to get cards informations in reviewer window

Notifications You must be signed in to change notification settings

krmanik/AnkiJS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

AnkiJS-API

Anki JavaScript API to get cards information in reviewer window

This addon is made to work with AnkiDroid JS API.

Install from AnkiWeb

https://ankiweb.net/shared/info/1490471827

Demo

images

To get card info in reviewer for creating decks

To know more about the options view AnkiDroid JS API.

New Count

pycmd("AnkiJS.ankiGetNewCardCount()", (ret) => {
    console.log(ret);
});

Learn Count

pycmd("AnkiJS.ankiGetLrnCardCount()", (ret) => {
    console.log(ret);
});

Review Count

pycmd("AnkiJS.ankiGetRevCardCount()", (ret) => {
    console.log(ret);
});

Mark

pycmd("AnkiJS.ankiGetCardMark()", (ret) => {
    console.log(ret);
});

Flag

pycmd("AnkiJS.ankiGetCardFlag()", (ret) => {
    console.log(ret);
});

Card Id

pycmd("AnkiJS.ankiGetCardId()", (ret) => {
    console.log(ret);
});

Note Id

pycmd("AnkiJS.ankiGetCardNid()", (ret) => {
    console.log(ret);
});

Deck Id

pycmd("AnkiJS.ankiGetCardDid()", (ret) => {
    console.log(ret);
});

Last modified time of card

pycmd("AnkiJS.ankiGetCardMod()", (ret) => {
    console.log(ret);
});

Type

pycmd("AnkiJS.ankiGetCardType()", (ret) => {
    console.log(ret);
});

Queue

pycmd("AnkiJS.ankiGetCardQueue()", (ret) => {
    console.log(ret);
});

Left

pycmd("AnkiJS.ankiGetCardLeft()", (ret) => {
    console.log(ret);
});

Due

pycmd("AnkiJS.ankiGetCardDue()", (ret) => {
    console.log(ret);
});

Interval

pycmd("AnkiJS.ankiGetCardInterval()", (ret) => {
    console.log(ret);
});

Factor

pycmd("AnkiJS.ankiGetCardFactor()", (ret) => {
    console.log(ret);
});

Reps

pycmd("AnkiJS.ankiGetCardReps()", (ret) => {
    console.log(ret);
});

Lapses

pycmd("AnkiJS.ankiGetCardLapses()", (ret) => {
    console.log(ret);
});

Original Due

pycmd("AnkiJS.ankiGetCardODue()", (ret) => {
    console.log(ret);
});

Deck ID of home deck if filtered

pycmd("AnkiJS.ankiGetCardODid()", (ret) => {
    console.log(ret);
});

Next Time 1

pycmd("AnkiJS.ankiGetNextTime1()", (ret) => {
    console.log(ret);
});

Next Time 2

pycmd("AnkiJS.ankiGetNextTime2()", (ret) => {
    console.log(ret);
});

Next Time 3

pycmd("AnkiJS.ankiGetNextTime3()", (ret) => {
    console.log(ret);
});

Next Time 4

pycmd("AnkiJS.ankiGetNextTime4()", (ret) => {
    console.log(ret);
});

About

Anki JavaScript API to get cards informations in reviewer window

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages