demo.html 592 B

123456789101112131415161718192021222324
  1. <html>
  2. <head>
  3. <title data-trap="App title"></title>
  4. <script src="/vendor/amber/js/amber.js"></script>
  5. </head>
  6. <body>
  7. <script type="text/javascript">
  8. var AppVM;
  9. loadAmber({
  10. packages:['Trapped-Backend', 'Trapped-Frontend', 'Trapped-Demo'],
  11. packageHome:'./',
  12. ready:function () {
  13. $(function() {
  14. smalltalk.Browser._openOn_(smalltalk.App);
  15. AppVM = smalltalk.App._start();
  16. smalltalk.Trapped._start();
  17. });
  18. }
  19. });
  20. </script>
  21. <div data-trap="AppView: App">
  22. </div>
  23. </body>
  24. </html>