-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
206 lines (171 loc) · 10.9 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en">
<title>WSPD and Applications</title>
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<!-- JSXGraph minified source, all viewable geometric objects. -->
<script type="text/javascript" charset="UTF-8"
src="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js"></script>
<!-- Uncomment for local use (no internet) <script type="text/javascript" charset="utf-8" src="scripts/jsxgraphcore.js"></script> -->
<!-- MathJAX source, text and math font styling -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Uncomment for local use (no internet). <script type="text/javascript" charset="utf-8" src="scripts/mathjax/es5/tex-chtml.js"></script> -->
<!-- Bootstrap style library -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Project scripts, board interaction, board object style, animation, point generation,
WSPD data structures and algorithms, t-spanner, closest pairs, mst. -->
<script type="text/javascript" charset="utf-8" src="scripts/SplitTree.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/WSPD.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/tSpanner.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/closestPair.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/tApproxMST.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/kClosestPairs.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/AllNearestNeighbor.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/utilities.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/metrics.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/steps.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/points.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/geometricObjects.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/boardObjectsStyle.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/board.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/processing.js" defer></script>
<script type="text/javascript" charset="utf-8" src="scripts/main.js" defer></script>
<!-- Style for JSXBoard -->
<link rel="stylesheet" type="text/css" href="css/jsxgraph.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- Control container -->
<div class="container-fluid">
<div class="row">
<div class="col-md-3 col-sm-3">
<div class="controlContainer">
<div id="centerControlBar">
<div class="row">
<!-- \(\textsf{Visualizing WSPDs and}\) \(\textsf{their applications}\) -->
<!-- <p class="h2">\(\textsf{Visualizing WSPDs and}\) \(\textsf{their applications}\)</p> -->
</div>
<h3 id="toolName">\(\textsf{Visualizing WSPDs}\) \(\textsf{ and their applications}\)</h3>
<a href="html/about.html" target="_blank" id="closeShadowbox">
<button id="readme" class="buttonE buttonR">\(\textsf{README}\)</button>
</a>
<br>
<br>
<div id="pointControl">
<label for="editPoints"> \(\textsf{Edit points}\)</label>
<input id="editPoints" type="checkbox" value="true" checked>
<label for="pointIDs"> \(\textsf{Show point IDs}\)</label>
<input id="pointIDs" type="checkbox" value="true" checked>
<br>
<label for="numPoints">\(\textsf{Number of points:}\)</label>
<input id="numPoints" type="number" min="0" max="100" step="1" size="3" value="10">
<button id="generatePoints" class="buttonE button1">\(\textsf{Generate}\)</button>
<br>
<label for="preGeneratedPointSets">\(\textsf{Pre-generated pointsets}\)</label>
<select name="preGenPointSets" id="preGeneratedPointSets">
<option disabled selected value="">Select a pointset</option>
<option value="circle">Circle (25)</option>
<option value="archimedeanSpiral">Archimedean spiral (50)</option>
<option value="grid">Grid (25)</option>
</select>
<br>
<br>
<label for="points" class="labelP"> \(\textsf{Enter point(s)}\) </label>
<br>
<textarea id="points" cols="15" placeholder=""></textarea>
<br>
<button id="plotPoints" class="buttonE button1">\(\textsf{Plot points}\) </button>
</div>
<br>
<div class="row">
<div class="form-check">
<!-- <div id="animationControls"> -->
<label for="animationSelection"> \(\textsf{Animate all}\)</label>
<input id="animationSelection" type="checkbox" value="true" checked>
<label for="WSPDanimationSelection" id="WSPDanimationSelectionLabel"> \(\textsf{Animate WSPD steps}\)</label>
<input id="WSPDanimationSelection" type="checkbox" value="true" checked>
<label for="stepsSelection" id="stepsSelectionLabel"> \(\textsf{Highlight pseudocode steps}\)</label>
<input id="stepsSelection" type="checkbox" value="false">
<br>
<label for="animationSpeed" id="animationSpeedLabel">\(\textsf{Animation speed}\)</label>
<input type="range" min="0.5" max="10.5" value="5.5" step="0.5"
id="animationSpeed"></input>
<!-- </div> -->
</div>
</div>
<div>
</div>
<br>
<div id="controls">
<h2 class="title"> \(\textsf{Algorithms}\)</h2>
<div id="algorithmControls">
<button id="WSPD" class="buttonE button1">\(\textsf{ConstructWSPD}\)</button>
<input id="separationFactor" type="text" size="2" placeholder="s">
<br>
<button id="tSpanner" class="buttonE button1">\(\textsf{$t$-Spanner}\)</button>
<label for="t"></label>
<input id="t" type="text" size="2" placeholder="t">
<br>
<button id="closestPair" class="buttonE button1">\(\textsf{Closest pair}\)</button>
<br>
<button id="kClosestPairs" class="buttonE button1">\(\textsf{$k$-Closest pairs}\)</button>
<input id="kPairs" type="text" size="2" placeholder="k">
<input id="sKPairs" type="text" size="2" placeholder="s">
<br>
<button id="allNearestNeighbors" class="buttonE button1">\(\textsf{ANN}\)</button>
<label for="sANN"></label>
<input id="sANN" type="text" size="2" placeholder="s">
<br>
<button id="MST" class="buttonE button1">\(\textsf{$t$-Approx. MST}\)</button>
<label for="tMST"></label>
<input id="tMST" type="text" size="2" placeholder="t">
</div>
<br>
</div>
<br>
<button id="clear" class="buttonE button1">\(\textsf{Clear board}\)</button>
<div id="downloadControls">
<h4>\(\textsf{Download Board}\)</h4>
<label for="boardDownloadPNG"></label>
<button class="buttonE button1" id="boardDownloadPNG">PNG</button>
<label for="boardDownloadSVG"></label>
<button class="buttonE button1" id="boardDownloadSVG">SVG</button>
</div>
<br>
<button id="reset" class="buttonE button2">\(\textsf{Reset}\)</button>
</div>
</div>
</div>
<!-- Graph container -->
<div class="col-md-6 col-sm-6">
<div id="graphContainer">
<div class="ratio ratio-1x1">
<div id="jxgbox" class="jxgbox"></div>
</div>
</div>
</div>
<!-- Third container -->
<div class="col-md-3 col-sm-3 col-xm-3">
<div class="ratio ratio-1x1">
<div id="dataContainer">
<div class="dataBox" id="stepsBox">
<h3 class="dataBoxHeader" id="stepsBoxHeader">\(\textsf{Algorithm Steps}\)</h3>
</div>
<br>
<div class="dataBox" id="metricsBox">
<h3 class="dataBoxHeader" id="metricsBoxHeader"> \(\textsf{Data}\)</h3>
</div>
</div>
<div id="downloadDataBox">
</div>
</div>
</div>
<img id="screenShot" title="" alt="" src="">
</div>
</div>
</body>
</html>