diff options
author | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-11-20 16:24:39 +0100 |
---|---|---|
committer | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-11-20 16:24:39 +0100 |
commit | cd76af42463bd80539db8c9671a427a9f0fe5d69 (patch) | |
tree | 96ca9acdc178968e50ea39ca52c2346f3d91b436 /js/reviewdesu.js | |
parent | fbe5805e1b1e7e92015a9f6f039d7b9e0689c41f (diff) | |
download | Bits-cd76af42463bd80539db8c9671a427a9f0fe5d69.tar.gz Bits-cd76af42463bd80539db8c9671a427a9f0fe5d69.zip |
color change, rating change
Diffstat (limited to 'js/reviewdesu.js')
-rw-r--r-- | js/reviewdesu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reviewdesu.js b/js/reviewdesu.js index 2868dbb..45726dd 100644 --- a/js/reviewdesu.js +++ b/js/reviewdesu.js @@ -48,7 +48,7 @@ function prepare_questions() { function next_question() { if (questions.length == 0) { - score = Math.ceil(score * 50 / total); + score = Math.ceil(score * 100 / total); $("core").innerHTML = '<p>Finished. Score : ' + score + '/100. Saving data...</p>'; new Ajax.Request('index.php?p=brresults-study-' + batchid, { method: 'post', @@ -86,6 +86,6 @@ function show_answer() { function answer_question(a) { results.push([question.key, a]); - score += (a+1); + score += a; next_question(); } |