|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | +<head> |
| 4 | + <title></title> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 | + <meta name="generator" content="pandoc" /> |
| 7 | + <meta name="date" content="" /> |
| 8 | +</head> |
| 9 | +<body> |
| 10 | +<div id="jquery.qrcode.js" |
| 11 | +><h1 |
| 12 | + >jQuery.qrcode.js</h1 |
| 13 | + ><p |
| 14 | + >With jQuery.qrcode.js you can easily add qrcode to your webpages. It is standalone, no external services which go on and off, or add latency while loading.</p |
| 15 | + ><p |
| 16 | + >Show, dont tell, here is a <a href='examples/demo.html'>demo</a></p |
| 17 | + ><div id="how-to-use-it" |
| 18 | + ><h2 |
| 19 | + >How to Use It</h2 |
| 20 | + ><p |
| 21 | + >First include it in your webpage with the usual script tag</p |
| 22 | + ><pre |
| 23 | + ><code |
| 24 | + ><script type="text/javascript" src="jquery.qrcode.min.js"></script> |
| 25 | +</code |
| 26 | + ></pre |
| 27 | + ><p |
| 28 | + >Then create a DOM element which gonna contains the generated qrcode image. Lets say a div</p |
| 29 | + ><pre |
| 30 | + ><code |
| 31 | + ><div id="qrcode"></div> |
| 32 | +</code |
| 33 | + ></pre |
| 34 | + ><p |
| 35 | + >Then you add the <em |
| 36 | + >qrcode</em |
| 37 | + > in this container by</p |
| 38 | + ><pre |
| 39 | + ><code |
| 40 | + >jQuery('#qrcode').qrcode("this plugin is great"); |
| 41 | +</code |
| 42 | + ></pre |
| 43 | + ><p |
| 44 | + >This is it.</p |
| 45 | + ></div |
| 46 | + ><div id="conclusion" |
| 47 | + ><h2 |
| 48 | + >Conclusion</h2 |
| 49 | + ><p |
| 50 | + >MicroEvent.js is available on github <a href='https://github.com/jeromeetienne/jquery-qrcode'>here</a> under <a href='https://github.com/jeromeetienne/microevent.js/blob/master/MIT-LICENSE.txt'>MIT license</a>. If you hit bugs, fill issues on github. Feel free to fork, modify and have fun with it :)</p |
| 51 | + ></div |
| 52 | + ></div |
| 53 | +> |
| 54 | +<style> |
| 55 | +body { |
| 56 | + margin: auto; |
| 57 | + padding-right: 1em; |
| 58 | + padding-left: 1em; |
| 59 | + max-width: 44em; |
| 60 | + border-left: 1px solid #eee; |
| 61 | + border-right: 1px solid #eee; |
| 62 | + font-family : Verdana, sans-serif; |
| 63 | + font-size : 100%; |
| 64 | + line-height : 140%; |
| 65 | + color : #eee; |
| 66 | + background-color : #22252a; |
| 67 | +} |
| 68 | +pre { |
| 69 | + border : 1px dotted gray; |
| 70 | + background-color : #444a50; |
| 71 | + color : #1111111; |
| 72 | + padding : 0.5em; |
| 73 | +} |
| 74 | +code { |
| 75 | + font-family : monospace; |
| 76 | +} |
| 77 | +a { |
| 78 | + text-decoration : none; |
| 79 | + color : lightSteelBlue; |
| 80 | +} |
| 81 | +a:hover { |
| 82 | + text-decoration : underline; |
| 83 | +} |
| 84 | +h1, h2, h3, h4, h5 { font-family: verdana; |
| 85 | + font-weight: bold; |
| 86 | + border-bottom: 1px dotted #eee; |
| 87 | + color: lightSteelBlue; } |
| 88 | +h1 { |
| 89 | + color : #cd5; |
| 90 | + font-size : 130%; |
| 91 | +} |
| 92 | +h1:nth-child(1) { |
| 93 | + font-size : 300%; |
| 94 | + text-align : center; |
| 95 | + height : 1em; |
| 96 | +} |
| 97 | +h2 { |
| 98 | + font-size : 110%; |
| 99 | +} |
| 100 | + |
| 101 | +h3 { |
| 102 | + font-size : 95%; |
| 103 | +} |
| 104 | + |
| 105 | +h4 { |
| 106 | + font-size : 90%; |
| 107 | + font-style : italic; |
| 108 | +} |
| 109 | + |
| 110 | +h5 { |
| 111 | + font-size : 90%; |
| 112 | + font-style : italic; |
| 113 | +} |
| 114 | + |
| 115 | +h1.title { |
| 116 | + font-size : 200%; |
| 117 | + font-weight : bold; |
| 118 | + padding-top : 0.2em; |
| 119 | + padding-bottom : 0.2em; |
| 120 | + text-align : left; |
| 121 | + border : none; |
| 122 | +} |
| 123 | + |
| 124 | +dt code { |
| 125 | + font-weight : bold; |
| 126 | +} |
| 127 | +dd p { |
| 128 | + margin-top : 0; |
| 129 | +} |
| 130 | +img { |
| 131 | +/* border-color : white; |
| 132 | + border-style : solid; |
| 133 | +*/} |
| 134 | + |
| 135 | +#footer { |
| 136 | + padding-top : 1em; |
| 137 | + font-size : 70%; |
| 138 | + color : gray; |
| 139 | + text-align : center; |
| 140 | +} |
| 141 | + |
| 142 | +</style> |
| 143 | +<!-- follow me on twitter --> |
| 144 | +<a href="http://www.twitter.com/jerome_etienne"> |
| 145 | + <img style="position: absolute; bottom: 10px; right: 10px; border: 0;" src="http://twitter-badges.s3.amazonaws.com/follow_me-c.png" alt="Follow jerome_etienne on Twitter"/> |
| 146 | +</a> |
| 147 | +<!-- github ribbon --> |
| 148 | +<a href="https://github.com/jeromeetienne/jquery-qrcode"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://assets0.github.com/img/ce742187c818c67d98af16f96ed21c00160c234a?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_gray_6d6d6d.png&path=" alt="Fork me on GitHub"></a> |
| 149 | +<!-- twitter share + facebook like --> |
| 150 | +<div style="position: absolute; top: 10px; right: 10px; border: 0;"> |
| 151 | + |
| 152 | + <a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="jerome_etienne">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
| 153 | +</div> |
| 154 | +</body> |
| 155 | +</html> |
| 156 | + |
0 commit comments