UNPKG

insight-ui

Version:

An open-source frontend for the Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.

162 lines (149 loc) 4.16 kB
<!DOCTYPE html> <html lang="en-gb" data-ng-app="monospaced.qrcode" id="ng-app"> <head> <meta charset="utf-8"> <title>Angular QR Code</title> <!--[if lte IE 8]> <script>document.createElement('qrcode');</script> <![endif]--> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="//necolas.github.io/normalize.css/2.1.1/normalize.css"> <style> html { overflow-y: scroll; background: #fff; color: #1c000e; } body { margin: 16px; text-align: center; } h1 { margin: 0 8px 8px; font-weight: normal; font-size: 30px; } small { display: block; clear: both; margin: 0 8px; } p, pre { margin: 16px 0; overflow: hidden; } form { margin: 0 auto 8px; width: 274px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } label { float: left; width: 60px; color: #888; text-align: left; line-height: 2.125; cursor: pointer; } input, textarea { float: right; -moz-box-sizing: border-box; box-sizing: border-box; padding: 7px 3px 7px 7px; width: 204px; border: 1px solid #ccc; } textarea { resize: vertical; } select { float: right; -moz-box-sizing: border-box; box-sizing: border-box; width: 204px; height: 34px; padding: 7px 3px 7px 7px; border: 1px solid #ccc; } a { color: #000; text-decoration: none; -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; -o-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out; } a:hover, a:focus, a:active { color: #0067ce; -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } img, canvas { display: block; margin: 0 auto 8px; padding: 8px 0; max-width: 100%; } .footer { margin: 0 auto; width: 290px; } .footer img, .footer canvas { display: block; margin: 0 0 8px; padding: 8px; } .pull-left { float: left; } .pull-right { float: right; } </style> </head> <body data-ng-init="foo='here comes qr!';v=3;e='M';s=274;"> <h1>Angular QR Code</h1> <pre>&lt;qrcode&gt;&lt;/qrcode&gt;</pre> <qrcode version="{{v}}" error-correction-level="{{e}}" size="{{s}}" data="{{foo}}"></qrcode> <form> <p> <label for="data">Data</label> <textarea id="data" data-ng-model="foo" maxlength="2953"></textarea> </p> <p> <label for="size">Size</label> <input id="size" type="number" data-ng-model="s"> </p> <p> <label for="version">Version</label> <input id="version" type="number" data-ng-model="v" min="1" max="40"> </p> <p> <label for="level" title="Error Correction Level">Level</label> <select id="level" data-ng-model="e" data-ng-options="option.version as option.name for option in [{name:'Low', version:'L'},{name:'Medium', version:'M'},{name:'Quartile', version:'Q'},{name:'High', version:'H'}]"></select> </p> </form> <div class="footer"> <qrcode version="2" error-correction-level="M" size="129" class="pull-left" data="here comes qr!"></qrcode> <qrcode version="2" error-correction-level="M" size="129" data="here comes qr!"></qrcode> <qrcode class="pull-left" data="https://github.com/monospaced/angular-qrcode"></qrcode> <qrcode class="pull-right" data="http://monospaced.github.io/"></qrcode> <small> <a href="https://github.com/monospaced/angular-qrcode">https://github.com/monospaced/angular-qrcode</a> <br> <a href="http://monospaced.github.io/">Monospaced Labs</a> </small> </div> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script> <script src="//monospaced.github.io/bower-qrcode-generator/js/qrcode.js"></script> <script src="qrcode.js"></script> </body> </html>