-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
211 lines (204 loc) · 6.7 KB
/
Copy pathindex.html
File metadata and controls
211 lines (204 loc) · 6.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="A simple webapp to create labels" />
<meta name="author" content="Ari Lisogorsky" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="Assets/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="Assets/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="Assets/favicon-16x16.png"
/>
<link rel="manifest" href="Assets/site.webmanifest" />
<link rel="stylesheet" href="CSS/ui.css" />
<link rel="stylesheet" href="CSS/CRY1700_basic.css" />
</head>
<body>
<div id="ui" class="no-print">
<div class="ui-title">
<h1>Sample Label Maker v.0.8</h1>
<em>v0.8: QRiousity killed lachat</em>
<p>By: Ariel Lisogorsky</p>
<em>works best in chrome</em>
<p id="infoline-static">
This project is developed
<a href="https://github.com/ariliso/open_cryo_labels_js">on github</a>
If you have changes or suggestions, you can add them
<a href="https://github.com/ariliso/open_cryo_labels_js/issues"
>here.</a
>
</p>
<p>
The labels are currently set to use the
<a href="https://brailleinstitute.org/freefont"
>Atkinson Hyperlegible</a
>
typeface. It's a font designed to be particularly distinguishable in
low vision scenarios. If you'd like to learn more about it you can do
so
<a href="https://www.youtube.com/watch?v=wjE5eHLICzc">
here (short)</a
>
or
<a
href="https://letterformarchive.org/events/view/atkinson-hyperlegible-challenging-assumptions-about-legibility-and-accessibility"
>
here (longer).</a
>
</p>
</div>
<div id="ui-info">
<p id="infoline" class="infoline">
Please load a text file with a sample name in each row
</p>
</div>
<div id="ui-config">
<div class="ui-config-names">
<h3>Sample List</h3>
<input type="file" id="label-input" accept=".txt,mime/text" />
<br />
<textarea
name="custom-sample-names"
id="in-txt-custom-sample-names"
class="update_on_change"
></textarea>
</div>
<div class="ui-config-sets">
<h3>Label Configuration</h3>
<div id="in-set-select">
<label for="label-set-box">Label Set</label>
<select name="label-set-box" id="label-set-box">
<option value="custom">Custom</option>
</select>
<button
id="btn-customize-label-set"
onclick="customizeLabelSet()"
style="display: none"
>
Customize
</button>
</div>
<br />
<div id="in-set-custom-label">
<label for="txt-custom-label-set">Custom Label Set</label>
<textarea
name="custom-label-name"
id="txt-custom-label-set"
class="update_on_change"
></textarea>
</div>
<div id="in-set-multi-check">
<select id="in-set-multi-check-list" multiple=""></select>
</div>
</div>
<div class="ui-ids">
<h3>Run Information</h3>
<label for="in-txt-attn">ATTN:</label>
<input
type="text"
name="in-txt-attn"
id="in-txt-attn"
class="update_on_change"
/>
<br />
<label for="in-date-select">Date</label>
<input
type="date"
name="date-input"
id="in-date-select"
class="update_on_change"
/>
</div>
<div class="ui-print">
<h3>Print Configuration</h3>
<div id="in-set-breaks">
<label for="break-for-sets">Page Break After Sets </label>
<input
type="checkbox"
name="break-for-sets"
id="in-bool-sets-break"
,
class="update_on_change"
/>
</div>
<label for="in-skip-start">Preceding Blank Spots </label>
<input
type="number"
name="in-skip-start"
id="in-skip-start"
min="0"
max="84"
value="0"
class="update_on_change"
/>
<button type="button" , onclick="window.print()">Print</button>
</div>
</div>
<div id="ui-saveconf">
<div class="advSettingToggle" id="ui-adv-set-togg">
<button id="bt-refresh-labels" , onclick="updateLabels()">
Refresh Labels</button
>
<label for="toggle-adv-settings">Advanced Settings: </label>
<input
type="checkbox"
name="toggle-adv-settings"
id="toggle-adv-settings"
/>
</div>
<div id="ui-adv-config" class="advanced settings">
<label for="chk-spec-lbl">Interpret "#" codes</label>
<input
type="checkbox"
name="chk-spec-lbl"
id="chk-spec-lbl"
checked
/>
<label for="bt-load-conf">open config file: </label>
<input
type="file"
name="bt-load-conf"
id="bt-load-conf"
accept=".json,mime/JSON"
/>
<button id="bt-save-conf">Save Configuration</button>
<label for="select-conf-save-type"> As:</label>
<select name="select-conf-save-type" id="select-conf-save-type">
<option value="custom" id="save-type-id-1">Custom Samples</option>
<option value="inc_labels" id="save-type-id-2">
Current Label Sets (For custom edits)
</option>
<option value="inc_labels&selection" id="save-type-id-3">
Current Label Set & Set specified
</option>
</select>
<label for="select-conf-save-type"> (beta))</label>
</div>
</div>
</div>
<div id="labels">
<!-- this will be populated with labels by javascript -->
</div>
</body>
<script src="https://unpkg.com/qrjs2@latest/js/qrjs2.js"></script>
<script
id="js-label-fucntions"
src="Scripts/label_functions.js"
type="text/javascript"
></script>
<script id="js-ui-fucntions" src="Scripts/UI/ui_functions.js"></script>
<script id="js-save_file" src="Scripts/UI/save_file.js"></script>
</html>