Show
Ignore:
Timestamp:
07/30/08 18:41:54 (4 months ago)
Author:
teramako
Message:

エンコード失敗したorz

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/ldr_unread_counter.js

    r16874 r16876  
    33 * @name            LDR unread counter 
    44 * @description     Display unread count of LDR to statusbar 
    5  * @description-ja  ���ơ������С���DR��������� 
     5 * @description-ja  ステータスバーにLDRの未読件数を表示 
    66 * @version         0.1a 
    77 * @author          teramako teramako@gmail.com 
    88 * ==/VimperatorPlugin== 
    99 * 
    10  * �ޤ��ǽ� 
     10 * まず最初に 
    1111 * let livedoor_id = "<livedoor ID>" 
    12  * �ȥ桼��ID��ꤷ�Ƥ�������� 
     12 * とユーザIDを設定してください。 
    1313 */ 
    1414 
     
    4646                return elm; 
    4747        } 
    48         // FIXME: onclick����DR�򳫤��褦��׽�� 
     48        // FIXME: onclick時にLDRを開くように要修正 
    4949        statusPanel = createElement("statusbarpanel", { 
    5050                id: "ldr_unread_count_panel", 
     
    5656        statusPanel.appendChild(canvas); 
    5757 
    58         // Icon����ǽ���褬���Ƥ��� 
     58        // Iconだけ最初に描画がしておく 
    5959        var ctx = canvas.getContext("2d"); 
    6060        icon_image.onload=function(){ ctx.drawImage(icon_image,0,0); }; 
     
    7878        ctx.save(); 
    7979 
    80         // LDR Icon ����ctx.drawImage(icon_image,0,0); 
     80        // LDR Icon の描画 
     81        ctx.drawImage(icon_image,0,0); 
    8182 
    8283        var width = ctx.canvas.width; 
     
    8485        var len = ctx.mozMeasureText(count); 
    8586 
    86         // ̤�����طʤ������// XXX: ����ɤ������ 
     87        // 未読件数の背景を暗くする 
     88        // XXX: もっと良い色募集 
    8789        ctx.save(); 
    8890        ctx.fillStyle = "rgba(48,48,48,0.75)"; 
     
    9092        ctx.restore(); 
    9193 
    92         // ̤�������// XXX: ����ɤ������ 
     94        // 未読件数の描画 
     95        // XXX: もっと良い色募集 
    9396        ctx.fillStyle = "Cyan"; 
    9497        ctx.mozTextStyle = "12px sans-serif"; 
     
    105108        ctx.drawImage(icon_image,0,0); 
    106109        ctx.save(); 
    107         //�ػߥޡ�������ctx.strokeStyle = "Red"; 
     110        //禁止マークの描画 
     111        ctx.strokeStyle = "Red"; 
    108112        ctx.lineWidth = "2"; 
    109113        ctx.beginPath(); 
     
    172176                if (!this.user_id) { 
    173177                        liberator.echoerr("LDR Unread Counter: Please :let "+ userIdName + " = <livedoor ID>"); 
    174                         // FIXME: �ʤ󤫥��顼���Ф롣������ʬ���� 
     178                        // FIXME: なんかエラーが出る。原因が良く分からん 
    175179                        //this.stop(); 
    176180                        return;