Lesson 4 callout: link the coaches to the Objection bank (hash-preserving personalization)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-08-25 06:16:15 -05:00
parent afe7173680
commit 7eb467c07b
2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -13,9 +13,14 @@ fetch('/api/public/config').then(function(r){return r.json()}).then(function(c){
if(el&&c.polUsd>0){var pol=(c.premiumEntryPol||362)+23;el.textContent=' — about $'+Math.round(pol*c.polUsd)+' at today’s price';}
}).catch(function(){});
// carry the member's saved id onto tools links so promo assets arrive personalized
// carry the member's saved id onto tools links (hash-preserving, so anchors
// like /tools#objections still land on their section) — promo assets and
// objection replies arrive personalized
try{var tid=localStorage.getItem('rmc.toolsId')||localStorage.getItem('ctb.myId');
if(tid&&/^\d+$/.test(tid))document.querySelectorAll('a[href="/tools"]').forEach(function(a){a.href='/tools?id='+tid;});}catch(e){}
if(tid&&/^\d+$/.test(tid))document.querySelectorAll('a[href^="/tools"]').forEach(function(a){
var m=(a.getAttribute('href')||'').match(/^\/tools(?:\?[^#]*)?(#.*)?$/);
if(m)a.href='/tools?id='+tid+(m[1]||'');
});}catch(e){}
// Members area: Circle Method lessons 2-10 + Video 8 are member-only. The
// SERVER refuses those video files without a session — this makes the page