-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
77 lines (77 loc) · 3.09 KB
/
Copy pathtest.html
File metadata and controls
77 lines (77 loc) · 3.09 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<title>SMAP</title>
<script type="text/javascript" src="src/lib/esl/esl.js"></script>
<script type="text/javascript" src="src/lib/tangram.js"></script>
<link rel="stylesheet" href="src/lib/esui/css/main.css" />
<link rel="stylesheet" href="src/monitor/css/monitor.css" />
<script type="text/javascript" src="src/lib/jquery-2.0.3.js"></script>
<script type="text/javascript" src="src/lib/jquery.mousewheel-min.js"></script>
<script type="text/javascript" src="src/lib/jquery.terminal-min.js"></script>
<link rel="stylesheet" href="src/lib/jquery.terminal.css"/>
<!-- <script type="text/javascript" src="src/lib/less-1.4.1.min.js"></script> -->
<!-- <link rel="stylesheet" href="src/monitor/lib/esui/css/main.css" /> -->
<!-- <script type="text/javascript" src="src/config.js"></script> -->
<!-- <script type="text/javascript" src="src/main.js"></script> -->
<script>
require.config({
baseUrl: 'src',
paths: {
css: 'lib/esl/css',
js: 'lib/esl/js',
tpl: 'lib/er/tpl',
},
packages: [
{
name: 'er',
location: 'lib/er',
main: 'main',
},
{
name: 'esui',
location: 'lib/esui',
},
],
});
jQuery(function($, undefined) {
$('#term_demo').terminal(function(command, term) {
if (command !== '') {
try {
var result = window.eval(command);
if (result !== undefined) {
term.echo(new String(result));
}
} catch(e) {
term.error(new String(e));
}
} else {
term.echo('');
}
}, {
greetings: 'Javascript Interpreter',
name: 'js_demo',
height: 200,
prompt: 'js>'});
});
var gtest = {};
require(['main']);
</script>
</head>
<body>
<div id="container">
<div id="container-head">
<a href="#/overview/index/">monitor</a>
<div id="term_demo"></div>
</div>
<div id="container-main">
</div>
</div>
</body>
</html>