2
0

index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: {"*": {
  11. "amber/Platform": "amber_core/Platform-Browser",
  12. "amber/compatibility": "amber/browser-compatibility"
  13. }}
  14. };
  15. </script>
  16. <script type='text/javascript' src='../node_modules/requirejs/require.js'></script>
  17. <script type='text/javascript' src='../config.js'></script>
  18. </head>
  19. <body>
  20. <p id="loading">Loading Amber for development ...</p>
  21. <p id="startlegacy">To start legacy in-page IDE, <a href="#" onclick="require('amber/helpers').globals.Browser._open(); return false;">click here</a>.</p>
  22. <p id="starthelios">To popup Helios IDE, <a href="#" onclick="require('amber/helpers').popupHelios(); return false;">click here</a>.</p>
  23. <script type='text/javascript'>
  24. var startLegacy = document.getElementById("startlegacy");
  25. startLegacy.parentNode.removeChild(startLegacy);
  26. var startHelios = document.getElementById("starthelios");
  27. startHelios.parentNode.removeChild(startHelios);
  28. require(
  29. ["amber/devel", "amber/legacy/IDE", "amber/web/Web", "amber/legacy/Benchfib", "helios/all", "amber_cli/AmberCli"],
  30. function (amber) {
  31. amber.initialize({'transport.defaultAmdNamespace': "amber_core"})
  32. .then(function () {
  33. var loading = document.getElementById("loading");
  34. loading.parentNode.appendChild(startLegacy);
  35. loading.parentNode.appendChild(startHelios);
  36. loading.parentNode.removeChild(loading);
  37. });
  38. }
  39. );
  40. </script>
  41. </body>
  42. </html>