index.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Amber Smalltalk Snap.svg Demo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="author" content="hhzl" />
  7. <script type='text/javascript' src='the.js'></script>
  8. </head>
  9. <body>
  10. <p>Hi, hhzl! Welcome to Amber project: "Amber Smalltalk Snap.svg Demo".</p>
  11. <p>This is the place for your application's HTML. After getting familiar with Amber,
  12. just remove this welcome contents from index.html and replace it with your own.</p>
  13. <button id="amber-with">Hello from TagBrush >> with:</button>
  14. <button id="jquery-append">Hello from jQuery append</button>
  15. <button id="snapsvg-button">Hello from Snap.svg</button>
  16. <ol id="output-list"></ol>
  17. <script type='text/javascript'>
  18. require(['app'], function (amber) {
  19. amber.initialize({
  20. //used for all new packages in IDE
  21. 'transport.defaultAmdNamespace': "amber-snapsvg"
  22. });
  23. require(["amber-ide-starter-dialog"], function (dlg) { dlg.start(); });
  24. amber.globals.AmberSnapsvg._start();
  25. });
  26. </script>
  27. </body>
  28. </html>