diff --git a/README b/README.md similarity index 84% rename from README rename to README.md index bf5dd799..e15a9433 100644 --- a/README +++ b/README.md @@ -9,6 +9,7 @@ Usage: Include the scripts in the following order: +```html @@ -26,11 +27,12 @@ Include the scripts in the following order: +``` -Set qrcode.callback to function "func(data)", where data will get the decoded information. +Set `qrcode.callback` to `function func(data) { }`, where data will get the decoded information. -Decode image with: qrcode.decode(url or DataURL). -Decode from canvas with "qr-canvas" ID: qrcode.decode() +Decode image with: `qrcode.decode(url or DataURL)` +Decode from canvas with `qr-canvas` ID: `qrcode.decode()` [new from 2014.01.09] For webcam qrcode decoding (included in the test.html) you will need a browser with getUserMedia (WebRTC) capability. diff --git a/src/qrcode.js b/src/qrcode.js index 69f52aa7..8d7f2890 100644 --- a/src/qrcode.js +++ b/src/qrcode.js @@ -178,7 +178,7 @@ qrcode.process = function(ctx){ var end = new Date().getTime(); var time = end - start; - console.log(time); + //console.log("Decoding took " + time + "ms"); return qrcode.decode_utf8(str); //alert("Time:" + time + " Code: "+str);