Skip to content

Instantly share code, notes, and snippets.

@agelastic
Created November 20, 2017 01:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agelastic/835b9ceaa717d18cad344fa4d9870cfe to your computer and use it in GitHub Desktop.
Save agelastic/835b9ceaa717d18cad344fa4d9870cfe to your computer and use it in GitHub Desktop.
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}}&nbsp;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