demo.html 658 B

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