-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
207 lines (195 loc) · 4.16 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
207
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>3D Profile Table</title>
<!--<script src="/js/scripts.js"></script>-->
<link rel="icon" href="/favicon.png">
<style>
body {
margin-left: 50px;
}
div, {
box-sizing: border-box;
display: inline-block;
position: relative;
width: 100%;
}
main {
margin: 30px;
}
div#turnOnOff {
position: relative;
left: -10px;
margin-top: 20px;
}
div#selectProfile {
position: relative;
left: 20px;
margin-top: 30px;
}
div#selectProfile span {
display: inline-block;
position: relative;
max-width: 350px;
min-width: 300px;
left: 0px;
margin-left: 100px;
}
div#selectProfile span:not(span:first-child) select {
/*margin-left: 300px;*/
}
div#selectProfile span:first-of-type,
div#selectProfile span:first-of-type h2 {
margin-left: 10px;
}
div#selectProfile h2 {
display: inline-block;
}
div#profileTables{
display: inline-block;
position: relative;
left: -10px;
width: 120%;
}
div#profileTables h2 {
display: block;
text-wrap: auto;
margin-left: 20px;
}
div#profileTables span {
display: inline-block;
position: relative;
max-width: 350px;
min-width: 300px;
margin-left: 50px;
}
div#profileTables span:first-child {
margin-left: 0px !important;
}
table.print-table {
display: inline;
}
table tr {
display: table;
width: 100%;
}
table tr th, table tr td {
display: inline-block;
position: relative;
}
table th.nest, table td.nest {
margin-left: 10px;
padding-left: 10px !important;
}
table th.nest.attribute-nest, table td.nest.attribute-nest {
left: 10px;
}
tr {
padding: 5px 10px;
border-bottom: 1px solid black;
}
th.count {
max-width: 100px;
width: auto;
padding: 3px 10px;
}
td.property {
max-width: 250px;
width: auto;
overflow-wrap: anywhere;
padding: 0px 10px;
}
td.value {
box-sizing: border-box;
overflow-wrap: anywhere;
float: right;
max-width: 200px;
width: auto;
}
th.property.nest {
margin-left: 55px;
}
td.value.nest.attribute-nest {
clear: both;
padding: 0px;
}
td.value.nest {
clear: both;
padding: 0px;
}
span#profileNotice {
display: inline-block;
position: relative;
top: 11px;
margin-top: -50px;
margin-left: 30px;
padding-left: 30px;
border-left: 2px solid #0f0f0f;
}
span#profileNotice h2 {
position: relative;
top: 10px;
margin-top: -10px;
}
button {
background: darkslategray;
color: white;
margin: 10px;
padding: 5px 15px;
cursor: pointer;
border-radius: 10px;
}
select {
max-width: 200px;;
min-width: 100px;;
border-radius: 10px;
padding: 5px;
}
</style>
</head>
<body>
<h1 id="pageTitle"></h1>
<p>3D print profile tables below.</p>
<!-- Select directory -->
<div id="directoryListID">
<select name="directoryList" id="directoryList">
<option selected value=""></option>
</select>
</div>
<!-- Button to show profile differences. -->
<div id="turnOnOff">
<button id="showDiffButton" onclick="updateProfiles()">Show Differences</button>
<span id="profileNotice"></span>
</div>
<!-- Drop downs to select 3d profiles. -->
<div id="selectProfile">
<span>
<select name="colI" id="colI" class="selectProfiles">
<option selected value=""></option>
</select>
</span>
<span>
<select name="col2" id="col2" class="selectProfiles">
<option selected value=""></option>
</select>
</span>
<span>
<select name="col3" id="col3" class="selectProfiles">
<option selected value=""></option>
</select>
</span>
<span>
<select name="col4" id="col4" class="selectProfiles">
<option selected value=""></option>
</select>
</span>
</div>
<!-- Parse the print profiles selected from dropdowns above. -->
<main>
<div id="profileTables">
</div>
</main>
<script src="js/compare3DPrintProfiles.js"></script>
</body>
</html>