diff options
author | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:14:53 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:14:53 -0600 |
commit | 1538c0fe5b9fcb6a92ede04698274024b8c68e92 (patch) | |
tree | c459c14bf508078bf68c35a16fb92aae329ea172 /assets | |
parent | ae5d5d8148108a4b2b108e2642f39b1e9e6e9e83 (diff) | |
download | boringcactus.com-1538c0fe5b9fcb6a92ede04698274024b8c68e92.tar.gz boringcactus.com-1538c0fe5b9fcb6a92ede04698274024b8c68e92.zip |
rework profiles elsewhere
Diffstat (limited to 'assets')
-rw-r--r-- | assets/site.css | 12 | ||||
-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); +} |