Commit c70fa41d by Anto Stupak Committed by Vasyl Nakvasiuk

word cloud: return percents

parent f1d1a3f6
......@@ -15,3 +15,7 @@
margin-left: auto;
margin-right: auto;
}
.your_words{
font-size: 0.85em;
display: block;
}
\ No newline at end of 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(', ');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment