-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
40 lines (39 loc) · 1.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<title>Helios IDE</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Nicolas Petton" />
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico"/>
</head>
<body id="helios">
<div id="helper">Loading Helios...</div>
<div id="includes">
<script type='text/javascript'>
var base = decodeURIComponent(window.location.hash.slice(1)).replace(/\/$/, "");
var script = document.createElement("script");
script.src = base + "/config.js";
document.getElementsByTagName("head")[0].appendChild(script);
var __interval = setInterval(function () {
if (typeof require !== "undefined") {
clearInterval(__interval);
require.baseUrl = base;
require.paths['helios/app'] = require.paths['helios/index'].replace("index", "app");
require.map["*"]["amber/Platform"] = "amber_core/Platform-Browser";
require.map["*"]["amber/compatibility"] = "amber/browser-compatibility";
require.callback = function () {
require(["helios/app"], function (amber) {
amber.initialize({'transport.defaultAmdNamespace': "amber_core"}).then(function () {
amber.globals.HLManager._setup();
});
});
};
script = document.createElement("script");
script.src = base + "/" + require.paths.requireJS + ".js";
document.getElementsByTagName("head")[0].appendChild(script);
}
}, 200);
</script>
</div>
</body>
</html>