950d412738
The config API now carries the hourly-cached polUsd; the start page, training callout, join-page shortfall, and chatbot (canned + AI prompt) all compute entry dollars live instead of quoting stale numbers. Post 6/7 copy drops hard "$27 = entry" claims for pocket-change framing (the video's $27 stays - it describes weekly wasted spending, which is evergreen).
15 lines
650 B
JavaScript
15 lines
650 B
JavaScript
(async function(){
|
||
try{
|
||
const r=await fetch('/api/public/config');
|
||
if(!r.ok)return;
|
||
const c=await r.json();
|
||
if(c.siteName){document.title=`Training | ${c.siteName}`;const bn=document.getElementById('brandName');if(bn)bn.textContent=c.siteName}
|
||
}catch(e){}
|
||
})();
|
||
|
||
// live dollar note in the card-buy callout — computed, never hand-written
|
||
fetch('/api/public/config').then(function(r){return r.json()}).then(function(c){
|
||
var el=document.getElementById('fundUsdNote');
|
||
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(){});
|