Skip to content

Instantly share code, notes, and snippets.

@hoyangtsai
Created October 27, 2022 07:32
Show Gist options
  • Save hoyangtsai/53cb4aa634fcf6c72275bd0d308b6881 to your computer and use it in GitHub Desktop.
Save hoyangtsai/53cb4aa634fcf6c72275bd0d308b6881 to your computer and use it in GitHub Desktop.
generate qrcode from url
<html>
<body>
<div id="qrcode"></div>
<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs/qrcode.min.js"></script>
<script>
const qrcode = new QRCode(document.getElementById('qrcode'), {
text: 'http://jindo.dev.naver.com/collie',
width: 128,
height: 128,
colorDark : '#000',
colorLight : '#fff',
correctLevel : QRCode.CorrectLevel.H
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment