From 8691989d150eeb092b7ea58290658a024a90fcd4 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Thu, 28 May 2026 21:07:30 -0700 Subject: neighbors: open contact window on "drop a line" instead of mailto Co-Authored-By: Claude Sonnet 4.6 --- index.html | 2 +- index.js | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 83cd00a..3c06974 100755 --- a/index.html +++ b/index.html @@ -289,7 +289,7 @@ see all 19 →

- all hand-curated. no algorithms, no follow-back debt. if you keep a homepage and want to be neighbors, drop a line. + all hand-curated. no algorithms, no follow-back debt. if you keep a homepage and want to be neighbors, drop a line.

diff --git a/index.js b/index.js index 879faf1..28d22e6 100644 --- a/index.js +++ b/index.js @@ -51,13 +51,18 @@ ); }); + function openWindow(id) { + const w = document.getElementById('w-' + id); + if (w) { w.style.display = ''; w.style.zIndex = (++window.__zTop || (window.__zTop = 100)); } + } + document.querySelectorAll('.icon').forEach(ic => { - ic.addEventListener('click', () => { - const w = document.getElementById('w-' + ic.dataset.open); - if (w) { w.style.display = ''; w.style.zIndex = (++window.__zTop || (window.__zTop = 100)); } - }); + ic.addEventListener('click', () => openWindow(ic.dataset.open)); }); + const dropALine = document.getElementById('neighbors-contact-link'); + if (dropALine) dropALine.addEventListener('click', e => { e.preventDefault(); openWindow('guestbook'); }); + // podcast RSS let podLoaded = false; async function loadPodcast() { -- cgit v1.3-2-g0d8e