not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
669 B

var app;
var sound;
define(["sugar-web/activity/activity"], function (activity) {
// Manipulate the DOM only when it is ready.
requirejs(['domReady!'], function (doc) {
// Initialize the activity.
activity.setup();
// Create sound component
sound = new TamTam.Audio();
sound.renderInto(document.getElementById("audio"));
// Launch main screen
app = new TamTam.App({activity: activity});
app.renderInto(document.getElementById("keyboard"));
// Stop sound at end of game to sanitize media environment, specifically on Android
document.getElementById("stop-button").addEventListener('click', function (event) {
sound.pause();
});
});
});