{"id":27,"date":"2023-03-24T23:09:15","date_gmt":"2023-03-24T15:09:15","guid":{"rendered":"https:\/\/www.hfjoy.com\/?p=27"},"modified":"2023-03-24T23:09:15","modified_gmt":"2023-03-24T15:09:15","slug":"jquery-qrcode","status":"publish","type":"post","link":"https:\/\/www.hfjoy.com\/?p=27","title":{"rendered":"Jquery QRCode"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/jeromeetienne\/jquery-qrcode\">GitHub &#8211; jeromeetienne\/jquery-qrcode: qrcode generation standalone (doesn&#8217;t depend on external services)<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Use It<\/h2>\n\n\n\n<p>Let me walk you thru it. First include it in your webpage with the usual script tag<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\" src=\"jquery.qrcode.min.js\"&gt;&lt;\/script&gt;\n<\/code><\/pre>\n\n\n\n<p>Then create a DOM element which gonna contains the generated qrcode image. Lets say a div<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div id=\"qrcode\"&gt;&lt;\/div&gt;\n<\/code><\/pre>\n\n\n\n<p>Then you add the&nbsp;<em>qrcode<\/em>&nbsp;in this container by<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jquery('#qrcode').qrcode(\"this plugin is great\");\n<\/code><\/pre>\n\n\n\n<p>This is it. see it&nbsp;<a href=\"https:\/\/github.com\/jeromeetienne\/jquery-qrcode\/blob\/master\/examples\/basic.html\">live<\/a>.<\/p>\n\n\n\n<p>You can set the height and width of the generated qrcode:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jquery('#qrcode').qrcode({width: 64,height: 64,text: \"size doesn't matter\"});<\/code><\/pre>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-e31fcc00-fca5-4766-8200-a744040cc32c\" href=\"https:\/\/www.hfjoy.com\/wp-content\/uploads\/2023\/03\/jquery-qrcode-1.0.zip\">jquery-qrcode-1.0<\/a><a href=\"https:\/\/www.hfjoy.com\/wp-content\/uploads\/2023\/03\/jquery-qrcode-1.0.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-e31fcc00-fca5-4766-8200-a744040cc32c\"><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>GitHub &#8211; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[18],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-jquery","tag-jquery"],"_links":{"self":[{"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":3,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hfjoy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}