-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpgp.html
More file actions
218 lines (200 loc) · 7.05 KB
/
Copy pathpgp.html
File metadata and controls
218 lines (200 loc) · 7.05 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
212
213
214
215
216
217
218
<html>
<head>
<title> DonPhysics.com </title>
<style>
div.container {
width: 1100px;
margin: 0 auto;
}
body {
background-color: black;;
}
header {
padding: 1em;
color: white;
height: 150px;
border-style: solid;
border-width: 2px;
border-color: black;
background: url(assets/nyuheader.jpg) no-repeat;
background-size: 100% 100%;
text-align: center;
}
h1 {
font-family: "Times New Roman", Georgia, serif;
margin-left: auto;
margin-right: auto;
margin-top: 60px;
color: #ffeedd;
background-color: #000000;
padding: 10px;
width: 40%;
}
footer {
padding: 1em
color: white;
background: black;
clear: left;
text-align: center;
}
table#navbar{
table-layout: fixed;
color: white;
background-color: black;
width: 100%;
height: -5px;
}
table#navbar td{
text-align: center;
}
table#navbar{
border-style: solid;
border-top-width: 2px;
border-left-width: 2px;
border-right-width: 2px;
border-bottom-width: 1px;
border-bottom-color: brown;
border-top-color: brown;
border-left-color: brown;
border-right-color: brown;
padding: 3px;
}
.year {
font-size: 70px;
font-family: sans-serif;
color: white;
text-align: center;
background-color: black;
border-style: solid;
border-bottom-width: 2px;
border-top-width: 2px;
border-left-width: 1px;
border-right-width: 1px;
border-color: brown;
}
table#main-content {
table-layout: fixed;
font-family: "Arial", sans-serif;
color: white;
border-style: solid;
border-color: brown;
border-width: 2px;
border-spacing: 0px 30px;
font-size: 12px;
overflow: hidden;
background-color: black;
}
table#main-content th{
}
table#main-content td{
padding: 5px;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Donald Jordan Pierce <br>
<font size="+2">New York University<font><br>
<font size="+1">Undergraduate Research on the ATLAS Experiment<font>
</h1>
</header>
<nav>
<table id="navbar">
<tr>
<td><a href="index.html" style="color: brown">Home</a></td>
<td><a href="http://github.com/donjpierce"
style="color: brown">GitHub</a></td>
<td><a href="pgp.html"
style="color: brown">PGP Key</a></td>
<td><a href="assets/resume.pdf" style="color: brown">Resume</a></td>
</tr>
</table>
</nav>
<body>
<p>
</p>
<p align="center">
<button id="button" onclick="copyFunction()">Copy Key To Clipboard</button>
</p>
<div class="container">
<pre align="center" style="color: grey; font-size: 13px" id="pgp_key">
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF0NXuUBEADCf3eCcEH/UYIcht9chLgZ3k+qctlS0Gv3KGxYwxc60QYcpYQ5
pNGx6kYhE92uyzq+OJdOPaCMwtdRmQC+pF/tPFAbhF56Naa7FpamhG/Y2g13d3jh
Zd3ZXGiQrRhe7yhu69FnqzxUw9xH9CIZrNmI+O1d65cHa9cQk7FxdmavmaKInEhb
UDboqrBmCwh12EialuTqkOsrIy21LZ3W0YsmW7Gqd+Gn2EWMzhFMbmrPfC8ZiONk
QUKpvNHAW/TuqKJQpWLidJ70qnzcDfCxZQ6gnQPn5OJw+dbeUFk+H9nfmp40NAgv
pa0jnSuV10lNAovFkJdVdzYdPQ5OktjwJC8m+oj4+vfoijsb5KWtYtgc9TxAnBKt
PeMytVwIghbWPw4HaDIMMkY0JHVaSvV7M7mTe57E5UyMRu3/AmzMLyQLeL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zC
PbhU8/bspw/d5Wa5JY5916IIpMeeWwrIkdietLsFQks68bfWB/3GxV/MbrtaAKNl
gE4gh3PfqXJJtqZl7drfLCIUDsa5h72Mxg86GCEmuXu3r075VRD/ydVu2iZdP1SC
4sc+FW4NnAPlP8iDmO/7B5UrB3OfxlNzOW1H3G3J+M3j0IA6GoUOToEbW1veRkoq
EdBCCYzvCFbYp8eGE1s61HCdIXttJ0oZ+YobBNlDH+fpnR5B7z0r3e/2MxFbXrSI
GUIS2XNSfnlxK553HmscFBZLlkEATvxS1GFBu6oxrUVoIJQ+0JNobeo+lme4Qctk
6KyTTyCu6gytZPdxqCsQqe1V8GukSqn358vQiremcdT/1qXfeKOYPcl3gmfcherZ
nD+p37hC0gej76q0iE2KH26PztBaHizGtdmOjZbNA1Q4+kJVAiFQ8OlOA2PhwSmN
7suB15UQoOfP9A5V1+LJaNZ1vMOhfGhouQIGexVQ774ibRR6nbboAM+NthaVW2KO
etQ=
=p63Q
-----END PGP PUBLIC KEY BLOCK-----
</pre>
</div>
<script>
function copyFunction() {
const copyText = document.getElementById("pgp_key").textContent;
const textArea = document.createElement('textarea');
textArea.textContent = copyText;
textArea.setAttribute('readonly', '');
textArea.style.position = 'absolute';
textArea.style.left = '-9999px';
document.body.appendChild(textArea);
const selected =
document.getSelection().rangeCount > 0 // Check if there is any content selected previously
? document.getSelection().getRangeAt(0) // Store selection if found
: false; // Mark as false to know no selection existed before
textArea.select(); // Select the <textarea> content
document.execCommand('copy'); // Copy - only works as a result of a user action (e.g. click events)
document.body.removeChild(textArea); // Remove the <textarea> element
if (selected) { // If a selection existed before copying
document.getSelection().removeAllRanges(); // Unselect everything on the HTML document
document.getSelection().addRange(selected); // Restore the original selection
}
};
document.getElementById('button').addEventListening('click', copyFunction);
</script>
</body>
</html>