Simple QR Code generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.5 KiB

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Netzbegrünung QRCode Generator</title>
<link href="bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="bundle.js"></script>
<link href="qrcode.css" rel="stylesheet">
</head>
<body class="text-center">
<main class="form-qrcode">
<script type="text/javascript">
function generate_qrcode(e) {
e.preventDefault();
var wrapper = new QRCodeWrapper(document.getElementById("canvas"), document.getElementById("floatingInput").value);
wrapper.render();
}
</script>
<form onsubmit='generate_qrcode(event);'>
<div class="form-floating">
<img class="mb-4" src="https://blog.netzbegruenung.de/files/2013/10/netzbegruenung-logo-website.png" alt="" height="57">
<h1 class="h3 mb-3 fw-normal">QR Code Generator</h1>
</div>
<div class="form-floating">
<input type="text" class="form-control" id="floatingInput" placeholder="http://blog.netzbegruenung.de">
<label for="floatingInput">Adresse / Text</label>
</div>
<button type='button' class="w-100 btn btn-lg btn-primary" onclick='generate_qrcode(event);'>Generieren</button>
</form>
<div class="text-center m-4" id="qrcode" style=""><canvas id="canvas"></canvas></div>
</main>
</body>
</html>