{"id":858,"date":"2008-09-02T01:00:00","date_gmt":"2008-09-01T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2008-09-02-1.html"},"modified":"2008-09-02T01:00:00","modified_gmt":"2008-09-01T16:00:00","slug":"2008-09-02-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2008-09-02-1.html","title":{"rendered":"Ubiquity &#8211; \u4efb\u610f\u306e\u30c6\u30ad\u30b9\u30c8\u306e QR \u30b3\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p>\nFirefox \u30a2\u30c9\u30aa\u30f3\u306e Ubiquity \u304c\u4fbf\u5229\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001Ubiquity \u3067\u4f7f\u3048\u308b QR \u30b3\u30fc\u30c9\u8868\u793a\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f(Ubiquity 0.1.1 \u3067\u52d5\u4f5c\u78ba\u8a8d)\u3002\n<\/p>\n<blockquote><p>\/\/ text to QR code<br \/>\nconst QRCODE_WIDTH = 150;<br \/>\nconst QRCODE_HEIGHT = 150;<br \/>\nconst QRCODE_URI = &#8216;<a href=\"http:\/\/chart.apis.google.com\/chart?chs='+QRCODE_WIDTH+'x'+QRCODE_HEIGHT+'&amp;cht=qr&amp;choe=Shift_JIS&amp;chl=';\">http:\/\/chart.apis.google.com\/chart?chs=&#8217;+QRCODE_WIDTH+&#8217;x&#8217;+QRCODE_HEIGHT+&#8217;&amp;cht=qr&amp;choe=Shift_JIS&amp;chl=&#8217;;<\/a><br \/>\nCmdUtils.CreateCommand({<br \/>\nname: &#8220;qrcode&#8221;,<br \/>\ntakes: {&#8220;Any text(URL, email..)&#8221;: noun_arb_text},<br \/>\npreview: function(pblock, arg){<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;pblock.innerHTML = &#8216;Inserts qrcode: &lt;i>&#8217;+arg.text+<br \/>\n&#8216;&lt;br>&lt;img width=&#8221;&#8216;+QRCODE_WIDTH+'&#8221; height=&#8221;&#8216;+QRCODE_HEIGHT+'&#8221; src=&#8221;&#8216; + QRCODE_URI + encodeURIComponent(arg.text) + &#8216;&#8221;>&#8217;;<br \/>\n},<br \/>\nexecute: function(arg) {<br \/>\n&nbsp;&nbsp;if(arg.text != &#8220;&#8221;){<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;CmdUtils.setSelection(&#8216;&lt;img src=&#8221;&#8216; + QRCODE_URI + encodeURIComponent(arg.text) + &#8216;&#8221;>&#8217;);<br \/>\n&nbsp;&nbsp;}<br \/>\n}<br \/>\n});\n<\/p><\/blockquote>\n<p>\u5c0e\u5165\u65b9\u6cd5:<br \/>\n1. Ctrl+Space \u30ad\u30fc\u3092\u62bc\u3057\u3066 command-editor \u3068\u5165\u529b\u3057\u3066\u6539\u884c\u30ad\u30fc\u3067\u5b9f\u884c\u3002<br \/>\n2.\u4e0a\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30ad\u30b9\u30c8\u9818\u57df\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3002<br \/>\n&nbsp;<br \/>\n\u3053\u308c\u3067 qrcode \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u5229\u7528\u65b9\u6cd5:<br \/>\n\u30da\u30fc\u30b8\u5185\u306e\u9069\u5f53\u306a\u6587\u5b57\u5217\u3092\u9078\u629e\u3057\u305f\u3042\u3068 Ctrl+Space \u3092\u62bc\u3057\u3066 qrcode \u3068\u5165\u529b\u3002<br \/>\n\u307e\u305f\u306f\u3001qrcode \u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u9069\u5f53\u306a\u6587\u5b57\u5217\u3092\u5165\u529b\u3002<br \/>\n&nbsp;<br \/>\n\u4f8b:\n<\/p>\n<blockquote><p>qrcode <a href=\"http:\/\/google.co.jp\/\">http:\/\/google.co.jp\/<\/a>\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecoop.net\/memo\/rs\/20080902.png\" alt=\"Ubiquity qrcode command screenshot\"><\/p>\n<p>&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"https:\/\/wiki.mozilla.org\/Labs\/Ubiquity\">Labs\/Ubiquity<\/a>(mozilla.org)<br \/>\n&nbsp;<br \/>\n&#8211; <a href=\"http:\/\/code.google.com\/apis\/chart\/#qrcodes\">Google Chart API<\/a>(google.com)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox \u30a2\u30c9\u30aa\u30f3\u306e Ubiquity \u304c\u4fbf\u5229\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001Ubiquity \u3067\u4f7f\u3048\u308b QR \u30b3\u30fc\u30c9\u8868\u793a\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f(Ubiquity 0.1.1 \u3067\u52d5\u4f5c\u78ba\u8a8d)\u3002 \/\/ text to QR code &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2008-09-02-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Ubiquity &#8211; \u4efb\u610f\u306e\u30c6\u30ad\u30b9\u30c8\u306e QR \u30b3\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[17],"class_list":["post-858","post","type-post","status-publish","format-standard","hentry","tag-firefox"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=858"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/858\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}