2
0

index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Amber Smalltalk</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="Nicolas Petton"/>
  7. <script>
  8. var require = {
  9. baseUrl: "..",
  10. map: {"*": {"amber/Platform": "amber_core/Platform-Browser"}}
  11. };
  12. </script>
  13. <script type='text/javascript' src='../node_modules/requirejs/require.js'></script>
  14. <script type='text/javascript' src='../config.js'></script>
  15. </head>
  16. <body>
  17. <p id="loading">Loading Amber for development ...</p>
  18. <p id="startlegacy">To start legacy in-page IDE, <a href="#" onclick="require('amber/helpers').globals.Browser._open(); return false;">click here</a>.</p>
  19. <p id="starthelios">To popup Helios IDE, <a href="#" onclick="require('amber/helpers').popupHelios(); return false;">click here</a>.</p>
  20. <script type='text/javascript'>
  21. var startLegacy = document.getElementById("startlegacy");
  22. startLegacy.parentNode.removeChild(startLegacy);
  23. var startHelios = document.getElementById("starthelios");
  24. startHelios.parentNode.removeChild(startHelios);
  25. require(
  26. ["amber/devel", "amber/legacy/IDE", "amber/web/Web", "amber/legacy/Benchfib", "helios/all", "amber_cli/AmberCli"],
  27. function (amber) {
  28. amber.initialize({'transport.defaultAmdNamespace': "amber_core"})
  29. .then(function () {
  30. var loading = document.getElementById("loading");
  31. loading.parentNode.appendChild(startLegacy);
  32. loading.parentNode.appendChild(startHelios);
  33. loading.parentNode.removeChild(loading);
  34. });
  35. }
  36. );
  37. </script>
  38. </body>
  39. </html>