aboutsummaryrefslogtreecommitdiffstats
path: root/twitterView.js
AgeCommit message (Expand)Author
2008-12-02Follow CVS Head.anekos
2008-05-09 * 空白を修整しました。drry
2008-05-09 * `liberator.plugins.statuses` わたし。drry
2008-05-09 * 若干怖いのでおそなえ。drry
2008-05-09 * 差分取得に変更しました。drry
2008-05-09* ,fでfavmattn
2008-04-23lang/javascript/vimperator-plugins/trunk/twitterView.js: textbox -> labeltrapezoid
2008-04-06lang/javascript/vimperator-plugins/trunk/browser_object.jsdrry
2008-03-26lang/javascript/vimperator-plugins/trunk/twitterView.js: add mapping(,r) for ...trapezoid
2008-03-24lang/javascript/vimperator-plugins/twitterView.js: コマンドラインバ...trapezoid
2008-03-24git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins...trapezoid
2008-03-24lang/javascript/vimperator-plugins/twitterView.js: topics like twitter viewertrapezoid
lt;p> You can get Watchizu URL of current machine location by this plugin. </p> <item> <tags>'Watchizu'</tags> <spec>:watchizu</spec> <description> <p>You can get <link topic="http://watchizux.gsi.go.jp/index.html">Watchizu</link> URL of current machine location by this plugin.</p> </description> </item> </plugin>; (function(){ commands.addUserCommand( ['watchize'], 'Get Watchize URL of current location', function(){ let form=function(v){ let ret=String(v); if(ret.length<2) ret='0'+ret; return ret; }; let conv=function(bl){ let h=Math.floor(bl); let m=Math.floor((bl-h)*60); let s=Math.floor((bl-h-(m/60))*3600); return ''+h+form(m)+form(s); }; let strURL='http://watchizu.gsi.go.jp/watchizu.aspx'; let Cc=Components.classes; let Ci=Components.interfaces; let geolocation=Cc["@mozilla.org/geolocation;1"] .getService(Ci.nsIDOMGeoGeolocation); geolocation.getCurrentPosition(function(position){ let strL='?b='+conv(position.coords.latitude) +'&l='+conv(position.coords.longitude); liberator.echo(strURL+strL); util.copyToClipboard(strURL+strL,true); }); } ); })();