-
Notifications
You must be signed in to change notification settings - Fork 0
/
panelMininet.js
49 lines (37 loc) · 1.01 KB
/
panelMininet.js
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
define(function(require, exports, module) {
main.consumes = [
"Panel", "ui"
];
main.provides = ["panelMininet"];
return main;
function main(options, imports, register) {
var Panel = imports.Panel;
var staticPrefix = options.staticPrefix;
var panel = new Panel("mininetView", main.consumes, {
caption: "Mininet",
index: 300,
width: 500,
minWidth: 500,
where: "right",
autohide: true
});
/***** Initialization *****/
/***** Methods *****/
/***** Lifecycle *****/
panel.on("draw", function(e) {
e.html.innerHTML = "<iframe src='" + location.origin + staticPrefix + "/maple/mininet-creator/index.html' style='width:100%;height:100%;border:0px' ></iframe>";
});
panel.on("load", function() {
// Nothing to do
});
panel.on("unload", function() {
// Nothing to do
});
/***** Register and define API *****/
panel.freezePublicAPI({
});
register(null, {
"panelMininet": panel
});
}
})