Skip to content

Commit bd3de7f

Browse files
Update README.md
Made the 2nd sample match the first sample.
1 parent 540308a commit bd3de7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie
1313
or with some options
1414

1515
```
16-
var qrcode = new QRCode("test", {
16+
<div id="qrcode"></div>
17+
<script type="text/javascript">
18+
var qrcode = new QRCode(document.getElementById("qrcode"), {
1719
text: "http://jindo.dev.naver.com/collie",
1820
width: 128,
1921
height: 128,
2022
colorDark : "#000000",
2123
colorLight : "#ffffff",
2224
correctLevel : QRCode.CorrectLevel.H
2325
});
26+
</script>
2427
```
2528

2629
and you can use some methods

0 commit comments

Comments
 (0)