-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (70 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="fonts/icons.min.css">
<link rel="icon" href="https://carlgo11.dev/cdn-cgi/image/f=auto,h=64/profile.png" type="image/png" sizes="64x64">
<link rel="icon" href="https://carlgo11.dev/cdn-cgi/image/f=auto,h=180/profile.png" type="image/png" sizes="180x180">
<link rel="icon" href="https://carlgo11.dev/cdn-cgi/image/f=auto,h=192/profile.png" type="image/png" sizes="192x192">
<link rel="manifest" href="/manifest.json">
<title>Carlgo11</title>
</head>
<body>
<main>
<img class="profile-picture" src="https://carlgo11.dev/cdn-cgi/image/f=auto,h=112/profile.png" alt="Carlgo11" loading="lazy" aria-hidden="true">
<h1>Carlgo11</h1>
<a role="button" href="https://Carlgo11.com" rel="me">
<span class="blog">Blog</span>
</a>
<a role="button" href="https://github.com/Carlgo11" rel="me">
<span class="github">GitHub</span>
</a>
<a role="button" href="https://twitter.com/Carlgo11" rel="me">
<span class="twitter">Twitter</span>
</a>
<a role="button" href="https://infosec.exchange/@Carlgo11" rel="me">
<span class="mastodon">Mastodon</span>
</a>
<a role="button" href="https://bsky.app/profile/carlgo11.dev" rel="me">
<span class="bluesky">Bluesky</span>
</a>
<a role="button" href="https://reddit.com/u/carlgo11" rel="me">
<span class="reddit">Reddit</span>
</a>
<a role="button" href="https://keybase.io/carlgo11" rel="me">
<span class="keybase">Keybase</span>
</a>
<a role="button" id="imessage" href="#imessage-fpr">
<span class="imessage">iMessage Key</span>
</a>
<dialog>
<code id="imessage-fpr">{{imessage_fpr}}</code>
</dialog>
</main>
<script type="application/javascript">
const imessage_fpr = document.getElementById('imessage-fpr');
const dialog = document.querySelector('dialog');
const closeDialogOnOutsideClickOnce = (event) => {
if (dialog === event.target) {
dialog.close();
document.body.removeEventListener('click', closeDialogOnOutsideClickOnce);
}
}
document.getElementById('imessage').addEventListener('click', () => {
dialog.showModal()
setTimeout(() => {
document.body.addEventListener('click', closeDialogOnOutsideClickOnce);
}, 0);
}
)
imessage_fpr.addEventListener('click', async () => {
try {
await navigator.clipboard.writeText(imessage_fpr.innerText)
} catch (e) {
console.error('Failed to copy: ', e);
}
})
</script>
</body>
</html>