index.html 975 B

1234567891011121314151617181920212223242526
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>My First Amber Project</title>
  5. <script src="../bower_components/amber/support/amber.js"></script>
  6. <script src="../bower_components/amber/support/requirejs/require.min.js"></script>
  7. <script type="text/javascript">
  8. require.config({ paths: {
  9. 'com_example_hello': 'js', //mapping compiled .js files
  10. 'com_example_hello/_source': 'st' //mapping smalltalk source files
  11. }});
  12. require(['amber/devel','com_example_hello/HelloApp'], function (smalltalk) {
  13. smalltalk.defaultAmdNamespace = "com_example_hello"; //used for all new packages in IDE
  14. smalltalk.initialize();
  15. smalltalk.Hello._new()._begin();
  16. });
  17. </script>
  18. </head>
  19. <body>
  20. <article>
  21. <h1>My First Amber Project</h1>
  22. <button onclick="require('amber/helpers').globals.Browser._open()">class browser</button>
  23. <button id="sayHello">say hello</button>
  24. </article>
  25. </body>
  26. </html>