Guest User

Untitled

a guest
Feb 5th, 2015
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.29 KB | None | 0 0
  1. requires the following fonts: KouzanBrushFontGyousyo/Sousyo, IPAPMincho, KanjiStrokeOrders
  2. used fields (map to your own deck): Expression Reading Meaning Examples Audio
  3.  
  4. ------------------Front----------------
  5.  
  6. <head>
  7. <script>
  8. y = new Array();
  9. y1 = new Array();
  10. x = "{{Expression}}".split("");
  11. x1 = "{{Reading}}".split("")
  12. while (x.length != 0) y.push("<span class=\"rotator\">" + x.pop() + "</span>");
  13. while (x1.length != 0) y1.push("<span class=\"rotator\">" + x1.pop() + "</span>");
  14. z = y.reverse().join("");
  15. z1 = y1.reverse().join("")
  16. document.getElementById("1").innerHTML = z;
  17. document.getElementById("2").innerHTML = z;
  18. document.getElementById("3").innerHTML = z;
  19. document.getElementById("reading").innerHTML = z1;
  20. document.getElementById("expression").innerHTML = z;
  21. </script></head><body>
  22. <div style='
  23. color: #123456;font-family: KouzanBrushFontGyousyoOTF; font-size: 90px;' id="1">{{Expression}}</div>
  24. <div style='
  25. color: #123456;font-family: KouzanBrushFontSousyoOTF; font-size: 90px;' id="2">{{Expression}}</div>
  26.  
  27. ------------------Back----------------
  28.  
  29. {{FrontSide}}
  30. <hr id=answer>
  31. [sound:{{Audio}}]
  32. <div style='font-family: IPAPMincho; font-size: 22px;' lang="jp"><span id="reading">{{Reading}}</span><span id="expression">{{Expression}}</span></div>
  33. <div style='
  34. color: #123456;font-family: KanjiStrokeOrders; font-size: 90px;' id="3">{{Expression}}</div><span style="-webkit-writing-mode: horizontal-tb; -moz-writing-mode: horizontal-tb;-ms-writing-mode: horizontal-tb;writing-mode: horizontal-tb;width: 220px">
  35. <div style='font-family: IPAPMincho; font-size: 15px;'>{{Meaning}}</div><br>
  36. <div style='font-family: IPAPMincho; font-size: 10px;'>{{Examples}}</div>
  37. </span></body>
  38.  
  39. ------------------CSS----------------
  40.  
  41. .card {
  42.  font-size: 10px;
  43. -webkit-writing-mode: vertical-rl;
  44. -ms-writing-mode: vertical-rl;
  45. -moz-writing-mode: vertical-rl;
  46. -ms-writing-mode: tb-rl;
  47. writing-mode: vertical-rl;
  48. -webkit-text-orientation: upright;
  49. -ms-text-orientation: upright;
  50. -moz-text-orientation: upright;
  51. text-orientation: upright;
  52. padding-top: 10px;
  53. }
  54. .mobile .card{text-align: center;}
  55. .mobile .rotator {
  56.  -webkit-transform: rotate(0deg);
  57. padding-top: 0px;
  58. padding-bottom: 0px;
  59. }
  60. .rotator{
  61.  -webkit-transform: rotate(-90deg);
  62. display:inline-block;
  63. padding-bottom: 1px;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment