-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresume.html
125 lines (111 loc) · 3.88 KB
/
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
<html lang="en">
<head>
<meta charset="UTF-8" name="chris clem's terminal resume website" content="width=device-width">
<title>my cool site</title>
<style>
body {
background-color: black;
font-family: monospace;
color: white;
justify-content: center;
align-items: center;
}
a {
color: inherit;
text-decoration: none;
}
#cursor {
display: inline-block;
background-color: white;
border-style: solid;
border-width: 1px;
border-color: white;
font-size: 12px;
}
#terminal-wrap {
width: 95%;
background-color: black;
display: flex;
align-items: flex-start;
padding: 5px;
border: 1px solid white;
overflow: hidden;
}
#terminal {
top: 5px;
bottom: 5px;
width: 100%;
background-color: black;
font-size: 12px;
height: 370px;
}
img {
height: 12px;
width: auto;
}
</style>
<!-- html2pdf CDN link -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"
integrity="sha512-GsLlZN/3F2ErC5ifS5QtgpiJtWd43JWSuIgh7mbzZ8zBps+dvLusV+eNQATqgA/HdeKFVgA5v3S/cIrLF7QnIg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
</head>
<body>
<h1 style="text-align: center;"><a href="https://chrisclem.dev/" target="_blank">view on webpage for an interactive terminal!</a></h1>
<div id="terminal-wrap">
<div style="font-size: 0;">
<span id="terminal">
<div id="date"></div>
</span>
</div>
</div>
<!-- jsPDF library
<script src="js/jsPDF/dist/jspdf.umd.js"></script>
-->
<script src="./scripts/files.js"></script>
<script>
// runs after github api call finishes
function finishedAPICall()
{
const dateS = new Date();
document.getElementById("date").innerHTML = "<font color='grey'>" + dateS + "</font>";
document.getElementById("terminal").innerHTML +=
`<b><font color="lime">chrisclem</font>:~/chrisclem $</b> whois chrisclem${whoisChris}
<br><b><font color="lime">chrisclem</font>:~/chrisclem $</b> cat contact<br>${fileStructure["chrisclem"]["contact"]}
<br><b><font color="lime">chrisclem</font>:~/chrisclem $</b> cat education<br>${fileStructure["chrisclem"]["education"]}
<br><b><font color="lime">chrisclem</font>:~/chrisclem $</b> cat employment<br>${fileStructure["chrisclem"]["employment"]}
<br><b><font color="lime">chrisclem</font>:~/chrisclem $</b> cat education<br>${fileStructure["chrisclem"]["skills"]}
<br><b><font color="lime">chrisclem</font>:~/chrisclem $</b> cd projects/<br><b><font color="lime">chrisclem</font>:~/chrisclem/projects $</b> cat anti-league-discordbot <br>
${fileStructure["chrisclem"]["projects"]["anti-league-discordbot"]}<br><b><font color="lime">chrisclem</font>:~/chrisclem/projects $</b> cat conways_game_of_life <br>
${fileStructure["chrisclem"]["projects"]["conways-game-of-life"]}<br><b><font color="lime">chrisclem</font>:~/chrisclem/projects $</b> cat valorant_hack <br>
${fileStructure["chrisclem"]["projects"]["valorant-hack"]}<br><b><font color="lime">chrisclem</font>:~/chrisclem/projects $</b> cat terminalresume <br>
${fileStructure["chrisclem"]["projects"]["terminalresume"]}<br><b><font color="lime">chrisclem</font>:~/chrisclem/projects $</b> <font id="cursor" style="background-color: white;"> </font>`;
downloadPDF();
/*
window.jsPDF = window.jspdf.jsPDF;
var doc = new jsPDF();
doc.html(document.body, {
callback: function(doc) {
// Save the PDF
doc.save('test-document.pdf');
},
x: 15,
y: 15,
//width: 170, //target width in the PDF document
//windowWidth: 650 //window width in CSS pixels
});
*/
}
async function downloadPDF()
{
await html2pdf().set({
pagebreak: { mode: 'avoid-all' }
});
await html2pdf().from(document.body).save();
await window.close();
}
</script>
</body>
</html>