Tagged under "js"

Code

Converting Traditional/Simplified Chinese

For future reference Add the html tags 12<a href="javascript:zh_tran('s');" class="btn zh_click" id="zh_click_s"&g...

Code

Randomness generation

While working on a prototype of a web app, I needed to generate random boolean (true-or-false) values. At first, I tried this: 1var x = Math.random()>0.5;...