-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (59 loc) · 2.25 KB
/
index.html
File metadata and controls
80 lines (59 loc) · 2.25 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
78
79
80
<!doctype html>
<html>
<head>
<title>OverLay Network | Simulation</title>
<script type="text/javascript" src= 'js/thirdparty/jquery-3.1.1.js'></script>
<script type="text/javascript" src= 'js/own/Util.js'></script>
<script type="text/javascript" src = 'js/thirdparty/vis/dist/vis.min.js' ></script>
<script type="text/javascript" src = 'js/thirdparty/vis/dist/animateTraffic.js' ></script>
<link rel="stylesheet" type="text/css" href="js/thirdparty/vis/dist/vis.min.css">
<link rel="stylesheet" type="text/css" href="css/own/Main.css">
<script type="text/javascript" src= 'js/own/GetOverlay.js'></script>
<script type="text/javascript" src='js/own/CreateNetwork.js'> </script>
<script type="text/javascript" src='js/own/CreateOverlayNetwork.js'> </script>
<script type="text/javascript" src='js/own/docready.js'></script>
<script type="text/javascript" src = 'js/thirdparty/dijkstra.js' ></script>
</head>
<body>
<div id='title_simulation'>
<h1>Overlay Network Simulation</h1>
<p>Md Lutfar Rahman</p>
<p>University of Memphis</p>
</div>
<div id='real-network-control'>
<h3>Real Network</h3>
<p>
Generate a random network with nodes and edges.
</p>
<form onsubmit="draw(); return false;">
<label for="nodeCount">Number of nodes:</label>
<input id="nodeCount" type="text" value="25" style="width: 50px;">
<input type="button" value="Go" onclick="draw()">
</form>
</div>
<div id='overlay-network-control'>
<h3>Overlay Network</h3>
<p>
Generate a overlay network from the real network.
</p>
<form onsubmit="overlaydraw(); return false;">
<label for="superpeerCount">Number of super peers:</label>
<input id="superpeerCount" type="text" value="5" style="width: 50px;">
<input type="button" value="GO" onclick="overlaydraw()">
</form>
<p>
Show Overlay routing.
</p>
<form onsubmit="overlayroute(); return false;">
<label for="source">Source</label>
<input id="source" type="text" value="" style="width: 50px;">
<label for="destination">Destination</label>
<input id="destination" type="text" value="" style="width: 50px;">
<input type="button" value="GO" onclick="overlayroute()">
</form>
</div>
<span id="message"></span>
<div id="mynetwork"></div>
<div id="overlaynetwork"></div>
</body>
</html>