-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
156 lines (145 loc) · 6.12 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Carousels</title>
<!-- Math.js and Plotly -->
<script type="text/javascript" src="ui/dependencies/plotly-latest.min.js"></script>
<!-- carousels library and plotting code -->
<script type="text/javascript" src="dist/carousels.js"></script>
<!-- Our UI js -->
<script type="text/javascript" src="ui/codesamples/samples.js"></script>
<script type="text/javascript" src="ui/plot.js"></script>
<script type="text/javascript" src="ui/inputControllers.js"></script>
<script type="text/javascript" src="ui/codeMirrorHandlers.js"></script>
<script type="text/javascript" src="ui/events.js"></script>
<!-- Our UI css -->
<link rel="stylesheet" href="ui/style/misc.css"/>
<link rel="stylesheet" href="ui/style/tabs.css"/>
<link rel="stylesheet" href="ui/style/controls.css"/>
<link rel="stylesheet" href="ui/style/output.css"/>
<!-- Code mirror -->
<script type="text/javascript" src="ui/dependencies/codemirror/codemirror.js"></script>
<script type="text/javascript" src="ui/dependencies/codemirror/rust.js"></script>
<link rel="stylesheet" href="ui/dependencies/codemirror/codemirror.css"/>
<link rel="stylesheet" href="ui/dependencies/codemirror/dracula.css"/>
</head>
<body>
<h1>Carousels</h1>
<!-- tabs -->
<div class="tabs">
<!-- input controls with Codemirror Tab -->
<input name="tabs" type="radio" id="tab-1" checked="checked" class="tabInput"/>
<label for="tab-1" class="tabLabel">Input</label>
<div id="inputTab" class="tab">
<h2>Input Code</h2>
<div class="horizontalControls">
<span class="controlsGroup">
<label for="codeSample">Code Sample</label>
<select id="codeSample"></select>
</span>
<span class="controlsGroup">
<label for="protocol">Choose Protocol</label>
<select id="protocol"></select>
</span>
<span class="controlsGroup">
<label for="metric">Choose Metric</label>
<select id="metric"></select>
</span>
<span class="controlsGroup">
<button id="computeButton" disabled="disabled">Compute</button>
</span>
</div>
<div class="horizontalControls singleControl">
<input type="checkbox" id="simplify"/>
<label for="simplify">Simplify</label>
</div>
<br/>
<div class="CodeMirrorContainer">
<textarea id="inputCode"></textarea>
</div>
</div>
<!-- Symbolic output and description Tab -->
<input name="tabs" type="radio" id="tab-2" class="tabInput"/>
<label for="tab-2" class="tabLabel">Output</label>
<div id="outputTab" class="tab">
<div id="outputSuccess">
<h2>Costs</h2>
<div id="outputFunctions">no output yet...</div>
<h2>Global Parameters</h2>
<div id="outputParameters">no output yet...</div>
</div>
<div id="outputFailure">
<h2>Errors</h2>
<pre id="outputErrors"></pre>
</div>
</div>
<!-- Plot Tab -->
<input name="tabs" type="radio" id="tab-3" class="tabInput"/>
<label for="tab-3" class="tabLabel">Plot</label>
<div id="plotTab" class="tab">
<h2>Plot</h2>
<div class="horizontalControls">
<span class="controlsGroup">
<label for="plotFunction">Choose Function</label>
<select id="plotFunction" disabled="disabled"> </select>
</span>
<span class="controlsGroup">
<label for="xaxis">Choose X-axis</label>
<select id="xaxis" disabled="disabled"></select>
</span>
<span class="controlsGroup">
<label for="yaxis">Choose Y-axis</label>
<select id="yaxis" disabled="disabled"></select>
</span>
<span class="controlsGroup">
<button id="plotButton" disabled="disabled">Plot</button>
</span>
</div>
<div class="horizontalControls">
<span class="controlsGroup">
</span>
<span class="controlsGroup">
<label for="plotStart">X-axis Min</label>
<input id="plotStart" value="0" />
</span>
<span class="controlsGroup">
<label for="plotEnd">X-axis Max</label>
<input id="plotEnd" value="10" />
</span>
<span class="controlsGroup">
</span>
</div>
<div class="horizontalControls">
<span class="controlsGroup">
</span>
<span class="controlsGroup">
<label for="manualScope" class="topLabel">Manual values</label>
<textarea id="manualScope" rows="5"></textarea>
</span>
<span class="controlsGroup">
</span>
</div>
<div id="outputPlot">
</div>
</div>
<!-- Debuggin Tabs -->
<input name="tabs" type="radio" id="tab-4" class="tabInput"/>
<label for="tab-4" class="tabLabel">Debugging</label>
<div id="debugginTab" class="tab">
<h2>Input Code with Debugging Annotations</h2>
<div id="debuggingDiv">no output yet...</div>
</div>
<input name="tabs" type="radio" id="tab-5" class="tabInput"/>
<label for="tab-5" class="tabLabel">IR</label>
<div id="IRTab" class="tab">
<h2>Intermediate Representation of Input Code</h2>
<pre id="IRDiv">no IR yet...</pre>
</div>
</div>
</body>
</html>