comparison index.html @ 8:e50d930b2af1

Use lowest error correction level
author nanaya <me@nanaya.pro>
date Fri, 06 Jul 2018 16:28:26 +0900
parents 896b7f28d3ad
children 5998f1f51877
comparison
equal deleted inserted replaced
7:896b7f28d3ad 8:e50d930b2af1
83 <script src="qrcode.min.js"></script> 83 <script src="qrcode.min.js"></script>
84 84
85 <script> 85 <script>
86 var inputDom = document.getElementsByClassName("js-qr-input")[0] 86 var inputDom = document.getElementsByClassName("js-qr-input")[0]
87 var outputDom = document.getElementsByClassName("js-qr-output")[0] 87 var outputDom = document.getElementsByClassName("js-qr-output")[0]
88 var qr = new QRCode(outputDom) 88 var qr = new QRCode(outputDom, { correctLevel: QRCode.CorrectLevel.L })
89 89
90 var runTimeout = null 90 var runTimeout = null
91 var debouncedRefreshCode = function() { 91 var debouncedRefreshCode = function() {
92 clearTimeout(runTimeout) 92 clearTimeout(runTimeout)
93 runTimeout = setTimeout(refreshCode, 100) 93 runTimeout = setTimeout(refreshCode, 100)