mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-02 13:01:40 +08:00
Hack together fraction-completed bar
This commit is contained in:
8
client/controls.js
vendored
8
client/controls.js
vendored
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user