Hack together fraction-completed bar

This commit is contained in:
Shaunak Kishore
2015-09-10 23:47:59 -04:00
parent 8733b405fe
commit 04ce575c0c
5 changed files with 39 additions and 3 deletions

8
client/controls.js vendored
View File

@ -48,6 +48,14 @@ function save_glyphs(glyphs, index) {
});
}
Template.navbar.helpers({
percent: function() {
var value = Session.get('glyph.fraction_verified');
return Math.round(100*(value === undefined ? 0 : value));
},
});
Template.progress.helpers({
percent: function() {
var value = Session.get('progress.value');