-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
404 lines (390 loc) · 16.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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!doctype html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<!-- HTML Meta Tags -->
<title>Typewriter Formatting</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Format text to be typed on a typewriter." />
<meta name="canonical" href="https://tylergordonhill.com/typewriter-formatting" />
<meta name="theme-color" content="#128A74" />
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Typewriter Formatting" />
<meta property="og:description" content="Format text to be typed on a typewriter." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://tylergordonhill.com/typewriter-formatting" />
<meta
property="og:image"
content="https://tylergordonhill.com/typewriter-formatting/linkpreview.png"
/>
<meta property="og:image:type" content="image/png" />
<meta
property="og:image:alt"
content="Screenshot of the website displaying the text input field and rendering options. "
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:domain" content="tylergordonhill.com" />
<!-- Link Tags -->
<link rel="icon" href="/typewriter-formatting/tabicon.png" />
<link href="/style-guide/style.css" rel="stylesheet" type="text/css" />
<link href="/style-guide/header/style.css" rel="stylesheet" type="text/css" />
<link href="/style-guide/inputs/style.css" rel="stylesheet" type="text/css" />
<link href="/style-guide/footer/style.css" rel="stylesheet" type="text/css" />
<link href="/typewriter-formatting/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<main>
<aside>
<header>
<div id="headerBg"></div>
<h2 id="title">Typewriter Formatting</h2>
<a id="byLine" href="/">Tyler Gordon Hill</a>
</header>
<div id="resetContainer" class="settingsButtonBox">
<label for="input" title="Text input" class="settingsLabel">Text input</label>
<button class="small" id="resetInputEssay" title="Reset text input to essay example"
>Reset Essay</button
>
<button class="small" id="resetInputASCII" title="Reset text input to ASCII example"
>Reset ASCII</button
>
<button class="small" id="addLayer" title="Add layer for overlapping text"
>Add Layer</button
>
<button class="small hidden" id="deleteLayer">Delete Layer</button>
<button class="small hidden" id="prevLayer" title="Go to previous layer">Previous</button>
<button class="small hidden" id="nextLayer" title="Go to next layer">Next</button>
</div>
<form id="inputContainer">
<textarea id="input" class="input" name="input">
_____
_/ _ \__
__/ / \ \
@@@@ | @ | |
@@@@@@@@@@@@@@@@@ \_/ \
@@@@@@@@@@@@@@@@@@@@@@ \
@@@@@ /.''......'\@@@@@ __\
@@@ /'.''.'..'''.'\@@@ /
@ __|''..'___@@@_____.\_____/
_/_/'.'._/@@@ \____3
/ |'''_/ | 3
_/''./ / \
/'__'_/ / \
/'/ // / |
/'/ // / \
/ _/.\ / | | \
/ |___//__\ / |
/ / // / / \ / \
/ / | \
/ / \ \ / \
/ / \
/ | | \_
/ | / /\ \__
/ | | | | / | \_ \_
| | | \__ \_
| | | | \ \_
| | | \_ \_
/ | | | \ \ \_
/ | | \ \ | \
| \ \ \ \ | \
| \ \ \ / \ | \
/ / \ \ \\\\\ \ \ \
/ \ \ \\\ \ | |
\ \_ \ | | \
| | \ \_ \\ \\\ \
\_ \_ \\\\\\\\\\\\ \
| \_ \__ \ \\\\\ \\\
| | \___ \_ \ |\_
/ / | \_ \_ \ \_
/ | \ \_\\_ | \_
/ / \ __/ \_\ \_
| || | /__@@__|____/ \
| @@ @@
| | | @@ @@
@@ @@
______||_|______ @@ @@
@@ @@
@@ @@
@@ @@
@@ @@
@@ @@
@@ @@
______@@___@@______
D o n ' t E v e r G i v e U p !</textarea
>
</form>
<details open>
<summary>
<div class="settingsButtonBox">
<span class="settingsLabel">Options</span>
<button class="small" id="resetOptionsEssay" title="Reset options to essay defaults"
>Reset Essay</button
>
<button class="small" id="resetOptionsASCII" title="Reset options to ASCII defaults"
>Reset ASCII</button
>
</div>
</summary>
<form id="optionsContainer">
<fieldset>
<legend>Page</legend>
<div class="smallInputBox">
<label
for="charsOnLine"
title="Characters on a line on your typewriter, 65 with 1in margin, 0.1in characters, and 8.5in wide paper"
>Characters on a line</label
>
<input
type="number"
id="charsOnLine"
name="charsOnLine"
value="85"
min="1"
title="Characters on a line on your typewriter, 85 with 10 characters per inch and 8.5in wide paper"
class="small"
/>
</div>
<div class="smallInputBox">
<label
for="linesOnPage"
title="Lines on a page, 54 with 1in margins and 11in tall paper"
>Lines on a page</label
>
<input
type="number"
id="linesOnPage"
name="linesOnPage"
value="66"
min="1"
title="Lines on a page, 66 with 6 lines per inch and 11in tall paper"
class="small"
/>
</div>
<div class="smallInputBox">
<label
for="marginLines"
title="Top and bottom margin in lines, 6 with 1in margins and 11in tall paper"
>Top/bottom margin</label
>
<input
type="number"
id="marginLines"
name="marginLines"
value="0"
min="0"
title="Top and bottom margin in lines, 6 with 1in margins and 11in tall paper"
class="small"
/>
</div>
<div class="smallInputBox">
<label
for="marginChars"
title="Side margin in characters, 10 with 1in margins and 8.5in wide paper"
>Side margin</label
>
<input
type="number"
id="marginChars"
name="marginChars"
value="0"
min="0"
title="Side margin in characters, 10 with 1in margins and 8.5in wide paper"
class="small"
/>
</div>
</fieldset>
<fieldset>
<legend>
<label for="columns" title="Split into columns">Columns</label>
<input
type="number"
class="small smallWidth"
id="columns"
name="columns"
value="1"
min="1"
title="Split into columns"
/>
</legend>
<div class="smallInputBox">
<label for="columnGap" class="disabled" title="Characters between columns"
>Column Gap</label
>
<input
type="number"
class="small disabled smallWidth"
id="columnGap"
name="columnGap"
value="0"
min="0"
title="Characters between columns"
/>
</div>
</fieldset>
<fieldset>
<legend>
<input
type="checkbox"
id="wordBreak"
name="wordBreak"
title="Break words when split over a line"
class="small"
/>
<label for="wordBreak" title="Break words when split over a line">Word Break</label>
</legend>
<div class="smallInputBox">
<label
for="charsToHyphen"
class="disabled"
title="Min number of characters that must be on each line for a word to split"
>Characters to break</label
>
<input
type="number"
class="small disabled smallWidth"
id="charsToHyphen"
name="charsToHyphen"
value="3"
min="1"
title="Min number of characters that must be on each line for a word to split"
/>
</div>
<div class="option checkbox">
<input
class="disabled"
type="checkbox"
id="addHyphen"
name="addHyphen"
title="Add hyphen"
checked
/>
<label for="addHyphen" class="disabled" title="Add hyphen">Add hyphen</label>
</div>
</fieldset>
<fieldset>
<legend
><label for="file" title="Background image for the page, to draw ascii art over"
>Background Image</label
></legend
>
<input
type="file"
id="file"
name="file"
value=""
title="Background image for the page, to draw ascii art over"
/>
<div class="smallInputBox">
<label for="transparency" class="disabled" title="Transparency of background image"
>Transparency</label
>
<input
type="number"
class="small smallWidth disabled"
id="transparency"
name="transparency"
value="0"
min="0"
max="100"
title="Transparency of background image"
/>
</div>
</fieldset>
<fieldset>
<legend>Other</legend>
<div class="option checkbox">
<input type="checkbox" id="center" name="center" title="Center each line" />
<label for="center" title="Center each line">Center Text</label>
</div>
<div class="smallInputBox">
<label for="lineSpacing" title="Space between lines">Line Spacing</label>
<input
type="number"
class="small smallWidth"
id="lineSpacing"
name="lineSpacing"
value="1"
min="1"
title="Space between lines"
/>
</div>
<div class="option checkbox">
<input
type="checkbox"
id="showSpaces"
name="showSpaces"
title="Show spaces on hover"
checked
/>
<label for="showSpaces" title="Show spaces on hover">Show spaces on hover</label>
</div>
<div class="option checkbox">
<input
type="checkbox"
id="renderChar"
name="renderChar"
title="Render the page with each character entered"
/>
<label for="renderChar" title="Render the page with each character entered"
>Render on character input</label
>
</div>
<div class="option checkbox">
<input
type="checkbox"
id="singleLayer"
name="singleLayer"
title="Show only the selected layer on screen"
/>
<label for="singleLayer" title="Show only the selected layer on screen"
>Show single layer</label
>
</div>
</fieldset>
</form>
</details>
</aside>
<section>
<div id="info">
<span id="lineCount"></span>
<span id="pageCount"></span>
</div>
<div class="page" id="page1"></div>
</section>
</main>
<footer>
<div id="footer-main">
<div>
<p><strong>Contact and Social</strong></p>
<a href="mailto:[email protected]" target="_blank" rel="noopener">Email</a>
<a href="http://www.linkedin.com/in/tylergordonhill" target="_blank" rel="noopener"
>LinkedIn</a
>
<a href="https://github.com/TyHil" target="_blank" rel="noopener">GitHub</a>
<a href="https://replit.com/@TylerGHill" target="_blank" rel="noopener">Replit</a>
<a href="https://thangs.com/TylerHill" target="_blank" rel="noopener">Thangs</a>
</div>
<div>
<p><strong>Subsites</strong></p>
<a href="/set-operations-for-spotify">Set Operations for Spotify</a>
<a href="/typewriter-formatting">Typewriter Formatting</a>
<a href="/cah-maker">Cards Against Humanity Card Maker</a>
<a href="/response-display">Response Display</a>
<a href="/password-generator">Password Generator</a>
<a href="/recipes">Recipes</a>
</div>
</div>
<div id="footer-sub">
<a href="/legal/privacy-policy">Privacy Policy</a>
<a href="/sitemap.xml">Sitemap</a>
</div>
</footer>
<script src="https://www.gstatic.com/firebasejs/10.1.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.1.0/firebase-analytics-compat.js"></script>
<script src="/style-guide/script.js"></script>
<script src="/typewriter-formatting/script.js"></script>
</body>
</html>