Skip to content

Instantly share code, notes, and snippets.

@plwalters
Created January 27, 2019 20:49
Show Gist options
  • Save plwalters/8902720a80c83b2294d72c9368fd1d59 to your computer and use it in GitHub Desktop.
Save plwalters/8902720a80c83b2294d72c9368fd1d59 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Node URI Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>QR Code Example</h1>
<!--Put the following <div></div> wherever you want the QR Code to display-->
<div class="qr-code-control"></div>
<!--Use disabled inputs when displaying URI's to make it easier to select them all-->
<input style="width: 100%; font-size: 1.5em;" disabled="disabled" class="uri-display" />
<!--Load qrcode.min.js from cdn to render the QR Code-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/qrcode.min.js"></script>
<!--You can load the script.js javascript manually or insert it in a script tag in your html-->
<script src="script.js">
</script>
</body>
</html>
/* todo: add styles */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment