diff options
Diffstat (limited to 'ldr_unread_counter.js')
-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: onclickLDR荀篆罩 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: c峨 ctx.save(); ctx.fillStyle = "rgba(48,48,48,0.75)"; ctx.fillRect(width-len-1,4,len+1,12); ctx.restore(); - // 未読件数の描画 - // XXX: もっと良い色募集 + // 茯篁倶違 + // XXX: c峨 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; } |