index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Helios IDE</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="Nicolas Petton"/>
  7. <link type="image/x-icon" rel="shortcut icon" href="/favicon.ico"/>
  8. </head>
  9. <body id="helios">
  10. <div id="helper">Loading Helios...</div>
  11. <div id="includes">
  12. <script type='text/javascript'>
  13. var base = decodeURIComponent(window.location.hash.slice(1)).replace(/\/$/, "");
  14. var script = document.createElement("script");
  15. script.src = base + "/config.js";
  16. document.getElementsByTagName("head")[0].appendChild(script);
  17. var __interval = setInterval(function () {
  18. if (typeof require !== "undefined") {
  19. clearInterval(__interval);
  20. require.baseUrl = base;
  21. require.callback = function () {
  22. require(["helios/app", "amber/core/Platform-Browser"], function (amber) {
  23. var options;
  24. if (window.opener) {
  25. // Slave: use master's settings
  26. amber.globals.SmalltalkSettings = window.opener.require('amber/helpers').globals.SmalltalkSettings;
  27. } else {
  28. // Standalone: set default amd namespace
  29. options = {'transport.defaultAmdNamespace': "helios"};
  30. }
  31. amber.initialize(options).then(function () {
  32. amber.globals.HLManager._setup();
  33. });
  34. });
  35. };
  36. script = document.createElement("script");
  37. script.src = base + "/" + require.paths.requireJS + ".js";
  38. document.getElementsByTagName("head")[0].appendChild(script);
  39. }
  40. }, 200);
  41. </script>
  42. </div>
  43. </body>
  44. </html>