index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.search.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.callback = function () {
  23. require(["helios/app"], function (amber) {
  24. amber.initialize({'transport.defaultAmdNamespace': "amber_core"});
  25. amber.globals.HLManager._setup();
  26. });
  27. };
  28. script = document.createElement("script");
  29. script.src = base + "/" + require.paths.requireJS + ".js";
  30. document.getElementsByTagName("head")[0].appendChild(script);
  31. }
  32. }, 200);
  33. </script>
  34. </div>
  35. </body>
  36. </html>