-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
162 lines (159 loc) · 7.53 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.1.1/cerulean/bootstrap.min.css" rel="stylesheet" integrity="sha384-0Mou2qXGeXK7k/Ue/a1hspEVcEP2zCpoQZw8/MPeUgISww+VmDJcy2ri9tX0a6iy" crossorigin="anonymous">
<title>Signal Flow Graph</title>
</head>
<body onload="mainDiagram = init()">
<div class="jumbotron">
<center>
<h1 class="display-3" all>Signal Flow Graph Solver</h1>
</center>
</div>
<div class="bjub col-8"></div>
<div class="row">
<div class="col-2"></div>
<div class="col-8 border border-primary" id="DiagramDiv" style="height: 400px; background-color:#ECF0F1;"></div>
<div class="col-2"></div>
</div>
<br>
<div class="row">
<div class="col-2"></div>
<div class="col-4">Input Node : <p id="InputNodeText">Please Choose an input node</p></div>
<div class="col-4">Output Node: <p id="OutputNodeText">Please Choose an output node</p></div>
<div class="col-2"></div>
</div>
<div class="row">
<div class="col-5"></div>
<div class="col-2">
<button type="button" class="btn btn-primary" onclick="compute()">Compute Gain</button>
</div>
<div class="col-5"></div>
</div>
<!-- -->
<!-- Result modal -->
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="resultModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="resultModalContent">
<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-paths-tab" data-toggle="pill" href="#pills-paths" role="tab" aria-controls="pills-paths" aria-selected="true">Forward Paths</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-loops-tab" data-toggle="pill" href="#pills-loops" role="tab" aria-controls="pills-loops" aria-selected="false">Loops</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-mergedloops-tab" data-toggle="pill" href="#pills-mergedloops" role="tab" aria-controls="pills-mergedloops" aria-selected="false">Merged Loops</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-paths" role="tabpanel" aria-labelledby="pills-paths-tab">
<div id="carouselpathsIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators" id="pathsTabIndicators">
</ol>
<div class="carousel-inner" id="pathsCarouselInner">
</div>
<a class="carousel-control-prev" href="#carouselpathsIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselpathsIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="tab-pane fade" id="pills-loops" role="tabpanel" aria-labelledby="pills-loops-tab">
<div id="carouselloopsIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators" id="loopsTabIndicators">
</ol>
<div class="carousel-inner" id="loopsCarouselInner">
</div>
<a class="carousel-control-prev" href="#carouselloopsIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselloopsIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="tab-pane fade" id="pills-mergedloops" role="tabpanel" aria-labelledby="pills-mergedloops-tab">
<div id="carouselmergedloopsIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators" id="mergedloopsTabIndicators">
</ol>
<div class="carousel-inner" id="mergedloopsCarouselInner">
</div>
<a class="carousel-control-prev" href="#carouselmergedloopsIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselmergedloopsIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Error Modal -->
<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Error</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="errorModalMessage">
Error Message
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="carouselPathsIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators" id="resultModalCarouselIndicators">
</ol>
<div class="carousel-inner" id="resultModalCarouselInner">
</div>
<a class="carousel-control-prev" href="#carouselPathsIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselPathsIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- Imports -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.4/holder.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="js/go-debug.js"></script>
<script src="js/script.js"></script>
<script src="js/SFGSolver.js"></script>
</body>
</html>