Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<script src=""></script>
<script src="jquery.qrcode.js"></script>
<script src="qrcode.js"></script>
<link href="css/style.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
$(function() {
var url;
$('#send').click(function () {
url = $('#text').val();
if(url != '') {
$("#qrcode").qrcode({text: url});
<title>QR code generator</title>
<h1 id="title">QR code generator</h1>
<div id="wrap">
<h3>generating QR codes</h3>
<input type="text" id="text">
<input type="button" value="send" id="send">
<div id="qrcode"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment