This is an Anki card script that is meant to allow the user to type in pinyin and get feedback based on the answer of the card.
You will need to have at least Anki 2.1.35 installed in order for everything to run smoothly (This script has not been tested on earlier versions).
<div id="answer" class="answer">ANSWER GOES HERE</div>
<div class="container">
<div class="output"id="output">
<div class="message" id="message">Click here to start typing...</div>
</div>
<button class="submit" id="submit">Check Pinyin</button>
</div>
<div class="dummy-input"><input type="text" id="input"></div>
<script></script>