diff options
author | mattn | 2008-04-09 11:31:17 +0000 |
---|---|---|
committer | mattn | 2008-04-09 11:31:17 +0000 |
commit | 3f749ae46f114301dca7205920302c2c28c74fb1 (patch) | |
tree | 79e4ab6d4357453a2f008d392300e61da641e95c /twitter.js | |
parent | 97902d2f705724fedca485847bd709ab9b396e44 (diff) | |
download | vimperator-plugins-3f749ae46f114301dca7205920302c2c28c74fb1.tar.bz2 |
lang/javascript/vimperator-plugins/trunk/twitter.js:
* インデント修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9201 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r-- | twitter.js | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -15,7 +15,7 @@ }
function sprintf(format) {
var i = 1, re = /%s/, result = "" + format;
- while (re.test(result) && i < arguments.length) result = result.replace(re, arguments[i++]);
+ while (re.test(result) && i < arguments.length) result = result.replace(re, arguments[i++]);
return result;
}
function showFollowersStatus(username,password){
@@ -26,19 +26,19 @@ var followers_status = window.eval(xhr.responseText);
var html = <><![CDATA[
- <style tyep="text/css"><!--
- a { text-decoration: none; }
- img { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
- --></style>
- ]]></>.toString().replace(/\n\s*/g, '');
+ <style tyep="text/css"><!--
+ a { text-decoration: none; }
+ img { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
+ --></style>
+ ]]></>.toString().replace(/\n\s*/g, '');
for (var i = 0; i < followers_status.length; i++) {
var stat = followers_status[i];
- html += sprintf(
- <><![CDATA[
- <a href="%s">
- <img src="%s" title="%s" border="0" />
- <strong>%s</strong>
- </a>: <a href="%s">%s</a><br />
+ html += sprintf(
+ <><![CDATA[
+ <a href="%s">
+ <img src="%s" title="%s" border="0" />
+ <strong>%s</strong>
+ </a>: <a href="%s">%s</a><br />
]]></>.toString().replace(/\n\s*/g, ''),
"http://twitter.com/" + stat.user.screen_name,
stat.user.profile_image_url,
@@ -48,7 +48,7 @@ stat.text
);
}
- liberator.log(html);
+ liberator.log(html);
liberator.echo(html, true);
}
liberator.commands.addUserCommand(['twitter'], 'Change twitter status',
|