-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-resume.html
324 lines (279 loc) · 7.79 KB
/
example-resume.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
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Roboto+Slab:wght@200&display=swap" rel="stylesheet">
<script>
function adjustFontSize(selector, amount, initial) {
document.querySelectorAll(selector).forEach(element => {
var estilo = element.style["font-size"];
if (estilo == "") {
estilo = initial;
}
element.style["font-size"] = parseFloat(estilo.slice(0,-2)) + amount
});
}
function increaseFontSize(selector, amount, initial) {
adjustFontSize(selector, amount, initial);
}
function decreaseFontSize(selector, amount, initial) {
adjustFontSize(selector, 0 - amount, initial);
}
function initialize(config) {
const div = document.createElement("div");
div.style["position"] = "fixed";
div.style["left"] = 10;
div.style["bottom"] = 10;
div.style["display"] = "grid";
div.style["grid-template-columns"] = "repeat(3, 1fr)";
div.style["z-index"] = 99;
div.style["width"] = config.width;
div.style["height"] = config.height;
div.style["background-color"] = "#696969";
div.style["color"] = "black";
const showButton = document.createElement("button");
showButton.innerHTML = "show";
showButton.onclick = function(){
div.style["opacity"] = 1.0;
};
const spacer = document.createElement("div");
const hideButton = document.createElement("button");
hideButton.innerHTML = "hide";
hideButton.onclick = function(){
div.style["opacity"] = 0.25;
};
div.appendChild(spacer);
div.appendChild(showButton);
div.appendChild(hideButton);
for (let i = 0; i < config.adjusters.length; i++) {
let thing = config.adjusters[i];
const text = document.createElement("p");
text.style["font-size"] = "1.0em";
text.innerHTML = thing["displayName"];
div.appendChild(text);
const buttonIncrement = document.createElement("button");
buttonIncrement.style["font-size"] = "1.0em";
buttonIncrement.innerHTML = "+";
buttonIncrement.onclick = function(){increaseFontSize(thing["selector"], thing["interval"], thing["defaultSize"])};
div.appendChild(buttonIncrement);
const buttonDecrement = document.createElement("button");
buttonDecrement.style["font-size"] = "1.0em";
buttonDecrement.innerHTML = "-";
buttonDecrement.onclick = function(){decreaseFontSize(thing["selector"], thing["interval"], thing["defaultSize"])};
div.appendChild(buttonDecrement);
}
document.body.appendChild(div);
window.addEventListener('beforeprint', (event) => {
div.style.display = "none";
});
window.addEventListener('afterprint', (event) => {
div.style.display = "grid";
});
}
let config = {
width: "300px",
height: "200px",
fontSize: "1em",
adjusters: [
{
displayName: "header",
selector: "h1",
defaultSize: "32px",
unit: "px",
interval: 2
},
{
displayName: "section",
selector: "h2",
defaultSize: "24px",
unit: "px",
interval: 2
},
{
displayName: "sub-section",
selector: "h3",
defaultSize: "18.72px",
unit: "px",
interval: 2
},
{
displayName: "sub-sub-section",
selector: "h4",
defaultSize: "16px",
unit: "px",
interval: 0.25
},
{
displayName: "sub-section",
selector: "h3",
defaultSize: "1.17em",
unit: "px",
interval: 0.25
},
{
displayName: "italics",
selector: "i",
defaultSize: "20px",
unit: "px",
interval: 0.25
},
{
displayName: "text",
selector: "li",
defaultSize: "14px",
unit: "px",
interval: 0.25
}
]
};
document.addEventListener('DOMContentLoaded', function () {
initialize(config);
});
</script>
<style>
@page {
size: letter;
}
body {
width: 8.5in;
height: 11in;
margin: auto;
border-width: thick;
background: white;
}
html {
background: grey;
}
svg {
vertical-align: baseline;
}
body > div {
margin: 20px;
}
/* Contact Details */
h1 {
font-family: 'Roboto Slab', serif;
}
h1 ~ ul {
display: flex;
flex-direction: row;
justify-content: center;
}
h1 ~ ul > li {
list-style-type: none;
}
h1 ~ ul > li:not(:last-child)::after {
content: "•";
}
/* Job Details */
section > h2 ~ section > p:nth-child(2n) {
text-align: right;
}
section > h2 ~ section {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
section > h2 ~ section > *:last-child:nth-child(3n - 1) {
grid-column: span 2;
}
/* Header stuff */
section > h1 {
text-align: center;
}
section > h1 ~ p {
text-align: center;
}
/* Major Section */
section > section > h2 {
border-bottom: 2px solid #333;
}
h1,h2,h3,p,ul {
margin: 2px 0px;
}
h2 {
font-family: 'Open Sans', sans-serif;
font-size: 24px;
}
h3 {
font-family: 'Open Sans', sans-serif;
font-size: 18.72px;
}
p,li {
font-size: 14px;
}
</style>
</head>
<body>
<div>
<section><h1>Joe Smith</h1>
<p>Some Place</p>
<ul>
<li>(123) 456-7890</li>
<li>[email protected]</li>
<li>github.com/<some-username></li>
</ul>
<section><h2>Work</h2>
<section> <h3>Cool Tech Company</h3>
<p><b>Remote</b></p>
<p><i>Super Developer</i></p>
<p><i>August 1999 - Present</i></p>
<ul>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
</ul>
</section>
<section> <h3>Less Cool Tech Company</h3>
<p><b>Remote</b></p>
<p><i>DevOps Engineer</i></p>
<p><i>September 1988 - August 1999</i></p>
<ul>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
</ul>
</section>
</section>
<section><h2>Skills</h2>
<ul>
<li><b>Languages:</b> C, C++, Language, Language, Perl, Language, Elisp
</li>
<li><b>Other Technologies:</b> Something, Something, Windows, Something, Something
</li>
<li><b>Something more specific:</b> Another list, of, good, things, to, show, off
</li>
</ul>
</section>
<section><h2>Projects</h2>
<ul>
<li><b>Some Side Project:</b>Did a bunch of good work to do work and get work done and here are some results of the good work that I done
</li>
<li><b>Another cool project:</b>Did a bunch of good work to do work and get work done and here are some results of the good work that I done
</li>
</ul>
</section>
<section> <h2>Education</h2>
<section> <h3>The University</h3>
<p>Some Place</p>
<p>BS Computer Science</p>
<p>July 1972</p>
<section> <h4>Senior Project: Or Something</h4>
<ul>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
</ul>
</section>
<section> <h4>Chief Officer: some cool club</h4>
<ul>
<li>Did a bunch of good work to do work and get work done and here are some results of the good work that I done</li>
</ul>
</section>
</section>
</section>
</section>
</div>
</body>
</html>