| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/public_html/newadmin/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code Form Maker</title>
<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@latest/qrcode.min.js"></script>
</head>
<body>
<form id="qrForm">
<label for="urlInput">Enter URL:</label>
<input type="url" id="urlInput" required>
<input type="submit" value="Generate QR Code">
</form>
<div id="qrcode"></div>
<a href="#" id="downloadLink" style="display: none;">Download High-Res QR Code</a>
<script>
document.getElementById('qrForm').addEventListener('submit', function(event) {
event.preventDefault();
let url = document.getElementById('urlInput').value;
// Empty the QR Code div
document.getElementById('qrcode').innerHTML = "";
// Create QR Code
let qrcode = new QRCode(document.getElementById("qrcode"), {
text: url,
width: 2048, // Increased size for high resolution
height: 2048 // Increased size for high resolution
});
// Create Download Link
setTimeout(function() {
let canvas = document.querySelector('#qrcode canvas');
let downloadLink = document.getElementById('downloadLink');
downloadLink.setAttribute('href', canvas.toDataURL('image/png').replace("image/png", "image/octet-stream"));
downloadLink.setAttribute('download', 'qrcode.png');
downloadLink.style.display = 'block';
}, 1000); // Increase wait time for QR code rendering due to larger size
});
</script>
</body>
</html>