I had an idea to add a timer to a shared deck using javascript. Someone told me on the Anki-Users forum that AnkiDroid may be problematic in this regard.
Basically, what I want to do is:
====>>>>
1. Detect the question-side of card by the *absence* of "hr id=answer".
1.2. Start a timer with:
var elapsedTime = 0;
var myTimer = setInterval(incrementTimer, 200);
2. Otherwise, it's the answer-side of card
2.2. Stop timer and write the elapsed time to the element on the card:
window.clearInterval(myTimer) document.getElementById("timer").innerHTML = elapsedTime<<<<====
This words perfectly with Anki desktop. However, someone said AnkiDroid can't do this. Something about a flip of the card being treated like a new card (creating a new environment).
My questions are:
1. Will this work on AnkiDroid?
2. If not, is there another way to pass the incremented timer value? (I googled and read something about get/set properties on Droid?).
I wanted to stay away from addons since this seemed like such a simple feature (especially when implemented within an environment using webkit).
Thanks.