-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
212 lines (193 loc) · 10.7 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
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Imposition Calculator">
<title>Imposition Calculator</title>
<link href="https://unpkg.com/7.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<!-- Section: Main Window -->
<div class="main-window">
<div class="window active">
<!-- Section: Title Bar -->
<div class="title-bar">
<div class="title-bar-text">Imposition Calculator</div>
<div class="title-bar-controls">
<button aria-label="Minimize"></button>
<button aria-label="Maximize"></button>
<button aria-label="Close"></button>
</div>
</div>
<div class="window-body has-space">
<!-- Section: Menu Tabs -->
<menu role="tablist">
<button aria-controls="tab-A" aria-selected="true" id="tabButtonA" role="tab">Calculator</button>
<button aria-controls="tab-B" id="tabButtonB" role="tab">History Log</button>
<button aria-controls="tab-C" id="tabButtonC" role="tab">About</button>
</menu>
<article aria-labelledby="tabButtonA" id="tab-A" role="tabpanel">
<form id="impositionForm">
<!-- Section: Main Container -->
<div class="main-container-for-columns">
<!-- Section: Inputs (First Column) -->
<div class="inputs">
<!-- Calculate Buttons -->
<fieldset>
<legend>Calculate!</legend>
<section class="field-row">
<button id="calculate" type="button">Calculate</button>
<button id="rotateDocs" type="button">Rotate Docs</button>
<button id="setLeadValues">Set Lead Values</button>
</section>
</fieldset>
<!-- Presets -->
<fieldset>
<legend>Presets</legend>
<section class="field-row">
<label for="paperSize">Sheet Size:</label>
<select id="paperSize" onchange="setDimensionsForSelectedPaper()"></select>
</section>
<section class="field-row">
<label for="gutterType">Gutter Size:</label>
<select id="gutterType" onchange="setGutterSize()"></select>
</section>
<section class="field-row">
<label for="docSize">Document Size:</label>
<select id="docSize"></select>
</section>
</fieldset>
<!-- Sheet Dimensions -->
<fieldset>
<legend>Sheet Dimensions</legend>
<section class="field-row">
<label for="sheetWidth">Width:</label>
<input id="sheetWidth" required step="1" type="number" value="12">
</section>
<section class="field-row">
<label for="sheetLength">Length:</label>
<input id="sheetLength" required step="1" type="number" value="18">
</section>
</fieldset>
<!-- Document Dimensions -->
<fieldset>
<legend>Document Dimensions</legend>
<section class="field-row">
<label for="docWidth"> Width:</label>
<input id="docWidth" required step="1" type="number" value="3.5">
</section>
<section class="field-row">
<label for="docLength">Length:</label>
<input id="docLength" required step="1" type="number" value="2">
</section>
</fieldset>
<!-- Imposition Settings -->
<fieldset>
<legend>Imposition Settings</legend>
<section class="field-row">
<label for="docsAcross">Docs Across:</label>
<input id="docsAcross" required step="1" type="number" value="2">
</section>
<section class="field-row">
<label for="docsDown">Docs Down:</label>
<input id="docsDown" required step="1" type="number" value="2">
</section>
</fieldset>
<!-- Gutter -->
<fieldset>
<legend>Gutter</legend>
<section class="field-row">
<label for="gutterWidth"> Width:</label>
<input id="gutterWidth" required step="0.125" type="number" value="0.125">
</section>
<section class="field-row">
<label for="gutterLength">Length:</label>
<input id="gutterLength" required step="0.125" type="number" value="0.125">
</section>
</fieldset>
<!-- Trim Dimensions -->
<fieldset>
<legend>Trim Dimensions</legend>
<section class="field-row">
<label for="leadTrim">Lead Trim:</label>
<input id="desiredLeadTrim" required step="0.01" type="number">
</section>
<section class="field-row">
<label for="sideTrim">Side Trim:</label>
<input id="desiredSideTrim" required step="0.01" type="number">
</section>
</fieldset>
</div>
<!-- End of Inputs -->
<!-- Section: Visualization (Second Column) -->
<div class="visualization">
<div class="imposition-wrapper">
<fieldset>
<legend>Imposition Visualization</legend>
<div id="sheetWrapper" class="sheet-wrapper"></div>
</fieldset>
</div>
</div>
<!-- End of Visualization -->
<!-- Section: Results (Third Column) -->
<div class="calculated-results">
<fieldset>
<legend>Results</legend>
<table class="results-table">
<tr>
<th>Measurement</th>
<th>Inches</th>
<th>mm</th>
</tr>
<tbody id="resultsTableBody"></tbody>
</table>
</fieldset>
<fieldset>
<legend>Cuts & Slits</legend>
<table class="results-table" id="cutsTable">
<thead>
<tr>
<th>Cuts</th>
<th>Inches</th>
<th>mm</th>
</tr>
</thead>
<tbody></tbody>
</table>
<table class="results-table" id="slitsTable">
<thead>
<tr>
<th>Slits</th>
<th>Inches</th>
<th>mm</th>
</tr>
</thead>
<tbody></tbody>
</table>
</fieldset>
</div>
<!-- End of Results -->
</div>
<!-- End of Main Container -->
</form>
</article>
</div>
</div>
</div>
<!-- End of Main Window -->
<!-- Section: Scripts -->
<script src="app.js"></script>
<script src="tabNavigation.js"></script>
<script src="visualizeImposition.js"></script>
<script src="paperSize.js"></script>
<script src="docSize.js"></script>
<script src="gutterSize.js"></script>
<script src="displayResults.js"></script>
<script src="rotate.js"></script>
<script src="draggableWindows.js"></script>
<!-- End of Scripts -->
</body>
</html>