Advertisement
wiring

Anki Sample Front Template

Jul 5th, 2013
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.64 KB | None | 0 0
  1. <div class="container" id="keyword" onclick=""><h2 id="expression" class="jp">{{Expression}}</a></h2><div id="usage" class="jp">【ζŽ₯ηΆšγ€‘{{furigana:Usage}}</div></div>
  2.  
  3. <div class="container" id="example" onclick="toggle('translation')"><span class="jp">{{furigana:Examples}}</span><br>
  4. <span id="translation" class="none">{{Translations}}</span></div>
  5.  
  6. <script language="javascript">
  7. var toggle = function(name) {
  8.   var el = document.getElementById(name);
  9.   if ( !el.className.match(/(?:^|\s)none(?!\S)/) ) {
  10.     el.className += " none";
  11.   } else {
  12.     el.className = el.className.replace( /(?:^|\s)none(?!\S)/g , '' );
  13.   }
  14. };
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement