From 74354346a367ca4b70e0fcce11cfabb875815a1f Mon Sep 17 00:00:00 2001 From: martbost Date: Thu, 12 Nov 2026 14:48:42 -0600 Subject: [PATCH] Chasing Unicorns: the page's own ?src= (where the link was posted) rides into the join button as unicorns-, so sign-ups show the channel (Marty 2026-11-12, Massifly + LeasedAdSpace posts). chasing-unicorns.js?v=20261112d Co-Authored-By: Claude Opus 5.5 --- public/assets/chasing-unicorns.js | 6 +++++- public/chasing-unicorns.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/assets/chasing-unicorns.js b/public/assets/chasing-unicorns.js index 24570cb..7a66daf 100644 --- a/public/assets/chasing-unicorns.js +++ b/public/assets/chasing-unicorns.js @@ -38,8 +38,12 @@ // the visitor's sponsor rides the share link (?ref=), so the join button and the share line keep it var ref = (new URLSearchParams(location.search).get('ref') || '').toLowerCase().replace(/[^a-z0-9_]/g, '').slice(0, 20); + // where the page link was posted (?src=massifly, ?src=leasedadspace...) rides into the join, so a sign-up says which channel + var chan = (new URLSearchParams(location.search).get('src') || '').toLowerCase().replace(/[^a-z0-9_.-]/g, '').slice(0, 18); + var srcTag = chan ? 'unicorns-' + chan : 'chasing-unicorns'; + $('joinBtn').href = '/join?src=' + srcTag; if (ref) { - $('joinBtn').href = '/join/' + ref + '?src=chasing-unicorns'; + $('joinBtn').href = '/join/' + ref + '?src=' + srcTag; $('ledgerBtn').href = '/ledger?ref=' + ref; $('shareLink').textContent = 'https://instantadpay.com/chasing-unicorns?ref=' + ref; } diff --git a/public/chasing-unicorns.html b/public/chasing-unicorns.html index 0057457..147f8c7 100644 --- a/public/chasing-unicorns.html +++ b/public/chasing-unicorns.html @@ -203,6 +203,6 @@ button.tile { cursor: pointer; }
- +