M index.html => index.html +13 -1
@@ 48,7 48,7 @@ bodyclass: index
<header>get in touch</header>
<ul>
<div class="lgroup direct">
- <li><a href="mailto:acdw@acdw.net">
+ <li><a href="#" id=email>
email</a></li>
<li><a href="xmpp://acdw@404.city">
xmpp</a></li></div>
@@ 85,4 85,16 @@ bodyclass: index
</nav>
</aside>
</div>
+<script>
+function expand_mail() {
+ const email = document.getElementById('email');
+ var mail = 'm';
+ pairs = ['ai', 'lt', 'o:', 'ac', 'dw', '@a', 'cd', 'w.', 'ne', 't'];
+ for (var p = 0; p < pairs.length; p++) {
+ mail += pairs[p];
+ }
+ email.href = mail;
+}
+window.onload = expand_mail;
+</script>
$partial("templates/_footer.html")$
M pages/contact.md => pages/contact.md +15 -2
@@ 10,7 10,8 @@ I feel like I've done that too.
Some of them are listed here.
-- [email] me (please, no spambots or MLMs).
+- <a href='#' id=email>email</a> me
+ me (please, no spambots or MLMs).
- @ me on [Mastodon] or [Twitter].
- clone me on [Github], [Gitlab], or [sourcehut].
- [feel me] on [tilde.town].
@@ 18,7 19,6 @@ Some of them are listed here.
or have a more stimulating conversation with me on [Tildes][tildes.net].
- verify my identity on [Keybase].
-[email]: mailto:acdw@acdw.net
[Mastodon]: <https://writing.exchange/@acdw> {rel=me}
[Twitter]: <https://twitter.com/caseofducks>
(Though I never use it.) {rel=me}
@@ 37,3 37,16 @@ Some of them are listed here.
[Keybase]: <https://keybase.io/acdw>
(I'm not actually sure what it's for or what it does.) {rel=me}
+
+<script>
+function expand_mail() {
+ const email = document.getElementById('email');
+ var mail = 'm';
+ pairs = ['ai', 'lt', 'o:', 'ac', 'dw', '@a', 'cd', 'w.', 'ne', 't'];
+ for (var p = 0; p < pairs.length; p++) {
+ mail += pairs[p];
+ }
+ email.href = mail;
+}
+window.onload = expand_mail;
+</script>
M static/css/style.scss => static/css/style.scss +1 -1
@@ 1,5 1,5 @@
/* SCSS for acdw.net */
-/* by Case Duckworth <acdw@acdw.net> */
+/* by Case Duckworth */
/* vim: fdm=marker
* */
M templates/_sidenav.html => templates/_sidenav.html +0 -2
@@ 26,8 26,6 @@
</div>
<div class="lgroup">
<li><a href="$source$">source</a></li>$endif$
- $if(comment)$<li>
- <a href="$comment$">leave a comment</a></li>$endif$
</div>
</ul>
$else$