Uses jeromeetienne/jquery-qrcode QR code library
Created
August 13, 2016 06:19
-
-
Save 2947721120/1daabede8674550895101b7cd9b854fc to your computer and use it in GitHub Desktop.
Simple QR Code
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
<p>https://github.com/jeromeetienne/jquery-qrcode (呈现表)</p> | |
<div id="qrcodeTable"></div> | |
<p>http://jeromeetienne.github.io/jquery-qrcode (渲染画布)</p> | |
<div id="qrcodeCanvas"></div> |
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
jQuery('#qrcodeTable').qrcode({ | |
render : "table", | |
text : "https://github.com/jeromeetienne/jquery-qrcode" | |
}); | |
jQuery('#qrcodeCanvas').qrcode({ | |
text : "http://jeromeetienne.github.io/jquery-qrcode" | |
}); |
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
<script src="//cdnjs.c2cbc.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="//cdnjs.c2cbc.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script> |
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
@import url(https://fonts.googleapis.com/css?family=Bangers); | |
body { | |
color: #fff; | |
background: #222; | |
font-family: 'Bangers', cursive; | |
} | |
div { | |
display: inline-block; | |
padding: 15px; | |
background: #fff; | |
border-radius: 15px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment