Anki front template for Chinese cards
<div class=tags> {{#Tags}}{{Tags}} -- {{/Tags}}{{Deck}}</div> | |
<br> | |
<br><br><br> | |
<div class=chinese>{{Hanzi}}</div> | |
<div id="text"></div> | |
<span style="display:none;" id="Tags">{{Tags}}</span> | |
<script> | |
var d = document; | |
Tags = d.getElementById('Tags').innerHTML.split(' '); | |
if (Tags.indexOf('leech')>-1 | Tags.indexOf('leechy')>-1) { | |
d.getElementById('text').innerHTML = '<br><br>^^^^^^^'; | |
d.getElementById('text').style.color = 'red'; | |
} | |
</script> | |
<div class="btm"> | |
Ease:{{info:factor}} Lapses:{{info:lapses}}</p> | |
<font color="red">{{info:Mature}} {{info:Learn}} {{info:Learning}}{{info:New}} {{info:Young}}{{info:Learn}}</font></p> | |
Last seen: | |
{{info:LastReview}} | |
</div> | |
<!--Requires http://finpapa.ucoz.ru/ankitest-plugins.html#YMCF for full functionality, will work with https://ankiweb.net/shared/info/441235634 after trivial editing --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment