qrcode genertor node
This commit is contained in:
50
HTML/QR Code Gen/khoc.html
Normal file
50
HTML/QR Code Gen/khoc.html
Normal file
@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>QR Code Generator</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
}
|
||||
#qrcode {
|
||||
padding: 20px;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.title {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.jsdelivr.net/npm/qrcode-generator@1.4.4/qrcode.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div id="qrcode"></div>
|
||||
<div class="title">КПЗЦ - документи Диск</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var typeNumber = 0;
|
||||
var errorCorrectionLevel = 'L';
|
||||
var qr = qrcode(typeNumber, errorCorrectionLevel);
|
||||
qr.addData('https://drive.google.com/drive/folders/1C4tx0tazNDci1e5RvCIV63xMsnohfrcZ?usp=sharing');
|
||||
qr.make();
|
||||
document.getElementById('qrcode').innerHTML = qr.createImgTag(6);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user