-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (166 loc) · 5.59 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
<!DOCTYPE html>
<html>
<head>
<title>Digitized Rhinoplasty - JSON Parser</title>
<script src="js/misc_js/jquery-3.6.1.js"></script>
<script src="js/srcPartLndMrkMeasListener.js"></script>
<script src="js/participant_js/partJsonParse.js"></script>
<script src="js/lndmrkMeasmnt_js/lndMeasJsonParse.js"></script>
<script src="js/participant_js/partPrintOutput.js"></script>
<script src="js/lndmrkMeasmnt_js/lndMeasPrintOutput.js"></script>
<!-- JSON Parser webpage interface for inserting 3D Landmark Markings and Measurements into a database -->
</head>
<body>
<h1>Digitized Rhinoplasty - JSON Parser</h1>
</br>
<!-- Button for switching between participant and landmark&measurement insertion -->
<button type="button" id="partDisplayButton">Participants</button>
<button type="button" id="lndMeasDisplayButton">Landmarks & Measurements</button>
<!-- Participant Insertion -->
<!-- Participant insertion demographic options -->
<div id="partParseDiv" style="display: block;">
<p>Select participant features:</p>
<form style="
margin: 10px;
display: flex;
flex-direction: column;
width: 150px;
"
id="inputFeatures">
<label for="gender">Gender</label>
<select name="gender" id="gender">
<option value="M">Male</option>
<option value="F">Female</option>
<option value="O">Other</option>
<option value="P">Prefer not to specify</option>
</select>
<label for="ethnicity">Ethnicity</label>
<select name="ethnicity" id="ethnicity">
<option>Prefer not to specify</option>
<option>White</option>
<option>Black or African American</option>
<option>American Indian or Alaska Native</option>
<option>Asian</option>
<option>Native Hawaiian or Other Pacific Islander</option>
<option>Hispanic</option>
</select>
<label for="facialSurgery">Facial Surgery</label>
<select name="facialSurgery" id="facialSurgery">
<option>No Facial Surgery</option>
<option>Brow/forehead lift</option>
<option>Ear pinning</option>
<option>Chin, cheek, or jaw reshaping</option>
<option>Eyelid lift</option>
<option>Facelift</option>
<option>Facial implants</option>
<option>Hair replacement surgery</option>
<option>Lip augmentation</option>
<option>Rhinoplasty</option>
<option>Other</option>
<option>Prefer not to specify</option>
</select>
<label for="age">Age:</label>
<input type="number" id="age" min="0" max="100" name="age" value="18">
</form>
</br>
<!-- Prompt user for JSON file -->
<p>Upload JSON file here:</p>
<input type="file" id="partFileToLoad" accept=".json" autocomplete="off">
</br>
</br>
<!-- Display boxes for user to see changes in JSON -->
<div id="partPreviewDiv" style="display: none;">
<div id="partInputParent" style="margin: 5px;">
<div><label>Input</label></div>
<div><textarea id="partInputBox"
style="resize: none;"
autocomplete="off"
readonly
rows="25"
cols="50">
</textarea></div>
</div>
<div id="partOutputParent" style="margin: 5px;">
<div><label>Output</label></div>
<div><textarea id="partOutputBox"
style="resize: none;"
autocomplete="off"
readonly
rows="25"
cols="50">
</textarea></div>
</div>
</div>
<!-- Upload participant record to node server -->
<button type="button" id="partUploadButton">Upload</button>
</br>
<!-- Participant record insertion result -->
<textarea id="partResultOutput"
style=" margin: 5px;
resize: none;
display: none;
width: 50%;"
autocomplete="off"
readonly
rows="25">
</textarea>
</div>
<!-- Landmark & Measurement Insertion -->
<div id="lndMeasParseDiv" style="display: none;">
<!-- Prompt user for JSON file -->
<p>Upload JSON file here:</p>
<input type="file" id="lndMeasFileToLoad" accept=".json" autocomplete="off">
</br>
</br>
<!-- Display boxes for user to see changes in JSON -->
<div id="lndMeasPreviewDiv" style="display: none;">
<div id="lndMeasinputParent" style="margin: 5px;">
<div style="display: flex; flex-direction: column;">
<label>Input</label>
<textarea id="lndMeasInputBox"
style="resize: none;"
autocomplete="off"
readonly
rows="25"
cols="50">
</textarea>
</div>
</div>
<div id="lndMeasOutputParent" style="margin: 5px; display: flex; flex-direction: row;">
<div style="margin-right: 10px; display: flex; flex-direction: column;">
<label>Landmark Output</label>
<textarea id="lndOutputBox"
style="resize: none;"
autocomplete="off"
readonly
rows="25"
cols="50">
</textarea>
</div>
<div style="display: flex; flex-direction: column;">
<label>Measurement Output</label>
<textarea id="measOutputBox"
style="resize: none;"
autocomplete="off"
readonly
rows="25"
cols="50">
</textarea>
</div>
</div>
</div>
<!-- Upload landmark & measurement records to node server -->
<button type="button" id="lndMeasUploadButton">Upload</button>
</br>
<textarea id="lndMeasResultOutput"
style=" margin: 5px;
resize: none;
display: none;
width: 50%;"
autocomplete="off"
readonly
rows="10">
</textarea>
</div>
</body>
</html>