diff options
Diffstat (limited to 'html/app.js')
-rw-r--r-- | html/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/html/app.js b/html/app.js index b54cd9c..beee00a 100644 --- a/html/app.js +++ b/html/app.js @@ -38,12 +38,17 @@ enyo.kind({ Abcd.sound.play(soundThemes[this.soundindex]); }, - // Play learn game + // Play games learnGame: function(e, s) { Abcd.sound.pause(); Abcd.context.screen = new Abcd.Learn().renderInto(document.getElementById("body")); }, + playGame: function(e, s) { + Abcd.sound.pause(); + Abcd.context.screen = new Abcd.Play().renderInto(document.getElementById("body")); + }, + // Sound ended, play next instrument endOfSound: function(e, s) { if (s == soundThemes[this.soundindex]) |