1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00
+ QR Code generation
+ Added micromodal
* Bumped version by 0.0.8
* Updated DockerFile
* Updated Changelog
This commit is contained in:
2022-05-22 20:42:19 +03:00
parent 23fa17b840
commit 0bc4942924
6 changed files with 293 additions and 37 deletions

View File

@@ -166,6 +166,24 @@ function saveLocalArchive() {
}
function generateQRCode() {
var qrcodeContainer = document.getElementById(`qrcode`)
// Remove old contents
qrcodeContainer.innerHTML = "";
// Add new qr
new QRCode(qrcodeContainer, {
text: window.location.toString(),
width: 256,
height: 256,
colorDark: "#555273",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H
});
// Open the modal
MicroModal.show(`qrmodal`)
}
document.addEventListener(`DOMContentLoaded`, e => {
{ // Textarea Focusing