demo.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <html>
  2. <head>
  3. <title data-trap="App #title"></title>
  4. <script src="../vendor/amber/support/amber.js"></script>
  5. <script type='text/javascript' src='../vendor/amber/support/requirejs/require.min.js'></script>
  6. <link rel="stylesheet" href="demo.css" />
  7. </head>
  8. <body>
  9. <script type="text/javascript">
  10. var AppEntity;
  11. require.config({
  12. paths: {
  13. 'gh_herby_trapped': '../js',
  14. 'gh_herby_trapped/_source': '../st'
  15. }
  16. });
  17. require(
  18. ["amber/devel",
  19. "gh_herby_trapped/Trapped-Backend", "gh_herby_trapped/Trapped-Frontend", "gh_herby_trapped/Trapped-Demo" ],
  20. function (smalltalk) {
  21. smalltalk.defaultAmdNamespace = 'gh_herby_trapped';
  22. smalltalk.initialize();
  23. $(function() {
  24. smalltalk.Browser._openOn_(smalltalk.App);
  25. AppEntity = smalltalk.App._new();
  26. smalltalk.Trapped._start_([AppEntity]);
  27. });
  28. }
  29. );
  30. </script>
  31. <div data-trap="AppView: App">
  32. </div>
  33. </body>
  34. </html>