I tried to implement a QRCode in my HTML-Template:
<div id="qrcode">
<script type="text/javascript">
new QRCode(document.getElementById('qrcode'), '');
</script>
</div>
In my qrcode.min.js I have this:
var qrcode = new QRCode(document.getElementById("qrcode"), {
text: "",
width: 128,
height: 128,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H
});
But I still get this error and the QRCode don't show off..
Here is my path:
<script "type=text/javascript" src="qrcode.min.js"></script>
Solved
I solved the issue.
The problem was that I integrated :
var qrcode = new QRCode(document.getElementById("qrcode"), {
text: "",
width: 128,
height: 128,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H
});
But I never integrated the function "QRCode". .min.js
There is a really good documentation about the implementation of QRCodes. I needed this function in my qrcode.min.js and now it is working.