QRコード for star URL
by
fmht7
2012-03-21 [2012/03/21 18:03:15]
スターを付けるURLをQRコードに変換し表示する
@@ -7,8 +7,7 @@
*/
(function(){
- var t='http://s.hatena.ne.jp/mobile/entry?is_touch=1&uri='+encodeURIComponent(location.href);
- var t=encodeURIComponent(t);
+var t=encodeURIComponent('http://s.hatena.ne.jp/mobile/entry?is_touch=1&uri='+encodeURIComponent(location.href));
var w=window.open('about:blank','_blank','width=325, height=350');
w.document.open();
w.document.write('<html><body><div><img src="http://chart.googleapis.com/chart?choe=Shift_JIS&chs=300x300&cht=qr&chl='+t+'" alt="" height=300 width=300></div>');
/*
* @title star URL to QRコード
* @description 今見ているページにスターを付けるURLのQRコードを表示する
* @include http://*
* @license MIT License
* @require
*/
(function(){
var t=encodeURIComponent('http://s.hatena.ne.jp/mobile/entry?is_touch=1&uri='+encodeURIComponent(location.href));
var w=window.open('about:blank','_blank','width=325, height=350');
w.document.open();
w.document.write('<html><body><div><img src="http://chart.googleapis.com/chart?choe=Shift_JIS&chs=300x300&cht=qr&chl='+t+'" alt="" height=300 width=300></div>');
w.document.write('<div><input onclick="window.close();" type="button" value="close" /></div></body></html>');
w.document.close();
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。