word cloud: return percents

This commit is contained in:
Anto Stupak
2013-04-24 15:05:56 +03:00
committed by Vasyl Nakvasiuk
parent f1d1a3f606
commit c70fa41d69
2 changed files with 5 additions and 1 deletions

View File

@@ -15,3 +15,7 @@
margin-left: auto;
margin-right: auto;
}
.your_words{
font-size: 0.85em;
display: block;
}

View File

@@ -227,7 +227,7 @@ define('WordCloudMain', ['logme'], function (logme) {
}
$.each(response.student_words, function (word, stat) {
studentWordsKeys.push(word);
studentWordsKeys.push('<strong>' + word + '</strong> (' + (100 * (stat / response.total_count)).toFixed(2) + '%)');
});
studentWordsStr = '' + studentWordsKeys.join(', ');