Public landing page (live stats, how it plays and pays, honest fine print), tester briefing moved to /testers, badge art served from /badges/ (cached, cross-origin) for IAP cards and link previews, signed /api/partner/player for the IAP Games card, /api/public/stats

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-01 04:36:56 -05:00
parent a7498b562d
commit bc28136e04
4 changed files with 152 additions and 36 deletions
+10
View File
@@ -0,0 +1,10 @@
(function () {
'use strict';
var $ = function (id) { return document.getElementById(id); };
var n = function (v, d) { return Number(v || 0).toLocaleString('en-US', { maximumFractionDigits: d || 0 }); };
fetch('/api/public/stats').then(function (r) { return r.json(); }).then(function (s) {
$('sPlayers').textContent = n(s.players); $('sRefuels').textContent = n(s.refuels); $('sDrips').textContent = n(s.chapterDrips); $('sPaid').textContent = n(s.polPaid, 3);
if (s.thresholdPol) $('sThreshold').textContent = n(s.thresholdPol, 2);
if (s.refSharePct) $('sRef').textContent = s.refSharePct + ' percent';
}).catch(function () { $('stats').hidden = true; });
})();