This repository was archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (38 loc) · 1.33 KB
/
index.html
File metadata and controls
44 lines (38 loc) · 1.33 KB
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
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Joe Walker">
<title>GCLI: Graphical Command Line</title>
<style type="text/css" media="screen">
body {
width: 100%; height: 100%; overflow: hidden;
}
#gcli-root {
position: absolute; top: 0; bottom: 0; left: 0; right: 0;
}
</style>
</head>
<body class="light">
<div id="gcli-root"></div>
<script type="text/javascript" src="scripts/require.js"></script>
<script type="text/javascript">
requirejs.config({
baseUrl: 'lib',
paths: { i18n: '../scripts/i18n', raw: '../scripts/text' }
});
var modules = [ 'gcli/index', 'gcli/items/demo', 'gcli/test/index' ];
require(modules, function(gcli, demo, test) {
// Add the commands/types/converters as required
var system = gcli.createSystem();
system.addItems(gcli.items); // Common infrastructure: types, etc
system.addItems(gcli.commandItems); // Common set of useful commands
system.addItems(demo.items); // Extra demo commands
gcli.createTerminal(system).then(function(terminal) {
terminal.language.showIntro(); // Intro text
test.run(terminal, false); // Run the unit test at each startup
}).catch(console.error.bind(console));
});
</script>
</body>
</html>