aboutsummaryrefslogtreecommitdiffstats
path: root/qr.js
diff options
context:
space:
mode:
Diffstat (limited to 'qr.js')
-rw-r--r--qr.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/qr.js b/qr.js
index 8cc18f69..a7b00794 100644
--- a/qr.js
+++ b/qr.js
@@ -703,24 +703,16 @@ function genframe(instring)
var wd, ht, qrc;
function setupqr(){
- wd = window.innerWidth-40;
- ht = window.innerHeight-40;
+ wd = 250;
+ ht = 250;
mp = document.getElementById("mapcanv");
- qrd = document.getElementById("qrdiv");
- qrd.style.width = wd + "px";
- qrd.style.height = ht + "px";
-
- wd -= 4;
- ht -= 80;
-
var elem = document.getElementById('qrcanv');
qrc = elem.getContext('2d');
qrc.canvas.width = wd;
qrc.canvas.height = ht;
qrc.fillStyle = '#eee';
qrc.fillRect(0,0,wd,ht);
-
}
function doqr(value) {