Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 22nd, 2012  |  syntax: HTML  |  size: 0.75 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="englishTranslateCard question">
  2. <div id="tableContainer" style="background-image: url('{{Sentence-Image}}')">
  3.   <div id="cardContainer">
  4.     <div id="contentContainer">
  5.       <div id="expression">{{furigana:Sentence-Clozed}}</div>
  6.       <div id="sentenceEnglish">{{Sentence-English}}</div>
  7.       <div id="vocabContainer">
  8.           <div id="vocabFurigana">{{furigana:Vocabulary-Furigana}}</div>
  9.           <div id="vocabEnglish">{{Vocabulary-English}}</div>
  10.       </div>
  11.     </div>
  12.   </div>
  13. </div>
  14. </div>
  15. <script>
  16. // Fill in the clozed portion with its English meaning
  17. var eng = "{{Vocabulary-English}}"
  18. var cloze = document.getElementById("expression");
  19. cloze.innerHTML = cloze.innerHTML.replace(/( )/, "["+eng+"]");
  20. </script>
clone this paste RAW Paste Data