1
0

index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.callback = function () {
  22. require(["helios/set"], function (smalltalk) {
  23. window.onbeforeunload = function() {
  24. return 'Do you want to close Amber? All uncommitted changes will be lost.';
  25. };
  26. smalltalk.initialize({'transport.defaultAmdNamespace': "amber_core"});
  27. smalltalk.globals.HLManager._setup();
  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>