You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my idea. Make available all details about current card to WebView and then using css and js card can be redesigned with many possibilities. card.js have following functions
showAnswer()
buttonEaseAnser1()
buttonEaseAnser2()
buttonEaseAnser3()
buttonEaseAnser4()
markCard()
CardCount() // have count number of new card, learn card, review card
DeckName() // have deck name value
getETA() // have value of remaining time to review the current deck
Fascinating, that's a great project! I want to tag @SimonLammer directly to say that the AnkiDroid project is thinking through what the best is to have an "officially sanctioned" card template or distribution method or similar that would bundle a few things that any use of advanced web technologies in the WebView would want. Persistence is such an obvious one - it's the first thing to solve.
I personally would love the wisdom of the community already working in the area
Reproduction Steps
I have added following codes to AnkiDroid.
card.js
view.loadUrl
AbstractFlashcardViewer.java
Added custom card layout using css and js to deck template.
Anki-Custom-Card-Layout
Expected Result
Is there a better way to following values without using
setTimeout
.I get values ( cards count, title, mark, eta ) but by using
setTimeout
function ofjavascript
.Actual Result
WebView should get values without using
setTimeout
.Reason
It will help in card creation with custom layout.
Debug info
Refer to the support page if you are unsure where to get the "debug info".
Research
Enter an [x] character to confirm the points below:
The text was updated successfully, but these errors were encountered: