Created
December 19, 2022 10:32
-
-
Save Maxim-Kolmogorov/1d1d88fe9a7eabe1fba9944bda42f519 to your computer and use it in GitHub Desktop.
Qr-code example. Docs: https://github.com/davidshimjs/qrcodejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script type="text/javascript" src="qrcode.min.js"></script> | |
</head> | |
<body> | |
<div id="qrcode"></div> | |
</body> | |
<script type="text/javascript"> | |
var qrcode = new QRCode(document.getElementById('qrcode'), { | |
text: "http://vverh.digital", | |
width: 128, | |
height: 128, | |
colorDark : "#000000", | |
colorLight : "#ffffff", | |
correctLevel : QRCode.CorrectLevel.H | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment