index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.paths['helios/app'] = require.paths['helios/index'].replace("index", "app");
  23. require.callback = function () {
  24. require(["amber/es6-promise"], function (promiseLib) {
  25. promiseLib.polyfill();
  26. require(["helios/app", "amber/core/Platform-Browser"], function (amber) {
  27. amber.initialize({'transport.defaultAmdNamespace': "helios"}).then(function () {
  28. amber.globals.HLManager._setup();
  29. });
  30. });
  31. });
  32. };
  33. script = document.createElement("script");
  34. script.src = base + "/" + require.paths.requireJS + ".js";
  35. document.getElementsByTagName("head")[0].appendChild(script);
  36. }
  37. }, 200);
  38. </script>
  39. </div>
  40. </body>
  41. </html>