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

  1. var app;
  2. var sound;
  3. define(["sugar-web/activity/activity"], function (activity) {
  4. // Manipulate the DOM only when it is ready.
  5. requirejs(['domReady!'], function (doc) {
  6. // Initialize the activity.
  7. activity.setup();
  8. // Create sound component
  9. sound = new TamTam.Audio();
  10. sound.renderInto(document.getElementById("audio"));
  11. // Launch main screen
  12. app = new TamTam.App({activity: activity});
  13. app.renderInto(document.getElementById("keyboard"));
  14. // Stop sound at end of game to sanitize media environment, specifically on Android
  15. document.getElementById("stop-button").addEventListener('click', function (event) {
  16. sound.pause();
  17. });
  18. });
  19. });