aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/site.css12
-rw-r--r--assets/site.js (renamed from assets/fuck-hn.js)10
2 files changed, 22 insertions, 0 deletions
diff --git a/assets/site.css b/assets/site.css
index 3edc9aa..d57334c 100644
--- a/assets/site.css
+++ b/assets/site.css
@@ -41,6 +41,18 @@ table th, table td {
padding: 0 0.2em;
}
+.profile-everywhere-list {
+ display: flex;
+ flex-flow: row wrap;
+ list-style: none;
+ row-gap: 1em;
+ column-gap: clamp(0.75em, 3vw, 1.5em);
+ margin: 0 auto;
+ max-width: 80%;
+ padding: 0;
+ justify-content: center;
+}
+
/* https://github.com/PrismJS/prism/blob/master/themes/prism.css */
code[class*="language-"],
pre[class*="language-"] {
diff --git a/assets/fuck-hn.js b/assets/site.js
index c75e0a6..2614c4c 100644
--- a/assets/fuck-hn.js
+++ b/assets/site.js
@@ -7,3 +7,13 @@
if (document.referrer.startsWith("https://news.ycombinator.com")) {
document.location = "https://upload.wikimedia.org/wikipedia/commons/d/d4/Human_fart.wav"
}
+
+const replaceWithEmailLink = document.getElementById("index/replace-with-email-link");
+if (replaceWithEmailLink !== null) {
+ const newNode = document.createElement('a');
+ newNode.innerText = 'email';
+ newNode.href = 'mailto:' +
+ replaceWithEmailLink.querySelector('code')
+ .innerText.replace('<this domain>', location.hostname);
+ replaceWithEmailLink.replaceWith(newNode);
+}