fix of CSS for QR code scanner button
This commit is contained in:
parent
ac7b2373b0
commit
0d4b9ddfc0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -56,11 +56,19 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
|||
margin: 0 auto 10px auto;
|
||||
display: block;
|
||||
}
|
||||
#file-input-wrapper { width: 100%; }
|
||||
#file-input-wrapper input { opacity: 0; }
|
||||
#file-input-wrapper span { width: 100%; }
|
||||
#file-input-wrapper {
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
#file-input-wrapper input {
|
||||
opacity: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
#file-input-wrapper span {
|
||||
padding-top: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
#file-input-wrapper i { display: none; }
|
||||
#file-input-wrapper:hover i { display: inline-block; }
|
||||
|
||||
/* Wrapper for page content to push down footer */
|
||||
#wrap {
|
||||
|
|
|
@ -55,9 +55,9 @@ angular.module('insight.system').controller('ScannerController',
|
|||
mpImg.render(canvas, { maxWidth: 200, maxHeight: 200, orientation: 6 });
|
||||
|
||||
setTimeout(function() {
|
||||
//qrcode.width = canvas.width;
|
||||
//qrcode.height = canvas.height;
|
||||
//qrcode.imagedata = context.getImageData(0, 0, qrcode.width, qrcode.height);
|
||||
qrcode.width = canvas.width;
|
||||
qrcode.height = canvas.height;
|
||||
qrcode.imagedata = context.getImageData(0, 0, qrcode.width, qrcode.height);
|
||||
|
||||
try {
|
||||
//alert(JSON.stringify(qrcode.process(context)));
|
||||
|
@ -65,7 +65,7 @@ angular.module('insight.system').controller('ScannerController',
|
|||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}, 1000);
|
||||
}, 1500);
|
||||
};
|
||||
})(file);
|
||||
|
||||
|
|
Loading…
Reference in New Issue