forked from joewalker/gcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
localtest.html
50 lines (44 loc) · 1.34 KB
/
localtest.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
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<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-display {
position: absolute; top: 0; bottom: 30px; left: 0; right: 0;
}
#gcli-input {
position: absolute; height: 27px; bottom: 0; left: 0; right: 0;
width: 100%;
}
</style>
</head>
<body>
<div id="gcli-display"></div>
<input id="gcli-input" type="text" autofocus/>
<script type="text/javascript" src="scripts/require.js"></script>
<script type="text/javascript">
requirejs.config({
paths: { "text": "scripts/text", "i18n": "scripts/i18n" },
packagePaths: {
"lib": [
{ name: "gcli", main: "index", lib: "." },
{ name: "test", main: "index", lib: "." },
{ name: "gclitest", main: "index", lib: "." },
{ name: "demo", main: "index", lib: "." },
{ name: "util", main: "index", lib: "." }
]
}
});
// dependencies should be reflected in lib/server/commands/standard.js
require([ 'gclitest/index', 'demo/index' ], function(gcli) {
gcli.createDisplay();
});
</script>
</body>
</html>