summaryrefslogtreecommitdiff
path: root/js/liststudy.js
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-11-20 16:24:39 +0100
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-11-20 16:24:39 +0100
commitcd76af42463bd80539db8c9671a427a9f0fe5d69 (patch)
tree96ca9acdc178968e50ea39ca52c2346f3d91b436 /js/liststudy.js
parentfbe5805e1b1e7e92015a9f6f039d7b9e0689c41f (diff)
downloadBits-cd76af42463bd80539db8c9671a427a9f0fe5d69.tar.gz
Bits-cd76af42463bd80539db8c9671a427a9f0fe5d69.zip
color change, rating change
Diffstat (limited to 'js/liststudy.js')
-rw-r--r--js/liststudy.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/liststudy.js b/js/liststudy.js
index b33ed6c..4d715b8 100644
--- a/js/liststudy.js
+++ b/js/liststudy.js
@@ -59,7 +59,10 @@ function show_contents_table() {
}
html += '<td>' + items[i].win + '</td>';
html += '<td' + (items[i].fail > 0 ? (items[i].fail > items[i].win ? ' style="background-color: #ff7777"' : ' style="background-color: #FFFF00"') : '') + '>' + items[i].fail + '</td>';
- html += '<td style="background-color: ' + (items[i].score == max_score ? '#00aa00' : (items[i].score > med_score ? '#55FF55' : '#FFFF00')) + '">' + items[i].score + '</td></tr>';
+ html += '<td style="background-color: ' +
+ (items[i].score == max_score ? '#00aa00' :
+ (items[i].score > med_score ? '#55FF55' :
+ (items[i].score < 0 ? '#FF7777' : '#FFFF00'))) + '">' + items[i].score + '</td></tr>';
}
html += '</table>';
html += '<p>Medium score : ' + med_score + '</p>';