Created
November 20, 2017 01:38
-
-
Save agelastic/835b9ceaa717d18cad344fa4d9870cfe to your computer and use it in GitHub Desktop.
Anki front template for Chinese cards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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