mirror of
https://github.com/JustKato/FreePad.git
synced 2026-02-23 15:50:46 +02:00
QR Codes
+ QR Code generation + Added micromodal * Bumped version by 0.0.8 * Updated DockerFile * Updated Changelog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user