index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 global = typeof global === "undefined" ? window : global || window;
  14. var base = decodeURIComponent(window.location.hash.slice(1)).replace(/\/$/, "");
  15. var script = document.createElement("script");
  16. script.src = base + "/config.js";
  17. document.getElementsByTagName("head")[0].appendChild(script);
  18. var __interval = setInterval(function () {
  19. if (typeof require !== "undefined") {
  20. clearInterval(__interval);
  21. require.baseUrl = base;
  22. require.callback = function () {
  23. require(["helios/polyfills"], function () {
  24. require(["helios/app", "amber/core/Platform-Browser"], function (amber) {
  25. var options;
  26. if (window.opener) {
  27. // Slave: use master's settings
  28. amber.globals.SmalltalkSettings = window.opener.require('amber/helpers').globals.SmalltalkSettings;
  29. } else {
  30. // Standalone: set default amd namespace
  31. options = {'transport.defaultAmdNamespace': "helios"};
  32. }
  33. amber.initialize(options).then(function () {
  34. amber.globals.HLManager._setup();
  35. });
  36. });
  37. });
  38. };
  39. script = document.createElement("script");
  40. script.src = base + "/" + require.paths.requireJS + ".js";
  41. document.getElementsByTagName("head")[0].appendChild(script);
  42. }
  43. }, 200);
  44. </script>
  45. </div>
  46. </body>
  47. </html>