1
0
Fork 0
mirror of https://github.com/Luzifer/qrdisplay.git synced 2024-12-22 12:21:18 +00:00

Rendering bigger QR codes for more data transmission

This commit is contained in:
Knut Ahlers 2014-05-29 14:02:21 +02:00
parent fcafcb1b66
commit e5b86103d7
3 changed files with 13 additions and 5 deletions

View file

@ -15,4 +15,8 @@ $ ->
generateQRCode = -> generateQRCode = ->
text = $('textarea').val() text = $('textarea').val()
$('#qrarea').empty() $('#qrarea').empty()
$('#qrarea').qrcode(text) $('#qrarea').qrcode
text: text
width: 512
height: 512

View file

@ -24,7 +24,11 @@
var text; var text;
text = $('textarea').val(); text = $('textarea').val();
$('#qrarea').empty(); $('#qrarea').empty();
return $('#qrarea').qrcode(text); return $('#qrarea').qrcode({
text: text,
width: 512,
height: 512
});
}; };
}).call(this); }).call(this);

View file

@ -52,10 +52,10 @@ input {
#qrarea { #qrarea {
border: 10px solid #fff; border: 10px solid #fff;
margin-left: 322px; margin-left: 194px;
height: 256px; height: 512px;
overflow: hidden; overflow: hidden;
width: 256px; width: 512px;
} }
#download { #download {