Guest User

Fallback Cards 2.0

a guest
Jan 15th, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. #########Front#######
  2. <div class="fallback">{{Expression}}</div>
  3. <div class="fallback hidden">{{Sentence}}</div>
  4.  
  5. <script>
  6. //https://ankiweb.net/shared/info/1642550423
  7. document.addEventListener("keyup", e=>{
  8. if(e.shiftKey) {
  9. f = document.getElementsByClassName("fallback")
  10. f[0].classList.toggle("hidden")
  11. f[1].classList.toggle("hidden")
  12. }
  13. });
  14. </script>
  15. #########Front#######
  16.  
  17. #########Back########
  18. {{Sentence}}
  19.  
  20. <hr id=answer>
  21.  
  22. <div style='font-size: 30px;'>{{Expression}}【{{Reading}}{{Audio}}】</div>
  23. <div style='font-size: 25px;'>{{Glossary}}</div>
  24. <div style='font-size: 15px;'><br/></div>
  25. <div style='font-size: 20px;'>{{Picture}}</div>
  26. #########Back########
  27.  
  28. #########Styling#########
  29. :root {
  30. --accent-color: #cc0033;
  31. --bg-color: #fafad2;
  32. }
  33.  
  34. .card {
  35. font-family: meiryo;
  36. font-size: 30px;
  37. text-align: center;
  38. color: black;
  39. background-color: var(--bg-color);
  40. }
  41.  
  42. .hidden {
  43. display: none;
  44. }
  45.  
  46. span {
  47. border-color: var(--accent-color) !important;
  48. }
  49.  
  50. .exp {
  51. color: var(--accent-color);
  52. }
  53.  
  54. img {
  55. max-width: 80vw;
  56. max-height 40vh;
  57. }
  58.  
  59. .replay-button { text-decoration: none; display: inline-flex; vertical-align: top; margin: 3px; outline: none; }
  60. .replay-button svg { width: 36px; height: 36px; }
  61. .replay-button svg circle { fill: #414141; stroke: #414141; }
  62. .replay-button svg path { fill: var(--bg-color); }
  63. #########Styling#########
Advertisement
Add Comment
Please, Sign In to add comment