1
0

index.html 1.5 KB

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