Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html><head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta charset="utf-8">
- <title>Ravenbit QR Code Generator</title>
- <!--<link rel="stylesheet" href="/css/labels.css" type="text/css" media="all"/>-->
- <style type="text/css">
- .block {
- width: 33%;
- float: left;
- }
- #code1, #code2, #generate {
- width: 90%;
- padding: 8px;
- }
- #qrcode1, #qrcode2, #qrcode-public, #qrcode-private {
- margin-left: 20px;
- }
- #qrcode-public, #qrcode-private {
- text-align: center;
- display: none;
- margin-top: 8px;
- font-weight: bold;
- }
- #qrcode-public {
- width: 132px;
- }
- #qrcode-private {
- width: 164px;
- }
- @media print {
- #qrcode1 canvas, #qrcode2 canvas, #qrcode-public, #qrcode-private {
- width: 53px;
- height: 53px;
- }
- #qrcode-public, #qrcode-private {
- font-size: 12px;
- }
- .hide-from-print {
- display: none;
- }
- }
- </style>
- </head>
- <body>
- <div style="text-align:center" class="hide-from-print"><strong>RAVENBIT QR CODE GENERATOR</strong></div>
- <p class="hide-from-print">Our QR code generator uses
- client-side javascript, so none of your information will be sent across
- the wire. You can view the source of this page, to see exactly what's
- going on, or you can disconnect from the internet before entering your
- keys. This generator was designed for use with Ravenbit's NODE physical
- coin.</p>
- <div class="block">
- <input id="code1" placeholder="Enter your public key" class="hide-from-print" type="text">
- <br><br>
- <div id="qrcode1"></div>
- <div id="qrcode-public">PUBLIC</div>
- </div>
- <div class="block">
- <input id="code2" placeholder="Enter your private key" class="hide-from-print" type="text">
- <br><br>
- <div id="qrcode2"></div>
- <div id="qrcode-private">PRIVATE</div>
- </div>
- <div class="block">
- <button id="generate" class="hide-from-print">Generate</button>
- </div>
- <script src="Ravenbit%20QR%20Code%20Generator_files/jquery-1.js"></script>
- <!-- https://github.com/jeromeetienne/jquery-qrcode -->
- <script src="Ravenbit%20QR%20Code%20Generator_files/jquery.js"></script>
- <script>
- (function($) {
- $('#generate').on('click', function() {
- $('#qrcode1').html('');
- $('#qrcode2').html('');
- var code1 = $('#code1').val();
- if (code1) {
- $('#qrcode1').qrcode({
- width: 132,
- height: 132,
- text: code1
- });
- $('#qrcode-public').show();
- } else {
- $('#qrcode-public').hide();
- }
- var code2 = $('#code2').val();
- if (code2) {
- $('#qrcode2').qrcode({
- width: 164,
- height: 164,
- text: code2
- });
- $('#qrcode-private').show();
- } else {
- $('#qrcode-private').hide();
- }
- });
- })(jQuery);
- </script>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment