1
0

index.html 1.6 KB

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