index.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. amber.initialize({'transport.defaultAmdNamespace': "helios"}).then(function () {
  26. amber.globals.HLManager._setup();
  27. });
  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>