index.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.paths['helios/app'] = require.paths['helios/index'].replace("index", "app");
  22. require.map["*"]["amber/Platform"] = "helios/app"; // eg. nothing, TODO remove
  23. require.map["*"]["amber/compatibility"] = "amber/browser-compatibility";
  24. require.callback = function () {
  25. require(["helios/app", "amber_core/Platform-Browser"], function (amber) {
  26. amber.initialize({'transport.defaultAmdNamespace': "amber_core"}).then(function () {
  27. amber.globals.HLManager._setup();
  28. });
  29. });
  30. };
  31. script = document.createElement("script");
  32. script.src = base + "/" + require.paths.requireJS + ".js";
  33. document.getElementsByTagName("head")[0].appendChild(script);
  34. }
  35. }, 200);
  36. </script>
  37. </div>
  38. </body>
  39. </html>