-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (97 loc) · 4.86 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
<!doctype html>
<html>
<head>
<title>PMU Placement GUI</title>
<script type="text/javascript" src="node_modules/vis/dist/vis.js"></script>
<link href="node_modules/vis/dist/vis-network.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=AM_CHTML'></script>
</head>
<body>
<div id="wrapper">
<div id="sidebar-wrapper">
<div id="controls">
<h4>PMU Placement GUI</h4>
<div class="btn-toolbar" role="toolbar">
<div class="btn-group mr-2" role="group">
<button id="view" type="button" class="btn btn-success btn-sm">View</button>
<button id="edit" type="button" class="btn btn-secondary btn-sm">Edit</button>
</div>
<div class="btn-group mr-2" role="group">
<button id="import" type="button" class="btn btn-secondary btn-sm" style="display: none;"><i class="fa fa-upload"></i></button>
</div>
<div class="btn-group" role="group">
<a href="#" id="addNode" class="btn btn-primary btn-sm" role="button" aria-disabled="true" style="display: none;">Add Node</a>
</div>
<div class="btn-group optimize">
<button type="button" id="optimize" class="btn btn-sm btn-info">Optimize</button>
<button type="button" class="btn btn-info btn-sm dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#" id="constraints">Constraints</a>
</div>
</div>
</div><br>
<p><select style="width: 100%" id="pickNetwork" class="form-control">
<option value="14">IEEE 14 Bus</option>
<option value="30" selected="selected">IEEE 30 Bus</option>
<option value="57">IEEE 57 Bus</option>
<option value="118">IEEE 118 Bus</option>
</select></p>
<p id="status"></p>
<h6 class="noselect">Nodes: </h6>
</div>
<div id="nodes">
</div>
</div>
<div id="page-content-wrapper">
<div id="network"></div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="equationsWindow" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Constraints</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="constraintsBody">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="importWindow" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Import</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<textarea class="form-control" id="importData" style="height: 300px;"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="importBtn">Import</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="js/glpk.min.js"></script>
<script src="js/script.js" type="text/javascript"></script>
</body>
</html>