AnkiDroid JavaScript API allow deck developer to add functionality to cards that can call native functions defined in AnkiDroid. This can be used to design whole new layout for buttons, cards info, top bar card counts, mark, flag etc. But Anki Desktop there are no official support like this JS API. So, this is Anki addon for supporting the AnkiDroid-JS-API . Download AnkiJS API Addon View Source Code Usages 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.ankiGe...
Comments
Post a Comment