Files
mapo-core/MP.Land/wwwroot/lib/dispQr.js
T
2024-07-19 16:54:36 +02:00

18 lines
630 B
JavaScript

// gestione qrcode... da https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-enable-qrcodes?view=aspnetcore-5.0
//var qrcode = new QRCode("qrCodeImg");
function displayQr(elementName, rawData) {
try {
if (elementName != "" && rawData != "") {
//qrcode = new QRCode(document.getElementById(elementName));
new QRCode(document.getElementById(elementName),
{
text: rawData,
width: 300,
height: 300
});
//qrcode.makeCode(rawData);
}
}
catch
{ }
}