Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About RandomNumberGen

  • Rank
  1. Cool, I did it. <!DOCTYPE html> <html> <style> .tk { border-collapse: collapse; } .tk th, td { border: 1px solid #ddd; padding: 6px } .tk th { width: 56px; background-color: #f7f7f7; font-size: 24px; font-weight: normal; } .tk td { width: 240px; text-align: left; font-size: 16px; } </style> <body onload="kanjiFormat()"> <p id="jisho">#長#long, leader#ながい、おさ#チョウ#</p> <script> var codeKstart = '<table align="center" class="tk"><tr><th rowspan="2">' var codeMstart = '</th><td>' var codeRstart = '</td></tr&
  2. Awesome. I just tested basic JS on AnkiDroid and it works! Time to relearn all of this. Do you know if a function that selects stuff is part of basic JS or it's one of those you have to attach extra code on the header?
  3. Hi, I would like to know if it's possible to use javascript (specially on Anki; if you know what it is) to format a text line into a html table. Basically, what I want is to copy the definition of an online dictionary (japanese in this case): 長/long, leader/ながい、おさ/チョウ And have the javascript read the first "/", select what's behind it, put in a <th>, select what's between first and second /, put in a <td>, and so forth. I have the CSS set up already. All of this in real time, like, when the software tries to show the line above, the JS will format it to show the styl
  • Create New...