Created
January 27, 2019 20:49
-
-
Save plwalters/8902720a80c83b2294d72c9368fd1d59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* todo: add styles */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment