From e5b86103d74e587b45e6f4b0be95603f823b8ffc Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 29 May 2014 14:02:21 +0200 Subject: [PATCH] Rendering bigger QR codes for more data transmission --- application.coffee | 6 +++++- application.js | 6 +++++- style.css | 6 +++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/application.coffee b/application.coffee index e4f436d..9d996e3 100644 --- a/application.coffee +++ b/application.coffee @@ -15,4 +15,8 @@ $ -> generateQRCode = -> text = $('textarea').val() $('#qrarea').empty() - $('#qrarea').qrcode(text) + $('#qrarea').qrcode + text: text + width: 512 + height: 512 + diff --git a/application.js b/application.js index d629826..7cb62ae 100644 --- a/application.js +++ b/application.js @@ -24,7 +24,11 @@ var text; text = $('textarea').val(); $('#qrarea').empty(); - return $('#qrarea').qrcode(text); + return $('#qrarea').qrcode({ + text: text, + width: 512, + height: 512 + }); }; }).call(this); diff --git a/style.css b/style.css index ee3726d..adf5e8e 100644 --- a/style.css +++ b/style.css @@ -52,10 +52,10 @@ input { #qrarea { border: 10px solid #fff; - margin-left: 322px; - height: 256px; + margin-left: 194px; + height: 512px; overflow: hidden; - width: 256px; + width: 512px; } #download {