forked from CPqD/RouteFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (64 loc) · 1.97 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
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
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" href="css/style.css" rel="stylesheet" />
<link type="text/css" href="css/rftheme/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery-ui-1.8.18.custom.min.js"></script>
<script src="js/rf/utils.js"></script>
<script>
var tab_map = {
0: "network",
1: "messages",
2: "rftable",
};
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("Error loading tab.");
}
}
});
var selected = null;
$("#tabs").bind("tabsload", function(event, ui) {
// Stop previously selected tab
if (selected != null) {
var func = window[tab_map[selected] + "_stop"];
func();
}
// Init selected tab
var new_selected = $("#tabs").tabs("option", "selected");
var func = window[tab_map[new_selected] + "_init"];
selected = new_selected;
func();
});
$("#about").dialog({ autoOpen: false, width: 480, height: 480 });
});
</script>
</head>
<body>
<div id="topnav">
<div id="cpqd-logo">
<img src="images/logo-cpqd.png" border="0" alt="CPqD logo" title="CPqD" />
</div>
<div id="routeflow-logo">
<img src="images/RouteFlow.png" border="0" alt="RouteFlow logo" title="RouteFlow" />
</div>
<div id="links">
<a href="#" onclick="$('#about').dialog('open')">About</a>
</div>
</div>
<div id="tabs">
<ul>
<li><a href="network.html">Network</a></li>
<li><a href="messages.html">Messages</a></li>
<li><a href="rftable.html">Table</a></li>
</ul>
</div>
<div id="about" title="About RouteFlow">
<iframe frameborder="0" marginheight="0" marginwidth="0" style="width: 100%; height: 420px" id="rfpage" src="http://cpqd.github.com/RouteFlow/"></iframe>
</div>
</body>
</html>