Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CSS for line breaks
- p:first-letter {font-weight: bold; color: white; border-style: dashed; border-color: black; font-size: 50px}
- CSS for italic/bold/underline
- This stuff gets pasted in Styling (shared between cards)
- b {color: #000000; font-size:32px ;}
- .front i {color: #ffffff; font-size:1px ; }
- .ba i {color: #black; font-size:28px; font-style: normal; font-weight: bold;
- Javascript for find and replace text
- This gets pasted in the Front Template section:
- <script>
- fields = document.querySelectorAll('.front');
- for(var i=0; i<fields.length; i++) {
- fields[i].innerHTML = fields[i].innerHTML
- .replace(/\*-/g, ' <span style="font-size:49px">')
- .replace(/-\*/g, '</span>')
- }
- </script>
- Javascript for changing appearance of clozes
- This javascript changes the appearnce of cloze from the default {..} to |___|.
- This gets pasted in the Front Template section:
- <script>
- var cloze = document.querySelectorAll(".cloze");
- for(var i = 0; i < cloze.length; i++){
- cloze[i].textContent = "| __|";
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement