Mercurial > qr-html
diff index.html @ 10:09146b1bfb65
Large code
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 28 Nov 2020 06:32:10 +0900 |
parents | 5998f1f51877 |
children | 70cfc091b2aa |
line wrap: on
line diff
--- a/index.html Sat Nov 28 06:12:04 2020 +0900 +++ b/index.html Sat Nov 28 06:32:10 2020 +0900 @@ -54,6 +54,11 @@ opacity: 0; } + .outputbox > img { + max-width: 100%; + max-height: 100vh; + } + .title { font-size: 16px; } @@ -85,7 +90,7 @@ <script> var inputDom = document.querySelector(".js-qr-input") var outputDom = document.querySelector(".js-qr-output") - var qr = new QRCode(outputDom, { correctLevel: QRCode.CorrectLevel.L }) + var qr = new QRCode(outputDom, { correctLevel: QRCode.CorrectLevel.L, width: 1024, height: 1024 }) var runTimeout = null var debouncedRefreshCode = function() {