UNPKG

qrcode-generator

Version:
50 lines (49 loc) 1.71 kB
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Utf-8"> <script type="text/javascript" src="qrcode.js"></script> <!-- SJIS Support (optional) --> <script type="text/javascript" src="qrcode_SJIS.js"></script> <!-- <script type="text/javascript" src="qrcode_SJIS.js"></script> --> <!-- Uncomment to encode string in qrcode as UTF8 (optional) --> <!-- <script type="text/javascript" src="qrcode_UTF8.js"></script> --> <script type="text/javascript" src="sample.js"></script> <title>QR Code Generator for JavaScript</title> </head> <body onload="body_loadHander()"> <form name="qrForm"> <span>TypeNumber:</span> <select name="t"></select> <span>ErrorCorrectionLevel:</span> <select name="e"> <option value="L">L(7%)</option> <option value="M" selected="selected">M(15%)</option> <option value="Q">Q(25%)</option> <option value="H">H(30%)</option> </select> <span>Mode:</span> <select name="m"> <option value="Numeric">Numeric</option> <option value="Alphanumeric">Alphanumeric</option> <option value="Byte" selected>Byte</option> <option value="Kanji">Kanji</option> </select> <span>Multibyte:</span> <select name="mb"> <option value="default">None</option> <option value="SJIS">SJIS</option> <option value="UTF-8" selected>UTF-8</option> </select> <br/> <textarea name="msg" rows="10" cols="40">here comes qr!</textarea> <br/> <input type="button" value="update" onclick="update_qrcode()"/> <div id="qr"></div> </form> </body> </html>