diff options
| author | teramako | 2008-07-30 09:41:54 +0000 |
|---|---|---|
| committer | teramako | 2008-07-30 09:41:54 +0000 |
| commit | eb94a9a991615871df424208f43e4a74d9a5c191 (patch) | |
| tree | 253c50a96eeb06eca5448498938f922f8dcfcbd1 | |
| parent | a611448eb65bc4743022fe665a922260dff909ea (diff) | |
| download | vimperator-plugins-eb94a9a991615871df424208f43e4a74d9a5c191.tar.bz2 | |
エンコード失敗��orz
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@16876 d0d07461-0603-4401-acd4-de1884942a52
| -rw-r--r-- | ldr_unread_counter.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ldr_unread_counter.js b/ldr_unread_counter.js index 0288afe..e1564bb 100644 --- a/ldr_unread_counter.js +++ b/ldr_unread_counter.js @@ -2,14 +2,14 @@ * ==VimperatorPlugin== * @name LDR unread counter * @description Display unread count of LDR to statusbar - * @description-ja ¥¹¥Æ¡¼¥¿¥¹¥Ð¡¼¤ËLDR¤Î̤ÆÉ·ï¿ô¤òɽ¼¨ + * @description-ja ステータスãƒ�ーã�«LDRã�®æœªèªä»¶æ•°ã‚’表示 * @version 0.1a * @author teramako teramako@gmail.com * ==/VimperatorPlugin== * - * ¤Þ¤ººÇ½é¤Ë + * ã�¾ã�šæœ€åˆ�ã�« * let livedoor_id = "<livedoor ID>" - * ¤È¥æ¡¼¥¶ID¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ + * ã�¨ãƒ¦ãƒ¼ã‚¶IDã‚’è¨å®šã�—ã�¦ã��ã� ã�•ã�„。 */ liberator.plugins.ldrUnreadCounter = (function(){ @@ -45,7 +45,7 @@ function createStatusButton(){ for (var name in attrs) elm.setAttribute(name, attrs[name]); return elm; } - // FIXME: onclick»þ¤ËLDR¤ò³«¤¯¤è¤¦¤ËÍ×½¤Àµ + // FIXME: onclick時ã�«LDRã‚’é–‹ã��よã�†ã�«è¦�ä¿®æ£ statusPanel = createElement("statusbarpanel", { id: "ldr_unread_count_panel", tooltiptext: "Count: " }); @@ -55,7 +55,7 @@ function createStatusButton(){ },"http://www.w3.org/1999/xhtml"); statusPanel.appendChild(canvas); - // Icon¤À¤±ºÇ½é¤ËÉÁ²è¤¬¤·¤Æ¤ª¤¯ + // Iconã� ã�‘最åˆ�ã�«æ��ç”»ã�Œã�—ã�¦ã�Šã�� var ctx = canvas.getContext("2d"); icon_image.onload=function(){ ctx.drawImage(icon_image,0,0); }; //ctx.drawImage(icon_image,0,0); @@ -77,22 +77,22 @@ function updateCanvasCount(count){ ctx.clearRect(0,0,24,16); ctx.save(); - // LDR Icon ¤ÎÉÁ²è + // LDR Icon ã�®æ��ç”» ctx.drawImage(icon_image,0,0); var width = ctx.canvas.width; var height = ctx.canvas.height; var len = ctx.mozMeasureText(count); - // ̤ÆÉ·ï¿ô¤ÎÇØ·Ê¤ò°Å¤¯¤¹¤ë - // XXX: ¤â¤Ã¤ÈÎɤ¤¿§Ê罸 + // 未èªä»¶æ•°ã�®èƒŒæ™¯ã‚’æš—ã��ã�™ã‚‹ + // XXX: ã‚‚ã�£ã�¨è‰¯ã�„色募集 ctx.save(); ctx.fillStyle = "rgba(48,48,48,0.75)"; ctx.fillRect(width-len-1,4,len+1,12); ctx.restore(); - // ̤ÆÉ·ï¿ô¤ÎÉÁ²è - // XXX: ¤â¤Ã¤ÈÎɤ¤¿§Ê罸 + // 未èªä»¶æ•°ã�®æ��ç”» + // XXX: ã‚‚ã�£ã�¨è‰¯ã�„色募集 ctx.fillStyle = "Cyan"; ctx.mozTextStyle = "12px sans-serif"; ctx.translate(width - len-1 ,height-1); @@ -107,7 +107,7 @@ function canvasDrawStop(){ ctx.clearRect(0,0,24,16); ctx.drawImage(icon_image,0,0); ctx.save(); - //¶Ø»ß¥Þ¡¼¥¯¤ÎÉÁ²è + //ç¦�æ¢ãƒžãƒ¼ã‚¯ã�®æ��ç”» ctx.strokeStyle = "Red"; ctx.lineWidth = "2"; ctx.beginPath(); @@ -175,7 +175,7 @@ var manager = { start: function(){ if (!this.user_id) { liberator.echoerr("LDR Unread Counter: Please :let "+ userIdName + " = <livedoor ID>"); - // FIXME: ¤Ê¤ó¤«¥¨¥é¡¼¤¬½Ð¤ë¡£¸¶°ø¤¬Îɤ¯Ê¬¤«¤é¤ó + // FIXME: ã�ªã‚“ã�‹ã‚¨ãƒ©ãƒ¼ã�Œå‡ºã‚‹ã€‚åŽŸå› ã�Œè‰¯ã��分ã�‹ã‚‰ã‚“ //this.stop(); return; } |
