1
0

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 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. window.onbeforeunload = function() {
  25. return 'Do you want to close Amber? All uncommitted changes will be lost.';
  26. };
  27. amber.initialize({'transport.defaultAmdNamespace': "amber_core"});
  28. amber.globals.HLManager._setup();
  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>