-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
136 lines (133 loc) · 4.96 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GridTLI GUI</title>
<!-- load script that controls grid functions -->
<script type="text/javascript" src="./javascript/gridfunctions.js"></script>
<!-- load custom stylesheet -->
<link rel="stylesheet" href="./styles/style.css"></link>
<!-- load paper.js -->
<script type="text/javascript" src="./javascript/paper-full.js"></script>
<!-- load script that defines the canvas -->
<script type="text/javascript" src="./javascript/canvas.js"></script>
<!-- load jquery -->
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script>
</head>
<body>
<nav>
<img src="./images/logo/phoenix_banner.png">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">STL</a></li>
</ul>
</nav>
<div class="tab">
<article id="drawingGrid">
<canvas id="myCanvas"></canvas>
<p class="rotate" id="axisLabel">Spatial Magnitude</p>
</article>
<div class="tools">
<label>
<input type="radio" name="tool" class="btn" value="select" id="select">
<img src="./images/icons/icon-mouse.png" id="select" onClick="selectLine.activate()" title="Select">
</label>
<label>
<input type="radio" name="tool" class="btn" value="pencil" id="pencil" checked>
<img src="./images/icons/icon-pencil.png" id="pencil" onClick="drawLine.activate()" title="Draw">
</label>
<label>
<input type="radio" name="tool" class="btn" value="segment" id="segment">
<img src="./images/icons/icon-segment.png" id="dot" onClick="drawPoints.activate()" title="Point">
</label>
<label>
<input type="radio" name="tool" class="btn" value="eraser" id="eraser">
<img src="./images/icons/icon-eraser.png" id="eraser" onClick="deleteLine.activate()" title="Erase">
</label>
<label>
<input type="radio" name="tool" class="btn" value="move" id="move">
<img src="./images/icons/icon-move.png" id="move" onClick="movePoints.activate()" title="Move">
</label>
<label>
<input type="button" name="save" class="btn" value="save" id="save">
<img src="./images/icons/icon-save.png" id="save" onClick='saveProject({ filename: "data.json" });' title="Save Project">
</label>
<label>
<input type="button" name="export" class="btn" value="export" id="export">
<img src="./images/icons/icon-export.png" id="export" onClick="exportData()" title="Export Data">
</label>
<label>
<input type="button" name="export" class="btn" value="export" id="export">
<img src="./images/icons/icon-export.png" id="export" onClick="getSTL()" title="Get STL">
</label>
</div>
<div id="threshold">
<h3>Graph Values</h3>
<article class="spatial">
<article class="graphLabels">
<p>Spatial:</p>
</article>
<article class="graphValues">
<input type="text" id="smin" value="X_min"
onblur="if (this.value == '') {this.value = 'X_min';}"
onfocus="if (this.value == 'X_min') {this.value = '';}" />
<br>
<input type="text" id="smax" value="X_max"
onblur="if (this.value == '') {this.value = 'X_max';}"
onfocus="if (this.value == 'X_max') {this.value = '';}" />
</article>
</article>
<article class="temporal">
<article class="graphLabels">
<p>Temporal:</p>
</article>
<article class="graphValues">
<input type="text" id="tmax" value="Y_max"
onblur="if (this.value == '') {this.value = 'Y_max';}"
onfocus="if (this.value == 'Y_max') {this.value = '';}" />
</article>
</article>
<h3 class="thresh">Threshold Values</h3>
<article class="spatial">
<article class="threshLabels">
<p>Spatial:</p>
</article>
<article class="threshValues">
<input type="text" id="sThresh" value="Xt"
onblur="if (this.value == '') {this.value = 'Xt';}"
onfocus="if (this.value == 'Xt') {this.value = '';}" />
</article>
</article>
<article class="temporal">
<article class="threshLabels">
<p>Temporal:</p>
</article>
<article class="threshValues">
<input type="text" id="tThresh" value="Yt"
onblur="if (this.value == '') {this.value = 'Yt';}"
onfocus="if (this.value == 'Yt') {this.value = '';}" />
</article>
</article>
<article class="cluster">
<article class="threshLabels">
<p>Cluster:</p>
</article>
<article class="threshValues">
<input type="text" id="cThresh" value="Ct"
onblur="if (this.value == '') {this.value = 'Ct';}"
onfocus="if (this.value == 'Ct') {this.value = '';}" />
</article>
</article>
<button type="button" id="changeVals" onClick="changeGraphAxes()">Run</button>
</div>
</div>
<div class="footer">
<a href="http://cidarlab.org/" target="_blank">
<img src="./images/logo/cidar_s.png" alt="CIDAR Lab" style="width:142px">
</a>
<a href="http://www.bu.edu" target="_blank">
<img src="./images/logo/bu.png" alt="BU.EDU">
</a>
</div>
</body>
</html>