Changeset 24762 for lang/javascript

Show
Ignore:
Timestamp:
11/24/08 23:25:38 (6 years ago)
Author:
amachang
Message:

oops

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/bookmarklets/hatena_bookmarklist_analyzer/hatena_bookmarklist_analyzer.js

    r24761 r24762  
    130130        textarea.value = '|\u9806\u4f4d|\u30d6\u30c3\u30af\u30de\u30fc\u30ab\u30fc|\u30d6\u30c3\u30af\u30de\u30fc\u30af\u6570|\u30bf\u30b0|\n' + list.filter(function(e){return e.count > minBookmarkCount}).sort(function(a,b) { return b.count - a.count }).map(function(e, i){ return '|' + (i + 1) + '|' + 'id:' + e.name + '|' + e.count + '|' + e.getTags(tagNum).map(function(tag){ return '[http://b.hatena.ne.jp/t/' + encodeURIComponent(tag.name) + ':title=' + tag.name + ']' + '(' + tag.count + ')' }).join(' ') + ' |' }).join('\n'); 
    131131        if (!finished) { 
    132             progressElm.textContent = progressElm.style.width = Math.floor((count - 25) / totalCount * 100) + '%'; 
     132            progressElm.textContent = progressElm.style.width = Math.floor(count / (totalCount + 25) * 100) + '%'; 
    133133            setTimeout(BookmarkedUserShow, showInterval); 
    134134        }